From 2a6adab05fffce4a27226d412e0f46a5db98f1e2 Mon Sep 17 00:00:00 2001 From: scottslewis Date: Mon, 25 Oct 2021 12:18:28 -0700 Subject: [PATCH] Added rx3-generated code --- .../provider/etcd3/grpc/api/AlarmMember.java | 624 ++++++ .../etcd3/grpc/api/AlarmMemberOrBuilder.java | 38 + .../provider/etcd3/grpc/api/AlarmRequest.java | 883 ++++++++ .../etcd3/grpc/api/AlarmRequestOrBuilder.java | 62 + .../etcd3/grpc/api/AlarmResponse.java | 1050 +++++++++ .../grpc/api/AlarmResponseOrBuilder.java | 68 + .../provider/etcd3/grpc/api/AlarmType.java | 129 ++ .../etcd3/grpc/api/AuthDisableRequest.java | 419 ++++ .../grpc/api/AuthDisableRequestOrBuilder.java | 9 + .../etcd3/grpc/api/AuthDisableResponse.java | 607 ++++++ .../api/AuthDisableResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthEnableRequest.java | 419 ++++ .../grpc/api/AuthEnableRequestOrBuilder.java | 9 + .../etcd3/grpc/api/AuthEnableResponse.java | 607 ++++++ .../grpc/api/AuthEnableResponseOrBuilder.java | 24 + .../ecf/provider/etcd3/grpc/api/AuthGrpc.java | 1577 ++++++++++++++ .../etcd3/grpc/api/AuthRoleAddRequest.java | 585 +++++ .../grpc/api/AuthRoleAddRequestOrBuilder.java | 29 + .../etcd3/grpc/api/AuthRoleAddResponse.java | 607 ++++++ .../api/AuthRoleAddResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthRoleDeleteRequest.java | 557 +++++ .../api/AuthRoleDeleteRequestOrBuilder.java | 21 + .../grpc/api/AuthRoleDeleteResponse.java | 607 ++++++ .../api/AuthRoleDeleteResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthRoleGetRequest.java | 557 +++++ .../grpc/api/AuthRoleGetRequestOrBuilder.java | 21 + .../etcd3/grpc/api/AuthRoleGetResponse.java | 958 +++++++++ .../api/AuthRoleGetResponseOrBuilder.java | 48 + .../api/AuthRoleGrantPermissionRequest.java | 821 +++++++ ...thRoleGrantPermissionRequestOrBuilder.java | 56 + .../api/AuthRoleGrantPermissionResponse.java | 607 ++++++ ...hRoleGrantPermissionResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthRoleListRequest.java | 419 ++++ .../api/AuthRoleListRequestOrBuilder.java | 9 + .../etcd3/grpc/api/AuthRoleListResponse.java | 802 +++++++ .../api/AuthRoleListResponseOrBuilder.java | 49 + .../api/AuthRoleRevokePermissionRequest.java | 833 ++++++++ ...hRoleRevokePermissionRequestOrBuilder.java | 45 + .../api/AuthRoleRevokePermissionResponse.java | 607 ++++++ ...RoleRevokePermissionResponseOrBuilder.java | 24 + .../provider/etcd3/grpc/api/AuthService.java | 154 ++ .../etcd3/grpc/api/AuthUserAddRequest.java | 695 ++++++ .../grpc/api/AuthUserAddRequestOrBuilder.java | 33 + .../etcd3/grpc/api/AuthUserAddResponse.java | 607 ++++++ .../api/AuthUserAddResponseOrBuilder.java | 24 + .../api/AuthUserChangePasswordRequest.java | 751 +++++++ ...uthUserChangePasswordRequestOrBuilder.java | 49 + .../api/AuthUserChangePasswordResponse.java | 607 ++++++ ...thUserChangePasswordResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthUserDeleteRequest.java | 585 +++++ .../api/AuthUserDeleteRequestOrBuilder.java | 29 + .../grpc/api/AuthUserDeleteResponse.java | 607 ++++++ .../api/AuthUserDeleteResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthUserGetRequest.java | 557 +++++ .../grpc/api/AuthUserGetRequestOrBuilder.java | 21 + .../etcd3/grpc/api/AuthUserGetResponse.java | 802 +++++++ .../api/AuthUserGetResponseOrBuilder.java | 49 + .../grpc/api/AuthUserGrantRoleRequest.java | 751 +++++++ .../AuthUserGrantRoleRequestOrBuilder.java | 49 + .../grpc/api/AuthUserGrantRoleResponse.java | 607 ++++++ .../AuthUserGrantRoleResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthUserListRequest.java | 419 ++++ .../api/AuthUserListRequestOrBuilder.java | 9 + .../etcd3/grpc/api/AuthUserListResponse.java | 802 +++++++ .../api/AuthUserListResponseOrBuilder.java | 49 + .../grpc/api/AuthUserRevokeRoleRequest.java | 695 ++++++ .../AuthUserRevokeRoleRequestOrBuilder.java | 33 + .../grpc/api/AuthUserRevokeRoleResponse.java | 607 ++++++ .../AuthUserRevokeRoleResponseOrBuilder.java | 24 + .../etcd3/grpc/api/AuthenticateRequest.java | 695 ++++++ .../api/AuthenticateRequestOrBuilder.java | 33 + .../etcd3/grpc/api/AuthenticateResponse.java | 773 +++++++ .../api/AuthenticateResponseOrBuilder.java | 44 + .../provider/etcd3/grpc/api/ClusterGrpc.java | 545 +++++ .../etcd3/grpc/api/ClusterService.java | 46 + .../etcd3/grpc/api/CompactionRequest.java | 599 ++++++ .../grpc/api/CompactionRequestOrBuilder.java | 31 + .../etcd3/grpc/api/CompactionResponse.java | 607 ++++++ .../grpc/api/CompactionResponseOrBuilder.java | 24 + .../ecf/provider/etcd3/grpc/api/Compare.java | 1542 +++++++++++++ .../etcd3/grpc/api/CompareOrBuilder.java | 110 + .../etcd3/grpc/api/DefragmentRequest.java | 419 ++++ .../grpc/api/DefragmentRequestOrBuilder.java | 9 + .../etcd3/grpc/api/DefragmentResponse.java | 607 ++++++ .../grpc/api/DefragmentResponseOrBuilder.java | 24 + .../etcd3/grpc/api/DeleteRangeRequest.java | 688 ++++++ .../grpc/api/DeleteRangeRequestOrBuilder.java | 44 + .../etcd3/grpc/api/DeleteRangeResponse.java | 1131 ++++++++++ .../api/DeleteRangeResponseOrBuilder.java | 78 + .../provider/etcd3/grpc/api/ECFEtcdProto.java | 1208 +++++++++++ .../etcd3/grpc/api/HashKVRequest.java | 500 +++++ .../grpc/api/HashKVRequestOrBuilder.java | 19 + .../etcd3/grpc/api/HashKVResponse.java | 768 +++++++ .../grpc/api/HashKVResponseOrBuilder.java | 44 + .../provider/etcd3/grpc/api/HashRequest.java | 419 ++++ .../etcd3/grpc/api/HashRequestOrBuilder.java | 9 + .../provider/etcd3/grpc/api/HashResponse.java | 687 ++++++ .../etcd3/grpc/api/HashResponseOrBuilder.java | 34 + .../ecf/provider/etcd3/grpc/api/KVGrpc.java | 667 ++++++ .../provider/etcd3/grpc/api/KVService.java | 64 + .../etcd3/grpc/api/LeaseGrantRequest.java | 581 +++++ .../grpc/api/LeaseGrantRequestOrBuilder.java | 29 + .../etcd3/grpc/api/LeaseGrantResponse.java | 907 ++++++++ .../grpc/api/LeaseGrantResponseOrBuilder.java | 56 + .../provider/etcd3/grpc/api/LeaseGrpc.java | 533 +++++ .../etcd3/grpc/api/LeaseKeepAliveRequest.java | 500 +++++ .../api/LeaseKeepAliveRequestOrBuilder.java | 19 + .../grpc/api/LeaseKeepAliveResponse.java | 769 +++++++ .../api/LeaseKeepAliveResponseOrBuilder.java | 44 + .../etcd3/grpc/api/LeaseRevokeRequest.java | 500 +++++ .../grpc/api/LeaseRevokeRequestOrBuilder.java | 19 + .../etcd3/grpc/api/LeaseRevokeResponse.java | 607 ++++++ .../api/LeaseRevokeResponseOrBuilder.java | 24 + .../provider/etcd3/grpc/api/LeaseService.java | 50 + .../grpc/api/LeaseTimeToLiveRequest.java | 581 +++++ .../api/LeaseTimeToLiveRequestOrBuilder.java | 29 + .../grpc/api/LeaseTimeToLiveResponse.java | 1052 +++++++++ .../api/LeaseTimeToLiveResponseOrBuilder.java | 83 + .../etcd3/grpc/api/MaintenanceGrpc.java | 801 +++++++ .../etcd3/grpc/api/MaintenanceService.java | 76 + .../ecf/provider/etcd3/grpc/api/Member.java | 1157 ++++++++++ .../etcd3/grpc/api/MemberAddRequest.java | 666 ++++++ .../grpc/api/MemberAddRequestOrBuilder.java | 50 + .../etcd3/grpc/api/MemberAddResponse.java | 1286 +++++++++++ .../grpc/api/MemberAddResponseOrBuilder.java | 95 + .../etcd3/grpc/api/MemberListRequest.java | 419 ++++ .../grpc/api/MemberListRequestOrBuilder.java | 9 + .../etcd3/grpc/api/MemberListResponse.java | 1050 +++++++++ .../grpc/api/MemberListResponseOrBuilder.java | 68 + .../etcd3/grpc/api/MemberOrBuilder.java | 121 ++ .../etcd3/grpc/api/MemberRemoveRequest.java | 500 +++++ .../api/MemberRemoveRequestOrBuilder.java | 19 + .../etcd3/grpc/api/MemberRemoveResponse.java | 1050 +++++++++ .../api/MemberRemoveResponseOrBuilder.java | 68 + .../etcd3/grpc/api/MemberUpdateRequest.java | 747 +++++++ .../api/MemberUpdateRequestOrBuilder.java | 60 + .../etcd3/grpc/api/MemberUpdateResponse.java | 1050 +++++++++ .../api/MemberUpdateResponseOrBuilder.java | 68 + .../etcd3/grpc/api/MoveLeaderRequest.java | 500 +++++ .../grpc/api/MoveLeaderRequestOrBuilder.java | 19 + .../etcd3/grpc/api/MoveLeaderResponse.java | 607 ++++++ .../grpc/api/MoveLeaderResponseOrBuilder.java | 24 + .../provider/etcd3/grpc/api/PutRequest.java | 927 ++++++++ .../etcd3/grpc/api/PutRequestOrBuilder.java | 73 + .../provider/etcd3/grpc/api/PutResponse.java | 843 ++++++++ .../etcd3/grpc/api/PutResponseOrBuilder.java | 51 + .../provider/etcd3/grpc/api/RangeRequest.java | 1904 +++++++++++++++++ .../etcd3/grpc/api/RangeRequestOrBuilder.java | 173 ++ .../etcd3/grpc/api/RangeResponse.java | 1235 +++++++++++ .../grpc/api/RangeResponseOrBuilder.java | 93 + .../provider/etcd3/grpc/api/RequestOp.java | 1344 ++++++++++++ .../etcd3/grpc/api/RequestOpOrBuilder.java | 71 + .../etcd3/grpc/api/ResponseHeader.java | 743 +++++++ .../grpc/api/ResponseHeaderOrBuilder.java | 49 + .../provider/etcd3/grpc/api/ResponseOp.java | 1344 ++++++++++++ .../etcd3/grpc/api/ResponseOpOrBuilder.java | 71 + .../provider/etcd3/grpc/api/Rx3AuthGrpc.java | 1025 +++++++++ .../etcd3/grpc/api/Rx3ClusterGrpc.java | 335 +++ .../provider/etcd3/grpc/api/Rx3KVGrpc.java | 398 ++++ .../provider/etcd3/grpc/api/Rx3LeaseGrpc.java | 312 +++ .../etcd3/grpc/api/Rx3MaintenanceGrpc.java | 512 +++++ .../provider/etcd3/grpc/api/Rx3WatchGrpc.java | 122 ++ .../etcd3/grpc/api/SnapshotRequest.java | 419 ++++ .../grpc/api/SnapshotRequestOrBuilder.java | 9 + .../etcd3/grpc/api/SnapshotResponse.java | 832 +++++++ .../grpc/api/SnapshotResponseOrBuilder.java | 59 + .../etcd3/grpc/api/StatusRequest.java | 419 ++++ .../grpc/api/StatusRequestOrBuilder.java | 9 + .../etcd3/grpc/api/StatusResponse.java | 1097 ++++++++++ .../grpc/api/StatusResponseOrBuilder.java | 84 + .../provider/etcd3/grpc/api/TxnRequest.java | 1870 ++++++++++++++++ .../etcd3/grpc/api/TxnRequestOrBuilder.java | 161 ++ .../provider/etcd3/grpc/api/TxnResponse.java | 1154 ++++++++++ .../etcd3/grpc/api/TxnResponseOrBuilder.java | 83 + .../etcd3/grpc/api/WatchCancelRequest.java | 500 +++++ .../grpc/api/WatchCancelRequestOrBuilder.java | 19 + .../etcd3/grpc/api/WatchCreateRequest.java | 1324 ++++++++++++ .../grpc/api/WatchCreateRequestOrBuilder.java | 116 + .../provider/etcd3/grpc/api/WatchGrpc.java | 273 +++ .../provider/etcd3/grpc/api/WatchRequest.java | 916 ++++++++ .../etcd3/grpc/api/WatchRequestOrBuilder.java | 41 + .../etcd3/grpc/api/WatchResponse.java | 1484 +++++++++++++ .../grpc/api/WatchResponseOrBuilder.java | 117 + .../provider/etcd3/grpc/api/WatchService.java | 23 + .../provider/etcd3/grpc/api/auth/Auth.java | 76 + .../etcd3/grpc/api/auth/Permission.java | 776 +++++++ .../grpc/api/auth/PermissionOrBuilder.java | 32 + .../provider/etcd3/grpc/api/auth/Role.java | 846 ++++++++ .../etcd3/grpc/api/auth/RoleOrBuilder.java | 39 + .../provider/etcd3/grpc/api/auth/User.java | 758 +++++++ .../etcd3/grpc/api/auth/UserOrBuilder.java | 46 + .../ecf/provider/etcd3/grpc/api/kv/Event.java | 1185 ++++++++++ .../etcd3/grpc/api/kv/EventOrBuilder.java | 98 + .../provider/etcd3/grpc/api/kv/KeyValue.java | 927 ++++++++ .../etcd3/grpc/api/kv/KeyValueOrBuilder.java | 73 + .../ecf/provider/etcd3/grpc/api/kv/Kv.java | 65 + 196 files changed, 81486 insertions(+) create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMemberOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthService.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterService.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Compare.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompareOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ECFEtcdProto.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVService.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseService.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceService.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Member.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOp.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOpOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeader.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeaderOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOp.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOpOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3AuthGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3ClusterGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3KVGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3LeaseGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3MaintenanceGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3WatchGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchGrpc.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequest.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequestOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponse.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponseOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchService.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Auth.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Permission.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/PermissionOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Role.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/RoleOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/User.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/UserOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Event.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/EventOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValue.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValueOrBuilder.java create mode 100644 org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Kv.java diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java new file mode 100644 index 0000000..4c43bc2 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java @@ -0,0 +1,624 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AlarmMember} + */ +public final class AlarmMember extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmMember) + AlarmMemberOrBuilder { +private static final long serialVersionUID = 0L; + // Use AlarmMember.newBuilder() to construct. + private AlarmMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlarmMember() { + alarm_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AlarmMember(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlarmMember( + 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 8: { + + memberID_ = input.readUInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + alarm_ = 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder.class); + } + + public static final int MEMBERID_FIELD_NUMBER = 1; + private long memberID_; + /** + *
+   * memberID is the ID of the member associated with the raised alarm.
+   * 
+ * + * uint64 memberID = 1; + * @return The memberID. + */ + @java.lang.Override + public long getMemberID() { + return memberID_; + } + + public static final int ALARM_FIELD_NUMBER = 2; + private int alarm_; + /** + *
+   * alarm is the type of alarm which has been raised.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return The enum numeric value on the wire for alarm. + */ + @java.lang.Override public int getAlarmValue() { + return alarm_; + } + /** + *
+   * alarm is the type of alarm which has been raised.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return The alarm. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (memberID_ != 0L) { + output.writeUInt64(1, memberID_); + } + if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) { + output.writeEnum(2, alarm_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (memberID_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, memberID_); + } + if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, alarm_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember other = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember) obj; + + if (getMemberID() + != other.getMemberID()) return false; + if (alarm_ != other.alarm_) 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) + MEMBERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberID()); + hash = (37 * hash) + ALARM_FIELD_NUMBER; + hash = (53 * hash) + alarm_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AlarmMember} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AlarmMember) + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.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(); + memberID_ = 0L; + + alarm_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember result = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember(this); + result.memberID_ = memberID_; + result.alarm_ = alarm_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.getDefaultInstance()) return this; + if (other.getMemberID() != 0L) { + setMemberID(other.getMemberID()); + } + if (other.alarm_ != 0) { + setAlarmValue(other.getAlarmValue()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long memberID_ ; + /** + *
+     * memberID is the ID of the member associated with the raised alarm.
+     * 
+ * + * uint64 memberID = 1; + * @return The memberID. + */ + @java.lang.Override + public long getMemberID() { + return memberID_; + } + /** + *
+     * memberID is the ID of the member associated with the raised alarm.
+     * 
+ * + * uint64 memberID = 1; + * @param value The memberID to set. + * @return This builder for chaining. + */ + public Builder setMemberID(long value) { + + memberID_ = value; + onChanged(); + return this; + } + /** + *
+     * memberID is the ID of the member associated with the raised alarm.
+     * 
+ * + * uint64 memberID = 1; + * @return This builder for chaining. + */ + public Builder clearMemberID() { + + memberID_ = 0L; + onChanged(); + return this; + } + + private int alarm_ = 0; + /** + *
+     * alarm is the type of alarm which has been raised.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return The enum numeric value on the wire for alarm. + */ + @java.lang.Override public int getAlarmValue() { + return alarm_; + } + /** + *
+     * alarm is the type of alarm which has been raised.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @param value The enum numeric value on the wire for alarm to set. + * @return This builder for chaining. + */ + public Builder setAlarmValue(int value) { + + alarm_ = value; + onChanged(); + return this; + } + /** + *
+     * alarm is the type of alarm which has been raised.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return The alarm. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result; + } + /** + *
+     * alarm is the type of alarm which has been raised.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @param value The alarm to set. + * @return This builder for chaining. + */ + public Builder setAlarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType value) { + if (value == null) { + throw new NullPointerException(); + } + + alarm_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * alarm is the type of alarm which has been raised.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return This builder for chaining. + */ + public Builder clearAlarm() { + + alarm_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AlarmMember) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmMember) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlarmMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlarmMember(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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMemberOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMemberOrBuilder.java new file mode 100644 index 0000000..30f7dd3 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMemberOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AlarmMemberOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AlarmMember) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * memberID is the ID of the member associated with the raised alarm.
+   * 
+ * + * uint64 memberID = 1; + * @return The memberID. + */ + long getMemberID(); + + /** + *
+   * alarm is the type of alarm which has been raised.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return The enum numeric value on the wire for alarm. + */ + int getAlarmValue(); + /** + *
+   * alarm is the type of alarm which has been raised.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 2; + * @return The alarm. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java new file mode 100644 index 0000000..d46071b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AlarmRequest} + */ +public final class AlarmRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmRequest) + AlarmRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AlarmRequest.newBuilder() to construct. + private AlarmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlarmRequest() { + action_ = 0; + alarm_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AlarmRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlarmRequest( + 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 8: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 16: { + + memberID_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + alarm_ = 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.Builder.class); + } + + /** + * Protobuf enum {@code etcdserverpb.AlarmRequest.AlarmAction} + */ + public enum AlarmAction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * GET = 0; + */ + GET(0), + /** + * ACTIVATE = 1; + */ + ACTIVATE(1), + /** + * DEACTIVATE = 2; + */ + DEACTIVATE(2), + UNRECOGNIZED(-1), + ; + + /** + * GET = 0; + */ + public static final int GET_VALUE = 0; + /** + * ACTIVATE = 1; + */ + public static final int ACTIVATE_VALUE = 1; + /** + * DEACTIVATE = 2; + */ + public static final int DEACTIVATE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AlarmAction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AlarmAction forNumber(int value) { + switch (value) { + case 0: return GET; + case 1: return ACTIVATE; + case 2: return DEACTIVATE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AlarmAction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AlarmAction findValueByNumber(int number) { + return AlarmAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final AlarmAction[] VALUES = values(); + + public static AlarmAction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AlarmAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.AlarmRequest.AlarmAction) + } + + public static final int ACTION_FIELD_NUMBER = 1; + private int action_; + /** + *
+   * action is the kind of alarm request to issue. The action
+   * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+   * raised alarm.
+   * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override public int getActionValue() { + return action_; + } + /** + *
+   * action is the kind of alarm request to issue. The action
+   * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+   * raised alarm.
+   * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return The action. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction getAction() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.valueOf(action_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.UNRECOGNIZED : result; + } + + public static final int MEMBERID_FIELD_NUMBER = 2; + private long memberID_; + /** + *
+   * memberID is the ID of the member associated with the alarm. If memberID is 0, the
+   * alarm request covers all members.
+   * 
+ * + * uint64 memberID = 2; + * @return The memberID. + */ + @java.lang.Override + public long getMemberID() { + return memberID_; + } + + public static final int ALARM_FIELD_NUMBER = 3; + private int alarm_; + /** + *
+   * alarm is the type of alarm to consider for this request.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return The enum numeric value on the wire for alarm. + */ + @java.lang.Override public int getAlarmValue() { + return alarm_; + } + /** + *
+   * alarm is the type of alarm to consider for this request.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return The alarm. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (action_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.GET.getNumber()) { + output.writeEnum(1, action_); + } + if (memberID_ != 0L) { + output.writeUInt64(2, memberID_); + } + if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) { + output.writeEnum(3, alarm_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (action_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.GET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); + } + if (memberID_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, memberID_); + } + if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, alarm_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest) obj; + + if (action_ != other.action_) return false; + if (getMemberID() + != other.getMemberID()) return false; + if (alarm_ != other.alarm_) 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) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + MEMBERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberID()); + hash = (37 * hash) + ALARM_FIELD_NUMBER; + hash = (53 * hash) + alarm_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AlarmRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AlarmRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.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(); + action_ = 0; + + memberID_ = 0L; + + alarm_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest(this); + result.action_ = action_; + result.memberID_ = memberID_; + result.alarm_ = alarm_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.getDefaultInstance()) return this; + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getMemberID() != 0L) { + setMemberID(other.getMemberID()); + } + if (other.alarm_ != 0) { + setAlarmValue(other.getAlarmValue()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int action_ = 0; + /** + *
+     * action is the kind of alarm request to issue. The action
+     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+     * raised alarm.
+     * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override public int getActionValue() { + return action_; + } + /** + *
+     * action is the kind of alarm request to issue. The action
+     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+     * raised alarm.
+     * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + + action_ = value; + onChanged(); + return this; + } + /** + *
+     * action is the kind of alarm request to issue. The action
+     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+     * raised alarm.
+     * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return The action. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction getAction() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.valueOf(action_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.UNRECOGNIZED : result; + } + /** + *
+     * action is the kind of alarm request to issue. The action
+     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+     * raised alarm.
+     * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * action is the kind of alarm request to issue. The action
+     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+     * raised alarm.
+     * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private long memberID_ ; + /** + *
+     * memberID is the ID of the member associated with the alarm. If memberID is 0, the
+     * alarm request covers all members.
+     * 
+ * + * uint64 memberID = 2; + * @return The memberID. + */ + @java.lang.Override + public long getMemberID() { + return memberID_; + } + /** + *
+     * memberID is the ID of the member associated with the alarm. If memberID is 0, the
+     * alarm request covers all members.
+     * 
+ * + * uint64 memberID = 2; + * @param value The memberID to set. + * @return This builder for chaining. + */ + public Builder setMemberID(long value) { + + memberID_ = value; + onChanged(); + return this; + } + /** + *
+     * memberID is the ID of the member associated with the alarm. If memberID is 0, the
+     * alarm request covers all members.
+     * 
+ * + * uint64 memberID = 2; + * @return This builder for chaining. + */ + public Builder clearMemberID() { + + memberID_ = 0L; + onChanged(); + return this; + } + + private int alarm_ = 0; + /** + *
+     * alarm is the type of alarm to consider for this request.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return The enum numeric value on the wire for alarm. + */ + @java.lang.Override public int getAlarmValue() { + return alarm_; + } + /** + *
+     * alarm is the type of alarm to consider for this request.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @param value The enum numeric value on the wire for alarm to set. + * @return This builder for chaining. + */ + public Builder setAlarmValue(int value) { + + alarm_ = value; + onChanged(); + return this; + } + /** + *
+     * alarm is the type of alarm to consider for this request.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return The alarm. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result; + } + /** + *
+     * alarm is the type of alarm to consider for this request.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @param value The alarm to set. + * @return This builder for chaining. + */ + public Builder setAlarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType value) { + if (value == null) { + throw new NullPointerException(); + } + + alarm_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * alarm is the type of alarm to consider for this request.
+     * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return This builder for chaining. + */ + public Builder clearAlarm() { + + alarm_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AlarmRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlarmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlarmRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequestOrBuilder.java new file mode 100644 index 0000000..2da6caf --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AlarmRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AlarmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * action is the kind of alarm request to issue. The action
+   * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+   * raised alarm.
+   * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + *
+   * action is the kind of alarm request to issue. The action
+   * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
+   * raised alarm.
+   * 
+ * + * .etcdserverpb.AlarmRequest.AlarmAction action = 1; + * @return The action. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction getAction(); + + /** + *
+   * memberID is the ID of the member associated with the alarm. If memberID is 0, the
+   * alarm request covers all members.
+   * 
+ * + * uint64 memberID = 2; + * @return The memberID. + */ + long getMemberID(); + + /** + *
+   * alarm is the type of alarm to consider for this request.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return The enum numeric value on the wire for alarm. + */ + int getAlarmValue(); + /** + *
+   * alarm is the type of alarm to consider for this request.
+   * 
+ * + * .etcdserverpb.AlarmType alarm = 3; + * @return The alarm. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java new file mode 100644 index 0000000..d9b469e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java @@ -0,0 +1,1050 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AlarmResponse} + */ +public final class AlarmResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmResponse) + AlarmResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AlarmResponse.newBuilder() to construct. + private AlarmResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlarmResponse() { + alarms_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AlarmResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlarmResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alarms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + alarms_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + alarms_ = java.util.Collections.unmodifiableList(alarms_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ALARMS_FIELD_NUMBER = 2; + private java.util.List alarms_; + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + @java.lang.Override + public java.util.List getAlarmsList() { + return alarms_; + } + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + @java.lang.Override + public java.util.List + getAlarmsOrBuilderList() { + return alarms_; + } + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + @java.lang.Override + public int getAlarmsCount() { + return alarms_.size(); + } + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getAlarms(int index) { + return alarms_.get(index); + } + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder getAlarmsOrBuilder( + int index) { + return alarms_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < alarms_.size(); i++) { + output.writeMessage(2, alarms_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < alarms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, alarms_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getAlarmsList() + .equals(other.getAlarmsList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getAlarmsCount() > 0) { + hash = (37 * hash) + ALARMS_FIELD_NUMBER; + hash = (53 * hash) + getAlarmsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AlarmResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AlarmResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAlarmsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (alarmsBuilder_ == null) { + alarms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + alarmsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (alarmsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + alarms_ = java.util.Collections.unmodifiableList(alarms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.alarms_ = alarms_; + } else { + result.alarms_ = alarmsBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (alarmsBuilder_ == null) { + if (!other.alarms_.isEmpty()) { + if (alarms_.isEmpty()) { + alarms_ = other.alarms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAlarmsIsMutable(); + alarms_.addAll(other.alarms_); + } + onChanged(); + } + } else { + if (!other.alarms_.isEmpty()) { + if (alarmsBuilder_.isEmpty()) { + alarmsBuilder_.dispose(); + alarmsBuilder_ = null; + alarms_ = other.alarms_; + bitField0_ = (bitField0_ & ~0x00000001); + alarmsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAlarmsFieldBuilder() : null; + } else { + alarmsBuilder_.addAllMessages(other.alarms_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List alarms_ = + java.util.Collections.emptyList(); + private void ensureAlarmsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + alarms_ = new java.util.ArrayList(alarms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder> alarmsBuilder_; + + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public java.util.List getAlarmsList() { + if (alarmsBuilder_ == null) { + return java.util.Collections.unmodifiableList(alarms_); + } else { + return alarmsBuilder_.getMessageList(); + } + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public int getAlarmsCount() { + if (alarmsBuilder_ == null) { + return alarms_.size(); + } else { + return alarmsBuilder_.getCount(); + } + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getAlarms(int index) { + if (alarmsBuilder_ == null) { + return alarms_.get(index); + } else { + return alarmsBuilder_.getMessage(index); + } + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder setAlarms( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember value) { + if (alarmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlarmsIsMutable(); + alarms_.set(index, value); + onChanged(); + } else { + alarmsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder setAlarms( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder builderForValue) { + if (alarmsBuilder_ == null) { + ensureAlarmsIsMutable(); + alarms_.set(index, builderForValue.build()); + onChanged(); + } else { + alarmsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder addAlarms(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember value) { + if (alarmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlarmsIsMutable(); + alarms_.add(value); + onChanged(); + } else { + alarmsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder addAlarms( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember value) { + if (alarmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlarmsIsMutable(); + alarms_.add(index, value); + onChanged(); + } else { + alarmsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder addAlarms( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder builderForValue) { + if (alarmsBuilder_ == null) { + ensureAlarmsIsMutable(); + alarms_.add(builderForValue.build()); + onChanged(); + } else { + alarmsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder addAlarms( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder builderForValue) { + if (alarmsBuilder_ == null) { + ensureAlarmsIsMutable(); + alarms_.add(index, builderForValue.build()); + onChanged(); + } else { + alarmsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder addAllAlarms( + java.lang.Iterable values) { + if (alarmsBuilder_ == null) { + ensureAlarmsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alarms_); + onChanged(); + } else { + alarmsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder clearAlarms() { + if (alarmsBuilder_ == null) { + alarms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + alarmsBuilder_.clear(); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public Builder removeAlarms(int index) { + if (alarmsBuilder_ == null) { + ensureAlarmsIsMutable(); + alarms_.remove(index); + onChanged(); + } else { + alarmsBuilder_.remove(index); + } + return this; + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder getAlarmsBuilder( + int index) { + return getAlarmsFieldBuilder().getBuilder(index); + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder getAlarmsOrBuilder( + int index) { + if (alarmsBuilder_ == null) { + return alarms_.get(index); } else { + return alarmsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public java.util.List + getAlarmsOrBuilderList() { + if (alarmsBuilder_ != null) { + return alarmsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alarms_); + } + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder addAlarmsBuilder() { + return getAlarmsFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.getDefaultInstance()); + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder addAlarmsBuilder( + int index) { + return getAlarmsFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.getDefaultInstance()); + } + /** + *
+     * alarms is a list of alarms associated with the alarm request.
+     * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + public java.util.List + getAlarmsBuilderList() { + return getAlarmsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder> + getAlarmsFieldBuilder() { + if (alarmsBuilder_ == null) { + alarmsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder>( + alarms_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + alarms_ = null; + } + return alarmsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AlarmResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlarmResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlarmResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponseOrBuilder.java new file mode 100644 index 0000000..da3a5b7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponseOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AlarmResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AlarmResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + java.util.List + getAlarmsList(); + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getAlarms(int index); + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + int getAlarmsCount(); + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + java.util.List + getAlarmsOrBuilderList(); + /** + *
+   * alarms is a list of alarms associated with the alarm request.
+   * 
+ * + * repeated .etcdserverpb.AlarmMember alarms = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder getAlarmsOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java new file mode 100644 index 0000000..631a2e7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java @@ -0,0 +1,129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf enum {@code etcdserverpb.AlarmType} + */ +public enum AlarmType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * default, used to query if any alarm is active
+   * 
+ * + * NONE = 0; + */ + NONE(0), + /** + *
+   * space quota is exhausted
+   * 
+ * + * NOSPACE = 1; + */ + NOSPACE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+   * default, used to query if any alarm is active
+   * 
+ * + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + *
+   * space quota is exhausted
+   * 
+ * + * NOSPACE = 1; + */ + public static final int NOSPACE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AlarmType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AlarmType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return NOSPACE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AlarmType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AlarmType findValueByNumber(int number) { + return AlarmType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AlarmType[] VALUES = values(); + + public static AlarmType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AlarmType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.AlarmType) +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequest.java new file mode 100644 index 0000000..70c2427 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthDisableRequest} + */ +public final class AuthDisableRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthDisableRequest) + AuthDisableRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthDisableRequest.newBuilder() to construct. + private AuthDisableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthDisableRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthDisableRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthDisableRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthDisableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthDisableRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthDisableRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthDisableRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthDisableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthDisableRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequestOrBuilder.java new file mode 100644 index 0000000..9eb9ec7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthDisableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthDisableRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponse.java new file mode 100644 index 0000000..defeb62 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthDisableResponse} + */ +public final class AuthDisableResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthDisableResponse) + AuthDisableResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthDisableResponse.newBuilder() to construct. + private AuthDisableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthDisableResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthDisableResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthDisableResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthDisableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthDisableResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthDisableResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthDisableResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthDisableResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthDisableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthDisableResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponseOrBuilder.java new file mode 100644 index 0000000..5e97a2b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthDisableResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthDisableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthDisableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java new file mode 100644 index 0000000..911c75a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthEnableRequest} + */ +public final class AuthEnableRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthEnableRequest) + AuthEnableRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthEnableRequest.newBuilder() to construct. + private AuthEnableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthEnableRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthEnableRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthEnableRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthEnableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthEnableRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthEnableRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthEnableRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthEnableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthEnableRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequestOrBuilder.java new file mode 100644 index 0000000..9b2600c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthEnableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthEnableRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponse.java new file mode 100644 index 0000000..6537723 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthEnableResponse} + */ +public final class AuthEnableResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthEnableResponse) + AuthEnableResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthEnableResponse.newBuilder() to construct. + private AuthEnableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthEnableResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthEnableResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthEnableResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthEnableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthEnableResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthEnableResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthEnableResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthEnableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthEnableResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponseOrBuilder.java new file mode 100644 index 0000000..f957c4a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthEnableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthEnableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java new file mode 100644 index 0000000..a26fadd --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java @@ -0,0 +1,1577 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.39.0)", + comments = "Source: rpc.proto") +public final class AuthGrpc { + + private AuthGrpc() {} + + public static final String SERVICE_NAME = "etcdserverpb.Auth"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getAuthEnableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AuthEnable", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAuthEnableMethod() { + io.grpc.MethodDescriptor getAuthEnableMethod; + if ((getAuthEnableMethod = AuthGrpc.getAuthEnableMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getAuthEnableMethod = AuthGrpc.getAuthEnableMethod) == null) { + AuthGrpc.getAuthEnableMethod = getAuthEnableMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuthEnable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthEnable")) + .build(); + } + } + } + return getAuthEnableMethod; + } + + private static volatile io.grpc.MethodDescriptor getAuthDisableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AuthDisable", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAuthDisableMethod() { + io.grpc.MethodDescriptor getAuthDisableMethod; + if ((getAuthDisableMethod = AuthGrpc.getAuthDisableMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getAuthDisableMethod = AuthGrpc.getAuthDisableMethod) == null) { + AuthGrpc.getAuthDisableMethod = getAuthDisableMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuthDisable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthDisable")) + .build(); + } + } + } + return getAuthDisableMethod; + } + + private static volatile io.grpc.MethodDescriptor getAuthenticateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Authenticate", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAuthenticateMethod() { + io.grpc.MethodDescriptor getAuthenticateMethod; + if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) { + AuthGrpc.getAuthenticateMethod = getAuthenticateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Authenticate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("Authenticate")) + .build(); + } + } + } + return getAuthenticateMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserAddMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserAdd", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserAddMethod() { + io.grpc.MethodDescriptor getUserAddMethod; + if ((getUserAddMethod = AuthGrpc.getUserAddMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserAddMethod = AuthGrpc.getUserAddMethod) == null) { + AuthGrpc.getUserAddMethod = getUserAddMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserAdd")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserAdd")) + .build(); + } + } + } + return getUserAddMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserGetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserGet", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserGetMethod() { + io.grpc.MethodDescriptor getUserGetMethod; + if ((getUserGetMethod = AuthGrpc.getUserGetMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserGetMethod = AuthGrpc.getUserGetMethod) == null) { + AuthGrpc.getUserGetMethod = getUserGetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserGet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGet")) + .build(); + } + } + } + return getUserGetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserList", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserListMethod() { + io.grpc.MethodDescriptor getUserListMethod; + if ((getUserListMethod = AuthGrpc.getUserListMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserListMethod = AuthGrpc.getUserListMethod) == null) { + AuthGrpc.getUserListMethod = getUserListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserList")) + .build(); + } + } + } + return getUserListMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserDeleteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserDelete", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserDeleteMethod() { + io.grpc.MethodDescriptor getUserDeleteMethod; + if ((getUserDeleteMethod = AuthGrpc.getUserDeleteMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserDeleteMethod = AuthGrpc.getUserDeleteMethod) == null) { + AuthGrpc.getUserDeleteMethod = getUserDeleteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserDelete")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserDelete")) + .build(); + } + } + } + return getUserDeleteMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserChangePasswordMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserChangePassword", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserChangePasswordMethod() { + io.grpc.MethodDescriptor getUserChangePasswordMethod; + if ((getUserChangePasswordMethod = AuthGrpc.getUserChangePasswordMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserChangePasswordMethod = AuthGrpc.getUserChangePasswordMethod) == null) { + AuthGrpc.getUserChangePasswordMethod = getUserChangePasswordMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserChangePassword")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserChangePassword")) + .build(); + } + } + } + return getUserChangePasswordMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserGrantRoleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserGrantRole", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserGrantRoleMethod() { + io.grpc.MethodDescriptor getUserGrantRoleMethod; + if ((getUserGrantRoleMethod = AuthGrpc.getUserGrantRoleMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserGrantRoleMethod = AuthGrpc.getUserGrantRoleMethod) == null) { + AuthGrpc.getUserGrantRoleMethod = getUserGrantRoleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserGrantRole")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGrantRole")) + .build(); + } + } + } + return getUserGrantRoleMethod; + } + + private static volatile io.grpc.MethodDescriptor getUserRevokeRoleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UserRevokeRole", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUserRevokeRoleMethod() { + io.grpc.MethodDescriptor getUserRevokeRoleMethod; + if ((getUserRevokeRoleMethod = AuthGrpc.getUserRevokeRoleMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getUserRevokeRoleMethod = AuthGrpc.getUserRevokeRoleMethod) == null) { + AuthGrpc.getUserRevokeRoleMethod = getUserRevokeRoleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserRevokeRole")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserRevokeRole")) + .build(); + } + } + } + return getUserRevokeRoleMethod; + } + + private static volatile io.grpc.MethodDescriptor getRoleAddMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RoleAdd", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRoleAddMethod() { + io.grpc.MethodDescriptor getRoleAddMethod; + if ((getRoleAddMethod = AuthGrpc.getRoleAddMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getRoleAddMethod = AuthGrpc.getRoleAddMethod) == null) { + AuthGrpc.getRoleAddMethod = getRoleAddMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleAdd")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleAdd")) + .build(); + } + } + } + return getRoleAddMethod; + } + + private static volatile io.grpc.MethodDescriptor getRoleGetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RoleGet", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRoleGetMethod() { + io.grpc.MethodDescriptor getRoleGetMethod; + if ((getRoleGetMethod = AuthGrpc.getRoleGetMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getRoleGetMethod = AuthGrpc.getRoleGetMethod) == null) { + AuthGrpc.getRoleGetMethod = getRoleGetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleGet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGet")) + .build(); + } + } + } + return getRoleGetMethod; + } + + private static volatile io.grpc.MethodDescriptor getRoleListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RoleList", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRoleListMethod() { + io.grpc.MethodDescriptor getRoleListMethod; + if ((getRoleListMethod = AuthGrpc.getRoleListMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getRoleListMethod = AuthGrpc.getRoleListMethod) == null) { + AuthGrpc.getRoleListMethod = getRoleListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleList")) + .build(); + } + } + } + return getRoleListMethod; + } + + private static volatile io.grpc.MethodDescriptor getRoleDeleteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RoleDelete", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRoleDeleteMethod() { + io.grpc.MethodDescriptor getRoleDeleteMethod; + if ((getRoleDeleteMethod = AuthGrpc.getRoleDeleteMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getRoleDeleteMethod = AuthGrpc.getRoleDeleteMethod) == null) { + AuthGrpc.getRoleDeleteMethod = getRoleDeleteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleDelete")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleDelete")) + .build(); + } + } + } + return getRoleDeleteMethod; + } + + private static volatile io.grpc.MethodDescriptor getRoleGrantPermissionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RoleGrantPermission", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRoleGrantPermissionMethod() { + io.grpc.MethodDescriptor getRoleGrantPermissionMethod; + if ((getRoleGrantPermissionMethod = AuthGrpc.getRoleGrantPermissionMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getRoleGrantPermissionMethod = AuthGrpc.getRoleGrantPermissionMethod) == null) { + AuthGrpc.getRoleGrantPermissionMethod = getRoleGrantPermissionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleGrantPermission")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGrantPermission")) + .build(); + } + } + } + return getRoleGrantPermissionMethod; + } + + private static volatile io.grpc.MethodDescriptor getRoleRevokePermissionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RoleRevokePermission", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRoleRevokePermissionMethod() { + io.grpc.MethodDescriptor getRoleRevokePermissionMethod; + if ((getRoleRevokePermissionMethod = AuthGrpc.getRoleRevokePermissionMethod) == null) { + synchronized (AuthGrpc.class) { + if ((getRoleRevokePermissionMethod = AuthGrpc.getRoleRevokePermissionMethod) == null) { + AuthGrpc.getRoleRevokePermissionMethod = getRoleRevokePermissionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleRevokePermission")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleRevokePermission")) + .build(); + } + } + } + return getRoleRevokePermissionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AuthStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthStub(channel, callOptions); + } + }; + return AuthStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AuthBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthBlockingStub(channel, callOptions); + } + }; + return AuthBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AuthFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthFutureStub(channel, callOptions); + } + }; + return AuthFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class AuthImplBase implements io.grpc.BindableService { + + /** + *
+     * AuthEnable enables authentication.
+     * 
+ */ + public void authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthEnableMethod(), responseObserver); + } + + /** + *
+     * AuthDisable disables authentication.
+     * 
+ */ + public void authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthDisableMethod(), responseObserver); + } + + /** + *
+     * Authenticate processes an authenticate request.
+     * 
+ */ + public void authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthenticateMethod(), responseObserver); + } + + /** + *
+     * UserAdd adds a new user.
+     * 
+ */ + public void userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserAddMethod(), responseObserver); + } + + /** + *
+     * UserGet gets detailed user information.
+     * 
+ */ + public void userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGetMethod(), responseObserver); + } + + /** + *
+     * UserList gets a list of all users.
+     * 
+ */ + public void userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserListMethod(), responseObserver); + } + + /** + *
+     * UserDelete deletes a specified user.
+     * 
+ */ + public void userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserDeleteMethod(), responseObserver); + } + + /** + *
+     * UserChangePassword changes the password of a specified user.
+     * 
+ */ + public void userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserChangePasswordMethod(), responseObserver); + } + + /** + *
+     * UserGrant grants a role to a specified user.
+     * 
+ */ + public void userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGrantRoleMethod(), responseObserver); + } + + /** + *
+     * UserRevokeRole revokes a role of specified user.
+     * 
+ */ + public void userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserRevokeRoleMethod(), responseObserver); + } + + /** + *
+     * RoleAdd adds a new role.
+     * 
+ */ + public void roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleAddMethod(), responseObserver); + } + + /** + *
+     * RoleGet gets detailed role information.
+     * 
+ */ + public void roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGetMethod(), responseObserver); + } + + /** + *
+     * RoleList gets lists of all roles.
+     * 
+ */ + public void roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleListMethod(), responseObserver); + } + + /** + *
+     * RoleDelete deletes a specified role.
+     * 
+ */ + public void roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleDeleteMethod(), responseObserver); + } + + /** + *
+     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
+     * 
+ */ + public void roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGrantPermissionMethod(), responseObserver); + } + + /** + *
+     * RoleRevokePermission revokes a key or range permission of a specified role.
+     * 
+ */ + public void roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleRevokePermissionMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getAuthEnableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse>( + this, METHODID_AUTH_ENABLE))) + .addMethod( + getAuthDisableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse>( + this, METHODID_AUTH_DISABLE))) + .addMethod( + getAuthenticateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse>( + this, METHODID_AUTHENTICATE))) + .addMethod( + getUserAddMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse>( + this, METHODID_USER_ADD))) + .addMethod( + getUserGetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse>( + this, METHODID_USER_GET))) + .addMethod( + getUserListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse>( + this, METHODID_USER_LIST))) + .addMethod( + getUserDeleteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse>( + this, METHODID_USER_DELETE))) + .addMethod( + getUserChangePasswordMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse>( + this, METHODID_USER_CHANGE_PASSWORD))) + .addMethod( + getUserGrantRoleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse>( + this, METHODID_USER_GRANT_ROLE))) + .addMethod( + getUserRevokeRoleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse>( + this, METHODID_USER_REVOKE_ROLE))) + .addMethod( + getRoleAddMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse>( + this, METHODID_ROLE_ADD))) + .addMethod( + getRoleGetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse>( + this, METHODID_ROLE_GET))) + .addMethod( + getRoleListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse>( + this, METHODID_ROLE_LIST))) + .addMethod( + getRoleDeleteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse>( + this, METHODID_ROLE_DELETE))) + .addMethod( + getRoleGrantPermissionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse>( + this, METHODID_ROLE_GRANT_PERMISSION))) + .addMethod( + getRoleRevokePermissionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse>( + this, METHODID_ROLE_REVOKE_PERMISSION))) + .build(); + } + } + + /** + */ + public static final class AuthStub extends io.grpc.stub.AbstractAsyncStub { + private AuthStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthStub(channel, callOptions); + } + + /** + *
+     * AuthEnable enables authentication.
+     * 
+ */ + public void authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * AuthDisable disables authentication.
+     * 
+ */ + public void authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAuthDisableMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Authenticate processes an authenticate request.
+     * 
+ */ + public void authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserAdd adds a new user.
+     * 
+ */ + public void userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserAddMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserGet gets detailed user information.
+     * 
+ */ + public void userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserGetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserList gets a list of all users.
+     * 
+ */ + public void userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserDelete deletes a specified user.
+     * 
+ */ + public void userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserDeleteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserChangePassword changes the password of a specified user.
+     * 
+ */ + public void userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserChangePasswordMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserGrant grants a role to a specified user.
+     * 
+ */ + public void userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserGrantRoleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * UserRevokeRole revokes a role of specified user.
+     * 
+ */ + public void userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUserRevokeRoleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RoleAdd adds a new role.
+     * 
+ */ + public void roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRoleAddMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RoleGet gets detailed role information.
+     * 
+ */ + public void roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRoleGetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RoleList gets lists of all roles.
+     * 
+ */ + public void roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRoleListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RoleDelete deletes a specified role.
+     * 
+ */ + public void roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRoleDeleteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
+     * 
+ */ + public void roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRoleGrantPermissionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RoleRevokePermission revokes a key or range permission of a specified role.
+     * 
+ */ + public void roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class AuthBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AuthBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthBlockingStub(channel, callOptions); + } + + /** + *
+     * AuthEnable enables authentication.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAuthEnableMethod(), getCallOptions(), request); + } + + /** + *
+     * AuthDisable disables authentication.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAuthDisableMethod(), getCallOptions(), request); + } + + /** + *
+     * Authenticate processes an authenticate request.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAuthenticateMethod(), getCallOptions(), request); + } + + /** + *
+     * UserAdd adds a new user.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserAddMethod(), getCallOptions(), request); + } + + /** + *
+     * UserGet gets detailed user information.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserGetMethod(), getCallOptions(), request); + } + + /** + *
+     * UserList gets a list of all users.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserListMethod(), getCallOptions(), request); + } + + /** + *
+     * UserDelete deletes a specified user.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserDeleteMethod(), getCallOptions(), request); + } + + /** + *
+     * UserChangePassword changes the password of a specified user.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserChangePasswordMethod(), getCallOptions(), request); + } + + /** + *
+     * UserGrant grants a role to a specified user.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserGrantRoleMethod(), getCallOptions(), request); + } + + /** + *
+     * UserRevokeRole revokes a role of specified user.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUserRevokeRoleMethod(), getCallOptions(), request); + } + + /** + *
+     * RoleAdd adds a new role.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRoleAddMethod(), getCallOptions(), request); + } + + /** + *
+     * RoleGet gets detailed role information.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRoleGetMethod(), getCallOptions(), request); + } + + /** + *
+     * RoleList gets lists of all roles.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRoleListMethod(), getCallOptions(), request); + } + + /** + *
+     * RoleDelete deletes a specified role.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRoleDeleteMethod(), getCallOptions(), request); + } + + /** + *
+     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRoleGrantPermissionMethod(), getCallOptions(), request); + } + + /** + *
+     * RoleRevokePermission revokes a key or range permission of a specified role.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRoleRevokePermissionMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class AuthFutureStub extends io.grpc.stub.AbstractFutureStub { + private AuthFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthFutureStub(channel, callOptions); + } + + /** + *
+     * AuthEnable enables authentication.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture authEnable( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request); + } + + /** + *
+     * AuthDisable disables authentication.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture authDisable( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAuthDisableMethod(), getCallOptions()), request); + } + + /** + *
+     * Authenticate processes an authenticate request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture authenticate( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request); + } + + /** + *
+     * UserAdd adds a new user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userAdd( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserAddMethod(), getCallOptions()), request); + } + + /** + *
+     * UserGet gets detailed user information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userGet( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserGetMethod(), getCallOptions()), request); + } + + /** + *
+     * UserList gets a list of all users.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userList( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserListMethod(), getCallOptions()), request); + } + + /** + *
+     * UserDelete deletes a specified user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userDelete( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserDeleteMethod(), getCallOptions()), request); + } + + /** + *
+     * UserChangePassword changes the password of a specified user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userChangePassword( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserChangePasswordMethod(), getCallOptions()), request); + } + + /** + *
+     * UserGrant grants a role to a specified user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userGrantRole( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserGrantRoleMethod(), getCallOptions()), request); + } + + /** + *
+     * UserRevokeRole revokes a role of specified user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture userRevokeRole( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUserRevokeRoleMethod(), getCallOptions()), request); + } + + /** + *
+     * RoleAdd adds a new role.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture roleAdd( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRoleAddMethod(), getCallOptions()), request); + } + + /** + *
+     * RoleGet gets detailed role information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture roleGet( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRoleGetMethod(), getCallOptions()), request); + } + + /** + *
+     * RoleList gets lists of all roles.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture roleList( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRoleListMethod(), getCallOptions()), request); + } + + /** + *
+     * RoleDelete deletes a specified role.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture roleDelete( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRoleDeleteMethod(), getCallOptions()), request); + } + + /** + *
+     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture roleGrantPermission( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRoleGrantPermissionMethod(), getCallOptions()), request); + } + + /** + *
+     * RoleRevokePermission revokes a key or range permission of a specified role.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture roleRevokePermission( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_AUTH_ENABLE = 0; + private static final int METHODID_AUTH_DISABLE = 1; + private static final int METHODID_AUTHENTICATE = 2; + private static final int METHODID_USER_ADD = 3; + private static final int METHODID_USER_GET = 4; + private static final int METHODID_USER_LIST = 5; + private static final int METHODID_USER_DELETE = 6; + private static final int METHODID_USER_CHANGE_PASSWORD = 7; + private static final int METHODID_USER_GRANT_ROLE = 8; + private static final int METHODID_USER_REVOKE_ROLE = 9; + private static final int METHODID_ROLE_ADD = 10; + private static final int METHODID_ROLE_GET = 11; + private static final int METHODID_ROLE_LIST = 12; + private static final int METHODID_ROLE_DELETE = 13; + private static final int METHODID_ROLE_GRANT_PERMISSION = 14; + private static final int METHODID_ROLE_REVOKE_PERMISSION = 15; + + 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 AuthImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AuthImplBase 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_AUTH_ENABLE: + serviceImpl.authEnable((org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_AUTH_DISABLE: + serviceImpl.authDisable((org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_AUTHENTICATE: + serviceImpl.authenticate((org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_ADD: + serviceImpl.userAdd((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_GET: + serviceImpl.userGet((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_LIST: + serviceImpl.userList((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_DELETE: + serviceImpl.userDelete((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_CHANGE_PASSWORD: + serviceImpl.userChangePassword((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_GRANT_ROLE: + serviceImpl.userGrantRole((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_USER_REVOKE_ROLE: + serviceImpl.userRevokeRole((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLE_ADD: + serviceImpl.roleAdd((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLE_GET: + serviceImpl.roleGet((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLE_LIST: + serviceImpl.roleList((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLE_DELETE: + serviceImpl.roleDelete((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLE_GRANT_PERMISSION: + serviceImpl.roleGrantPermission((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLE_REVOKE_PERMISSION: + serviceImpl.roleRevokePermission((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest) 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 AuthBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AuthBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Auth"); + } + } + + private static final class AuthFileDescriptorSupplier + extends AuthBaseDescriptorSupplier { + AuthFileDescriptorSupplier() {} + } + + private static final class AuthMethodDescriptorSupplier + extends AuthBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AuthMethodDescriptorSupplier(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 (AuthGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AuthFileDescriptorSupplier()) + .addMethod(getAuthEnableMethod()) + .addMethod(getAuthDisableMethod()) + .addMethod(getAuthenticateMethod()) + .addMethod(getUserAddMethod()) + .addMethod(getUserGetMethod()) + .addMethod(getUserListMethod()) + .addMethod(getUserDeleteMethod()) + .addMethod(getUserChangePasswordMethod()) + .addMethod(getUserGrantRoleMethod()) + .addMethod(getUserRevokeRoleMethod()) + .addMethod(getRoleAddMethod()) + .addMethod(getRoleGetMethod()) + .addMethod(getRoleListMethod()) + .addMethod(getRoleDeleteMethod()) + .addMethod(getRoleGrantPermissionMethod()) + .addMethod(getRoleRevokePermissionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequest.java new file mode 100644 index 0000000..b660c69 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequest.java @@ -0,0 +1,585 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleAddRequest} + */ +public final class AuthRoleAddRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleAddRequest) + AuthRoleAddRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleAddRequest.newBuilder() to construct. + private AuthRoleAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleAddRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleAddRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleAddRequest( + 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(); + + 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * name is the name of the role to add to the authentication system.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * name is the name of the role to add to the authentication system.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleAddRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleAddRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest(this); + result.name_ = name_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * name is the name of the role to add to the authentication system.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * name is the name of the role to add to the authentication system.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * name is the name of the role to add to the authentication system.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * name is the name of the role to add to the authentication system.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * name is the name of the role to add to the authentication system.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleAddRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleAddRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleAddRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleAddRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequestOrBuilder.java new file mode 100644 index 0000000..860dafc --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleAddRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleAddRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * name is the name of the role to add to the authentication system.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * name is the name of the role to add to the authentication system.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java new file mode 100644 index 0000000..6f811e2 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleAddResponse} + */ +public final class AuthRoleAddResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleAddResponse) + AuthRoleAddResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleAddResponse.newBuilder() to construct. + private AuthRoleAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleAddResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleAddResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleAddResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleAddResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleAddResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleAddResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleAddResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleAddResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleAddResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponseOrBuilder.java new file mode 100644 index 0000000..480fea4 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleAddResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleAddResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java new file mode 100644 index 0000000..d318428 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java @@ -0,0 +1,557 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleDeleteRequest} + */ +public final class AuthRoleDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleDeleteRequest) + AuthRoleDeleteRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleDeleteRequest.newBuilder() to construct. + private AuthRoleDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleDeleteRequest() { + role_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleDeleteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleDeleteRequest( + 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(); + + role_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.Builder.class); + } + + public static final int ROLE_FIELD_NUMBER = 1; + private volatile java.lang.Object role_; + /** + * string role = 1; + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + /** + * string role = 1; + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = 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 (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest) obj; + + if (!getRole() + .equals(other.getRole())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleDeleteRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.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(); + role_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest(this); + result.role_ = role_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object role_ = ""; + /** + * string role = 1; + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string role = 1; + * @return The bytes for role. + */ + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string role = 1; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + * string role = 1; + * @return This builder for chaining. + */ + public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + * string role = 1; + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = 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:etcdserverpb.AuthRoleDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleDeleteRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleDeleteRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequestOrBuilder.java new file mode 100644 index 0000000..4cba2be --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string role = 1; + * @return The role. + */ + java.lang.String getRole(); + /** + * string role = 1; + * @return The bytes for role. + */ + com.google.protobuf.ByteString + getRoleBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java new file mode 100644 index 0000000..13f7295 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleDeleteResponse} + */ +public final class AuthRoleDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleDeleteResponse) + AuthRoleDeleteResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleDeleteResponse.newBuilder() to construct. + private AuthRoleDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleDeleteResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleDeleteResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleDeleteResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleDeleteResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleDeleteResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponseOrBuilder.java new file mode 100644 index 0000000..d900087 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleDeleteResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java new file mode 100644 index 0000000..043c737 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java @@ -0,0 +1,557 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleGetRequest} + */ +public final class AuthRoleGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGetRequest) + AuthRoleGetRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleGetRequest.newBuilder() to construct. + private AuthRoleGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleGetRequest() { + role_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleGetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleGetRequest( + 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(); + + role_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.Builder.class); + } + + public static final int ROLE_FIELD_NUMBER = 1; + private volatile java.lang.Object role_; + /** + * string role = 1; + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + /** + * string role = 1; + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = 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 (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest) obj; + + if (!getRole() + .equals(other.getRole())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGetRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.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(); + role_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest(this); + result.role_ = role_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object role_ = ""; + /** + * string role = 1; + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string role = 1; + * @return The bytes for role. + */ + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string role = 1; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + * string role = 1; + * @return This builder for chaining. + */ + public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + * string role = 1; + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = 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:etcdserverpb.AuthRoleGetRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGetRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleGetRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequestOrBuilder.java new file mode 100644 index 0000000..d127554 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string role = 1; + * @return The role. + */ + java.lang.String getRole(); + /** + * string role = 1; + * @return The bytes for role. + */ + com.google.protobuf.ByteString + getRoleBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java new file mode 100644 index 0000000..d94137a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java @@ -0,0 +1,958 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleGetResponse} + */ +public final class AuthRoleGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGetResponse) + AuthRoleGetResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleGetResponse.newBuilder() to construct. + private AuthRoleGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleGetResponse() { + perm_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleGetResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleGetResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + perm_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + perm_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + perm_ = java.util.Collections.unmodifiableList(perm_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int PERM_FIELD_NUMBER = 2; + private java.util.List perm_; + /** + * repeated .authpb.Permission perm = 2; + */ + @java.lang.Override + public java.util.List getPermList() { + return perm_; + } + /** + * repeated .authpb.Permission perm = 2; + */ + @java.lang.Override + public java.util.List + getPermOrBuilderList() { + return perm_; + } + /** + * repeated .authpb.Permission perm = 2; + */ + @java.lang.Override + public int getPermCount() { + return perm_.size(); + } + /** + * repeated .authpb.Permission perm = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(int index) { + return perm_.get(index); + } + /** + * repeated .authpb.Permission perm = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder( + int index) { + return perm_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < perm_.size(); i++) { + output.writeMessage(2, perm_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < perm_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, perm_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getPermList() + .equals(other.getPermList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getPermCount() > 0) { + hash = (37 * hash) + PERM_FIELD_NUMBER; + hash = (53 * hash) + getPermList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGetResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPermFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (permBuilder_ == null) { + perm_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + permBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (permBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + perm_ = java.util.Collections.unmodifiableList(perm_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.perm_ = perm_; + } else { + result.perm_ = permBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (permBuilder_ == null) { + if (!other.perm_.isEmpty()) { + if (perm_.isEmpty()) { + perm_ = other.perm_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePermIsMutable(); + perm_.addAll(other.perm_); + } + onChanged(); + } + } else { + if (!other.perm_.isEmpty()) { + if (permBuilder_.isEmpty()) { + permBuilder_.dispose(); + permBuilder_ = null; + perm_ = other.perm_; + bitField0_ = (bitField0_ & ~0x00000001); + permBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPermFieldBuilder() : null; + } else { + permBuilder_.addAllMessages(other.perm_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List perm_ = + java.util.Collections.emptyList(); + private void ensurePermIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + perm_ = new java.util.ArrayList(perm_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> permBuilder_; + + /** + * repeated .authpb.Permission perm = 2; + */ + public java.util.List getPermList() { + if (permBuilder_ == null) { + return java.util.Collections.unmodifiableList(perm_); + } else { + return permBuilder_.getMessageList(); + } + } + /** + * repeated .authpb.Permission perm = 2; + */ + public int getPermCount() { + if (permBuilder_ == null) { + return perm_.size(); + } else { + return permBuilder_.getCount(); + } + } + /** + * repeated .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(int index) { + if (permBuilder_ == null) { + return perm_.get(index); + } else { + return permBuilder_.getMessage(index); + } + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder setPerm( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (permBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermIsMutable(); + perm_.set(index, value); + onChanged(); + } else { + permBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder setPerm( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (permBuilder_ == null) { + ensurePermIsMutable(); + perm_.set(index, builderForValue.build()); + onChanged(); + } else { + permBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder addPerm(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (permBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermIsMutable(); + perm_.add(value); + onChanged(); + } else { + permBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder addPerm( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (permBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermIsMutable(); + perm_.add(index, value); + onChanged(); + } else { + permBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder addPerm( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (permBuilder_ == null) { + ensurePermIsMutable(); + perm_.add(builderForValue.build()); + onChanged(); + } else { + permBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder addPerm( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (permBuilder_ == null) { + ensurePermIsMutable(); + perm_.add(index, builderForValue.build()); + onChanged(); + } else { + permBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder addAllPerm( + java.lang.Iterable values) { + if (permBuilder_ == null) { + ensurePermIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, perm_); + onChanged(); + } else { + permBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder clearPerm() { + if (permBuilder_ == null) { + perm_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + permBuilder_.clear(); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public Builder removePerm(int index) { + if (permBuilder_ == null) { + ensurePermIsMutable(); + perm_.remove(index); + onChanged(); + } else { + permBuilder_.remove(index); + } + return this; + } + /** + * repeated .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder getPermBuilder( + int index) { + return getPermFieldBuilder().getBuilder(index); + } + /** + * repeated .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder( + int index) { + if (permBuilder_ == null) { + return perm_.get(index); } else { + return permBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .authpb.Permission perm = 2; + */ + public java.util.List + getPermOrBuilderList() { + if (permBuilder_ != null) { + return permBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(perm_); + } + } + /** + * repeated .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder addPermBuilder() { + return getPermFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance()); + } + /** + * repeated .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder addPermBuilder( + int index) { + return getPermFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance()); + } + /** + * repeated .authpb.Permission perm = 2; + */ + public java.util.List + getPermBuilderList() { + return getPermFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> + getPermFieldBuilder() { + if (permBuilder_ == null) { + permBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>( + perm_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + perm_ = null; + } + return permBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGetResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGetResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleGetResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponseOrBuilder.java new file mode 100644 index 0000000..535d626 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponseOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * repeated .authpb.Permission perm = 2; + */ + java.util.List + getPermList(); + /** + * repeated .authpb.Permission perm = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(int index); + /** + * repeated .authpb.Permission perm = 2; + */ + int getPermCount(); + /** + * repeated .authpb.Permission perm = 2; + */ + java.util.List + getPermOrBuilderList(); + /** + * repeated .authpb.Permission perm = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java new file mode 100644 index 0000000..8959d6e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java @@ -0,0 +1,821 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionRequest} + */ +public final class AuthRoleGrantPermissionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGrantPermissionRequest) + AuthRoleGrantPermissionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleGrantPermissionRequest.newBuilder() to construct. + private AuthRoleGrantPermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleGrantPermissionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleGrantPermissionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleGrantPermissionRequest( + 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(); + + name_ = s; + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder subBuilder = null; + if (perm_ != null) { + subBuilder = perm_.toBuilder(); + } + perm_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(perm_); + perm_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * name is the name of the role which will be granted the permission.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * name is the name of the role which will be granted the permission.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERM_FIELD_NUMBER = 2; + private org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission perm_; + /** + *
+   * perm is the permission to grant to the role.
+   * 
+ * + * .authpb.Permission perm = 2; + * @return Whether the perm field is set. + */ + @java.lang.Override + public boolean hasPerm() { + return perm_ != null; + } + /** + *
+   * perm is the permission to grant to the role.
+   * 
+ * + * .authpb.Permission perm = 2; + * @return The perm. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm() { + return perm_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance() : perm_; + } + /** + *
+   * perm is the permission to grant to the role.
+   * 
+ * + * .authpb.Permission perm = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder() { + return getPerm(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (perm_ != null) { + output.writeMessage(2, getPerm()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (perm_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPerm()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasPerm() != other.hasPerm()) return false; + if (hasPerm()) { + if (!getPerm() + .equals(other.getPerm())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasPerm()) { + hash = (37 * hash) + PERM_FIELD_NUMBER; + hash = (53 * hash) + getPerm().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGrantPermissionRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.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(); + name_ = ""; + + if (permBuilder_ == null) { + perm_ = null; + } else { + perm_ = null; + permBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest(this); + result.name_ = name_; + if (permBuilder_ == null) { + result.perm_ = perm_; + } else { + result.perm_ = permBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasPerm()) { + mergePerm(other.getPerm()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * name is the name of the role which will be granted the permission.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * name is the name of the role which will be granted the permission.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * name is the name of the role which will be granted the permission.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * name is the name of the role which will be granted the permission.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * name is the name of the role which will be granted the permission.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission perm_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> permBuilder_; + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + * @return Whether the perm field is set. + */ + public boolean hasPerm() { + return permBuilder_ != null || perm_ != null; + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + * @return The perm. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm() { + if (permBuilder_ == null) { + return perm_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance() : perm_; + } else { + return permBuilder_.getMessage(); + } + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + public Builder setPerm(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (permBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + perm_ = value; + onChanged(); + } else { + permBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + public Builder setPerm( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (permBuilder_ == null) { + perm_ = builderForValue.build(); + onChanged(); + } else { + permBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + public Builder mergePerm(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (permBuilder_ == null) { + if (perm_ != null) { + perm_ = + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.newBuilder(perm_).mergeFrom(value).buildPartial(); + } else { + perm_ = value; + } + onChanged(); + } else { + permBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + public Builder clearPerm() { + if (permBuilder_ == null) { + perm_ = null; + onChanged(); + } else { + perm_ = null; + permBuilder_ = null; + } + + return this; + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder getPermBuilder() { + + onChanged(); + return getPermFieldBuilder().getBuilder(); + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder() { + if (permBuilder_ != null) { + return permBuilder_.getMessageOrBuilder(); + } else { + return perm_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance() : perm_; + } + } + /** + *
+     * perm is the permission to grant to the role.
+     * 
+ * + * .authpb.Permission perm = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> + getPermFieldBuilder() { + if (permBuilder_ == null) { + permBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>( + getPerm(), + getParentForChildren(), + isClean()); + perm_ = null; + } + return permBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGrantPermissionRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGrantPermissionRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleGrantPermissionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleGrantPermissionRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequestOrBuilder.java new file mode 100644 index 0000000..5fa17b7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleGrantPermissionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGrantPermissionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * name is the name of the role which will be granted the permission.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * name is the name of the role which will be granted the permission.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * perm is the permission to grant to the role.
+   * 
+ * + * .authpb.Permission perm = 2; + * @return Whether the perm field is set. + */ + boolean hasPerm(); + /** + *
+   * perm is the permission to grant to the role.
+   * 
+ * + * .authpb.Permission perm = 2; + * @return The perm. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(); + /** + *
+   * perm is the permission to grant to the role.
+   * 
+ * + * .authpb.Permission perm = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java new file mode 100644 index 0000000..b22820e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionResponse} + */ +public final class AuthRoleGrantPermissionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGrantPermissionResponse) + AuthRoleGrantPermissionResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleGrantPermissionResponse.newBuilder() to construct. + private AuthRoleGrantPermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleGrantPermissionResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleGrantPermissionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleGrantPermissionResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGrantPermissionResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGrantPermissionResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGrantPermissionResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleGrantPermissionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleGrantPermissionResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponseOrBuilder.java new file mode 100644 index 0000000..b1b6b67 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleGrantPermissionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGrantPermissionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java new file mode 100644 index 0000000..6b83c9e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleListRequest} + */ +public final class AuthRoleListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleListRequest) + AuthRoleListRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleListRequest.newBuilder() to construct. + private AuthRoleListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleListRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleListRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleListRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleListRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleListRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleListRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleListRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequestOrBuilder.java new file mode 100644 index 0000000..ec153e7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleListRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponse.java new file mode 100644 index 0000000..e67a55d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponse.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleListResponse} + */ +public final class AuthRoleListResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleListResponse) + AuthRoleListResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleListResponse.newBuilder() to construct. + private AuthRoleListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleListResponse() { + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleListResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + roles_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = roles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ROLES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList roles_; + /** + * repeated string roles = 2; + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_; + } + /** + * repeated string roles = 2; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 2; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 2; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getRolesList() + .equals(other.getRolesList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleListResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleListResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + roles_ = roles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roles_ = roles_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string roles = 2; + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_.getUnmodifiableView(); + } + /** + * repeated string roles = 2; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 2; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 2; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + /** + * repeated string roles = 2; + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles( + java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, roles_); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleListResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleListResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleListResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponseOrBuilder.java new file mode 100644 index 0000000..c286592 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListResponseOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * repeated string roles = 2; + * @return A list containing the roles. + */ + java.util.List + getRolesList(); + /** + * repeated string roles = 2; + * @return The count of roles. + */ + int getRolesCount(); + /** + * repeated string roles = 2; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + /** + * repeated string roles = 2; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString + getRolesBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java new file mode 100644 index 0000000..8dfffe6 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java @@ -0,0 +1,833 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionRequest} + */ +public final class AuthRoleRevokePermissionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleRevokePermissionRequest) + AuthRoleRevokePermissionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleRevokePermissionRequest.newBuilder() to construct. + private AuthRoleRevokePermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleRevokePermissionRequest() { + role_ = ""; + key_ = ""; + rangeEnd_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleRevokePermissionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleRevokePermissionRequest( + 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(); + + role_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + rangeEnd_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.Builder.class); + } + + public static final int ROLE_FIELD_NUMBER = 1; + private volatile java.lang.Object role_; + /** + * string role = 1; + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + /** + * string role = 1; + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * string key = 2; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * string key = 2; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RANGE_END_FIELD_NUMBER = 3; + private volatile java.lang.Object rangeEnd_; + /** + * string range_end = 3; + * @return The rangeEnd. + */ + @java.lang.Override + public java.lang.String getRangeEnd() { + java.lang.Object ref = rangeEnd_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeEnd_ = s; + return s; + } + } + /** + * string range_end = 3; + * @return The bytes for rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRangeEndBytes() { + java.lang.Object ref = rangeEnd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rangeEnd_ = 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 (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + if (!getRangeEndBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rangeEnd_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + if (!getRangeEndBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rangeEnd_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest) obj; + + if (!getRole() + .equals(other.getRole())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getRangeEnd() + .equals(other.getRangeEnd())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + RANGE_END_FIELD_NUMBER; + hash = (53 * hash) + getRangeEnd().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleRevokePermissionRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.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(); + role_ = ""; + + key_ = ""; + + rangeEnd_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest(this); + result.role_ = role_; + result.key_ = key_; + result.rangeEnd_ = rangeEnd_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getRangeEnd().isEmpty()) { + rangeEnd_ = other.rangeEnd_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object role_ = ""; + /** + * string role = 1; + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string role = 1; + * @return The bytes for role. + */ + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string role = 1; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + * string role = 1; + * @return This builder for chaining. + */ + public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + * string role = 1; + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = value; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 2; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 2; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 2; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 2; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 2; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object rangeEnd_ = ""; + /** + * string range_end = 3; + * @return The rangeEnd. + */ + public java.lang.String getRangeEnd() { + java.lang.Object ref = rangeEnd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeEnd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string range_end = 3; + * @return The bytes for rangeEnd. + */ + public com.google.protobuf.ByteString + getRangeEndBytes() { + java.lang.Object ref = rangeEnd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rangeEnd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string range_end = 3; + * @param value The rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEnd( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeEnd_ = value; + onChanged(); + return this; + } + /** + * string range_end = 3; + * @return This builder for chaining. + */ + public Builder clearRangeEnd() { + + rangeEnd_ = getDefaultInstance().getRangeEnd(); + onChanged(); + return this; + } + /** + * string range_end = 3; + * @param value The bytes for rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEndBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeEnd_ = 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:etcdserverpb.AuthRoleRevokePermissionRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleRevokePermissionRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleRevokePermissionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleRevokePermissionRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequestOrBuilder.java new file mode 100644 index 0000000..b52e9e7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequestOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleRevokePermissionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleRevokePermissionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string role = 1; + * @return The role. + */ + java.lang.String getRole(); + /** + * string role = 1; + * @return The bytes for role. + */ + com.google.protobuf.ByteString + getRoleBytes(); + + /** + * string key = 2; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 2; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string range_end = 3; + * @return The rangeEnd. + */ + java.lang.String getRangeEnd(); + /** + * string range_end = 3; + * @return The bytes for rangeEnd. + */ + com.google.protobuf.ByteString + getRangeEndBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponse.java new file mode 100644 index 0000000..402fa8f --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionResponse} + */ +public final class AuthRoleRevokePermissionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleRevokePermissionResponse) + AuthRoleRevokePermissionResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthRoleRevokePermissionResponse.newBuilder() to construct. + private AuthRoleRevokePermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRoleRevokePermissionResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthRoleRevokePermissionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRoleRevokePermissionResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleRevokePermissionResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleRevokePermissionResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleRevokePermissionResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRoleRevokePermissionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRoleRevokePermissionResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponseOrBuilder.java new file mode 100644 index 0000000..089eb2b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthRoleRevokePermissionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleRevokePermissionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthService.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthService.java new file mode 100644 index 0000000..ac47cfd --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthService.java @@ -0,0 +1,154 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import io.reactivex.rxjava3.core.Single; + +@javax.annotation.Generated( +value = "by grpc-osgi-generator (REACTIVEX) - A protoc plugin for ECF's grpc remote services distribution provider at https://github.com/ECF/grpc-RemoteServiceSProvider ", +comments = "Source: rpc.proto. ") +public interface AuthService { + + + /** + *
+     *  AuthEnable enables authentication.
+     * 
+ */ + default Single authEnable(Single requests) { + return null; + } + + /** + *
+     *  AuthDisable disables authentication.
+     * 
+ */ + default Single authDisable(Single requests) { + return null; + } + + /** + *
+     *  Authenticate processes an authenticate request.
+     * 
+ */ + default Single authenticate(Single requests) { + return null; + } + + /** + *
+     *  UserAdd adds a new user.
+     * 
+ */ + default Single userAdd(Single requests) { + return null; + } + + /** + *
+     *  UserGet gets detailed user information.
+     * 
+ */ + default Single userGet(Single requests) { + return null; + } + + /** + *
+     *  UserList gets a list of all users.
+     * 
+ */ + default Single userList(Single requests) { + return null; + } + + /** + *
+     *  UserDelete deletes a specified user.
+     * 
+ */ + default Single userDelete(Single requests) { + return null; + } + + /** + *
+     *  UserChangePassword changes the password of a specified user.
+     * 
+ */ + default Single userChangePassword(Single requests) { + return null; + } + + /** + *
+     *  UserGrant grants a role to a specified user.
+     * 
+ */ + default Single userGrantRole(Single requests) { + return null; + } + + /** + *
+     *  UserRevokeRole revokes a role of specified user.
+     * 
+ */ + default Single userRevokeRole(Single requests) { + return null; + } + + /** + *
+     *  RoleAdd adds a new role.
+     * 
+ */ + default Single roleAdd(Single requests) { + return null; + } + + /** + *
+     *  RoleGet gets detailed role information.
+     * 
+ */ + default Single roleGet(Single requests) { + return null; + } + + /** + *
+     *  RoleList gets lists of all roles.
+     * 
+ */ + default Single roleList(Single requests) { + return null; + } + + /** + *
+     *  RoleDelete deletes a specified role.
+     * 
+ */ + default Single roleDelete(Single requests) { + return null; + } + + /** + *
+     *  RoleGrantPermission grants a permission of a specified key or range to a specified role.
+     * 
+ */ + default Single roleGrantPermission(Single requests) { + return null; + } + + /** + *
+     *  RoleRevokePermission revokes a key or range permission of a specified role.
+     * 
+ */ + default Single roleRevokePermission(Single requests) { + return null; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequest.java new file mode 100644 index 0000000..031c71e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequest.java @@ -0,0 +1,695 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserAddRequest} + */ +public final class AuthUserAddRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserAddRequest) + AuthUserAddRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserAddRequest.newBuilder() to construct. + private AuthUserAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserAddRequest() { + name_ = ""; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserAddRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserAddRequest( + 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(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getPassword() + .equals(other.getPassword())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserAddRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserAddRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.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(); + name_ = ""; + + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest(this); + result.name_ = name_; + result.password_ = password_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + * @return The bytes for password. + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = 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:etcdserverpb.AuthUserAddRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserAddRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserAddRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserAddRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequestOrBuilder.java new file mode 100644 index 0000000..7d32890 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserAddRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserAddRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string password = 2; + * @return The password. + */ + java.lang.String getPassword(); + /** + * string password = 2; + * @return The bytes for password. + */ + com.google.protobuf.ByteString + getPasswordBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponse.java new file mode 100644 index 0000000..838e348 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserAddResponse} + */ +public final class AuthUserAddResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserAddResponse) + AuthUserAddResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserAddResponse.newBuilder() to construct. + private AuthUserAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserAddResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserAddResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserAddResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserAddResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserAddResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserAddResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserAddResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserAddResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserAddResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserAddResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponseOrBuilder.java new file mode 100644 index 0000000..663f841 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserAddResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserAddResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserAddResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequest.java new file mode 100644 index 0000000..81ee7e7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequest.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserChangePasswordRequest} + */ +public final class AuthUserChangePasswordRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserChangePasswordRequest) + AuthUserChangePasswordRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserChangePasswordRequest.newBuilder() to construct. + private AuthUserChangePasswordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserChangePasswordRequest() { + name_ = ""; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserChangePasswordRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserChangePasswordRequest( + 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(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * name is the name of the user whose password is being changed.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * name is the name of the user whose password is being changed.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + *
+   * password is the new password for the user.
+   * 
+ * + * string password = 2; + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + *
+   * password is the new password for the user.
+   * 
+ * + * string password = 2; + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getPassword() + .equals(other.getPassword())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserChangePasswordRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserChangePasswordRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.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(); + name_ = ""; + + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest(this); + result.name_ = name_; + result.password_ = password_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * name is the name of the user whose password is being changed.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * name is the name of the user whose password is being changed.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * name is the name of the user whose password is being changed.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * name is the name of the user whose password is being changed.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * name is the name of the user whose password is being changed.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + *
+     * password is the new password for the user.
+     * 
+ * + * string password = 2; + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * password is the new password for the user.
+     * 
+ * + * string password = 2; + * @return The bytes for password. + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * password is the new password for the user.
+     * 
+ * + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + *
+     * password is the new password for the user.
+     * 
+ * + * string password = 2; + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + *
+     * password is the new password for the user.
+     * 
+ * + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = 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:etcdserverpb.AuthUserChangePasswordRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserChangePasswordRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserChangePasswordRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserChangePasswordRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequestOrBuilder.java new file mode 100644 index 0000000..a93e519 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserChangePasswordRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserChangePasswordRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * name is the name of the user whose password is being changed.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * name is the name of the user whose password is being changed.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * password is the new password for the user.
+   * 
+ * + * string password = 2; + * @return The password. + */ + java.lang.String getPassword(); + /** + *
+   * password is the new password for the user.
+   * 
+ * + * string password = 2; + * @return The bytes for password. + */ + com.google.protobuf.ByteString + getPasswordBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponse.java new file mode 100644 index 0000000..00b1dc4 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserChangePasswordResponse} + */ +public final class AuthUserChangePasswordResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserChangePasswordResponse) + AuthUserChangePasswordResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserChangePasswordResponse.newBuilder() to construct. + private AuthUserChangePasswordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserChangePasswordResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserChangePasswordResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserChangePasswordResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserChangePasswordResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserChangePasswordResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserChangePasswordResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserChangePasswordResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserChangePasswordResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserChangePasswordResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponseOrBuilder.java new file mode 100644 index 0000000..1e76c91 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserChangePasswordResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserChangePasswordResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserChangePasswordResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequest.java new file mode 100644 index 0000000..d577645 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequest.java @@ -0,0 +1,585 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserDeleteRequest} + */ +public final class AuthUserDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserDeleteRequest) + AuthUserDeleteRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserDeleteRequest.newBuilder() to construct. + private AuthUserDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserDeleteRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserDeleteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserDeleteRequest( + 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(); + + 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * name is the name of the user to delete.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * name is the name of the user to delete.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserDeleteRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest(this); + result.name_ = name_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * name is the name of the user to delete.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * name is the name of the user to delete.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * name is the name of the user to delete.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * name is the name of the user to delete.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * name is the name of the user to delete.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserDeleteRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserDeleteRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequestOrBuilder.java new file mode 100644 index 0000000..1147c6e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * name is the name of the user to delete.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * name is the name of the user to delete.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponse.java new file mode 100644 index 0000000..1902647 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserDeleteResponse} + */ +public final class AuthUserDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserDeleteResponse) + AuthUserDeleteResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserDeleteResponse.newBuilder() to construct. + private AuthUserDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserDeleteResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserDeleteResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserDeleteResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserDeleteResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserDeleteResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponseOrBuilder.java new file mode 100644 index 0000000..39ec5fd --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserDeleteResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserDeleteResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequest.java new file mode 100644 index 0000000..71538db --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequest.java @@ -0,0 +1,557 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserGetRequest} + */ +public final class AuthUserGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGetRequest) + AuthUserGetRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserGetRequest.newBuilder() to construct. + private AuthUserGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserGetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserGetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserGetRequest( + 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(); + + 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGetRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest(this); + result.name_ = name_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGetRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGetRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserGetRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequestOrBuilder.java new file mode 100644 index 0000000..e414e29 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponse.java new file mode 100644 index 0000000..fa9d364 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponse.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserGetResponse} + */ +public final class AuthUserGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGetResponse) + AuthUserGetResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserGetResponse.newBuilder() to construct. + private AuthUserGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserGetResponse() { + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserGetResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserGetResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + roles_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = roles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ROLES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList roles_; + /** + * repeated string roles = 2; + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_; + } + /** + * repeated string roles = 2; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 2; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 2; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getRolesList() + .equals(other.getRolesList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGetResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGetResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + roles_ = roles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roles_ = roles_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string roles = 2; + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_.getUnmodifiableView(); + } + /** + * repeated string roles = 2; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 2; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 2; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + /** + * repeated string roles = 2; + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles( + java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, roles_); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string roles = 2; + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGetResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGetResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserGetResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponseOrBuilder.java new file mode 100644 index 0000000..85c028a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGetResponseOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * repeated string roles = 2; + * @return A list containing the roles. + */ + java.util.List + getRolesList(); + /** + * repeated string roles = 2; + * @return The count of roles. + */ + int getRolesCount(); + /** + * repeated string roles = 2; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + /** + * repeated string roles = 2; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString + getRolesBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequest.java new file mode 100644 index 0000000..325f962 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequest.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserGrantRoleRequest} + */ +public final class AuthUserGrantRoleRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGrantRoleRequest) + AuthUserGrantRoleRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserGrantRoleRequest.newBuilder() to construct. + private AuthUserGrantRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserGrantRoleRequest() { + user_ = ""; + role_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserGrantRoleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserGrantRoleRequest( + 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(); + + user_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + role_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.Builder.class); + } + + public static final int USER_FIELD_NUMBER = 1; + private volatile java.lang.Object user_; + /** + *
+   * user is the name of the user which should be granted a given role.
+   * 
+ * + * string user = 1; + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + /** + *
+   * user is the name of the user which should be granted a given role.
+   * 
+ * + * string user = 1; + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLE_FIELD_NUMBER = 2; + private volatile java.lang.Object role_; + /** + *
+   * role is the name of the role to grant to the user.
+   * 
+ * + * string role = 2; + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + /** + *
+   * role is the name of the role to grant to the user.
+   * 
+ * + * string role = 2; + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = 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 (!getUserBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); + } + if (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUserBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); + } + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest) obj; + + if (!getUser() + .equals(other.getUser())) return false; + if (!getRole() + .equals(other.getRole())) 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) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserGrantRoleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGrantRoleRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.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(); + user_ = ""; + + role_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest(this); + result.user_ = user_; + result.role_ = role_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest.getDefaultInstance()) return this; + if (!other.getUser().isEmpty()) { + user_ = other.user_; + onChanged(); + } + if (!other.getRole().isEmpty()) { + role_ = other.role_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object user_ = ""; + /** + *
+     * user is the name of the user which should be granted a given role.
+     * 
+ * + * string user = 1; + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * user is the name of the user which should be granted a given role.
+     * 
+ * + * string user = 1; + * @return The bytes for user. + */ + public com.google.protobuf.ByteString + getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * user is the name of the user which should be granted a given role.
+     * 
+ * + * string user = 1; + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + user_ = value; + onChanged(); + return this; + } + /** + *
+     * user is the name of the user which should be granted a given role.
+     * 
+ * + * string user = 1; + * @return This builder for chaining. + */ + public Builder clearUser() { + + user_ = getDefaultInstance().getUser(); + onChanged(); + return this; + } + /** + *
+     * user is the name of the user which should be granted a given role.
+     * 
+ * + * string user = 1; + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + user_ = value; + onChanged(); + return this; + } + + private java.lang.Object role_ = ""; + /** + *
+     * role is the name of the role to grant to the user.
+     * 
+ * + * string role = 2; + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * role is the name of the role to grant to the user.
+     * 
+ * + * string role = 2; + * @return The bytes for role. + */ + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * role is the name of the role to grant to the user.
+     * 
+ * + * string role = 2; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + *
+     * role is the name of the role to grant to the user.
+     * 
+ * + * string role = 2; + * @return This builder for chaining. + */ + public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + *
+     * role is the name of the role to grant to the user.
+     * 
+ * + * string role = 2; + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = 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:etcdserverpb.AuthUserGrantRoleRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGrantRoleRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserGrantRoleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserGrantRoleRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequestOrBuilder.java new file mode 100644 index 0000000..949cbbd --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserGrantRoleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGrantRoleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * user is the name of the user which should be granted a given role.
+   * 
+ * + * string user = 1; + * @return The user. + */ + java.lang.String getUser(); + /** + *
+   * user is the name of the user which should be granted a given role.
+   * 
+ * + * string user = 1; + * @return The bytes for user. + */ + com.google.protobuf.ByteString + getUserBytes(); + + /** + *
+   * role is the name of the role to grant to the user.
+   * 
+ * + * string role = 2; + * @return The role. + */ + java.lang.String getRole(); + /** + *
+   * role is the name of the role to grant to the user.
+   * 
+ * + * string role = 2; + * @return The bytes for role. + */ + com.google.protobuf.ByteString + getRoleBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponse.java new file mode 100644 index 0000000..41feb9c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserGrantRoleResponse} + */ +public final class AuthUserGrantRoleResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGrantRoleResponse) + AuthUserGrantRoleResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserGrantRoleResponse.newBuilder() to construct. + private AuthUserGrantRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserGrantRoleResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserGrantRoleResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserGrantRoleResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserGrantRoleResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGrantRoleResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGrantRoleResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGrantRoleResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserGrantRoleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserGrantRoleResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponseOrBuilder.java new file mode 100644 index 0000000..dcbb62c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserGrantRoleResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserGrantRoleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGrantRoleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequest.java new file mode 100644 index 0000000..4d870ce --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserListRequest} + */ +public final class AuthUserListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserListRequest) + AuthUserListRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserListRequest.newBuilder() to construct. + private AuthUserListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserListRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserListRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserListRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserListRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserListRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserListRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserListRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequestOrBuilder.java new file mode 100644 index 0000000..46116bd --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserListRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponse.java new file mode 100644 index 0000000..e6e9814 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponse.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserListResponse} + */ +public final class AuthUserListResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserListResponse) + AuthUserListResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserListResponse.newBuilder() to construct. + private AuthUserListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserListResponse() { + users_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserListResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + users_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + users_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + users_ = users_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int USERS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList users_; + /** + * repeated string users = 2; + * @return A list containing the users. + */ + public com.google.protobuf.ProtocolStringList + getUsersList() { + return users_; + } + /** + * repeated string users = 2; + * @return The count of users. + */ + public int getUsersCount() { + return users_.size(); + } + /** + * repeated string users = 2; + * @param index The index of the element to return. + * @return The users at the given index. + */ + public java.lang.String getUsers(int index) { + return users_.get(index); + } + /** + * repeated string users = 2; + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + public com.google.protobuf.ByteString + getUsersBytes(int index) { + return users_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < users_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, users_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + { + int dataSize = 0; + for (int i = 0; i < users_.size(); i++) { + dataSize += computeStringSizeNoTag(users_.getRaw(i)); + } + size += dataSize; + size += 1 * getUsersList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getUsersList() + .equals(other.getUsersList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getUsersCount() > 0) { + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserListResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserListResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + users_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserListResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + users_ = users_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.users_ = users_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private com.google.protobuf.LazyStringList users_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + users_ = new com.google.protobuf.LazyStringArrayList(users_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string users = 2; + * @return A list containing the users. + */ + public com.google.protobuf.ProtocolStringList + getUsersList() { + return users_.getUnmodifiableView(); + } + /** + * repeated string users = 2; + * @return The count of users. + */ + public int getUsersCount() { + return users_.size(); + } + /** + * repeated string users = 2; + * @param index The index of the element to return. + * @return The users at the given index. + */ + public java.lang.String getUsers(int index) { + return users_.get(index); + } + /** + * repeated string users = 2; + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + public com.google.protobuf.ByteString + getUsersBytes(int index) { + return users_.getByteString(index); + } + /** + * repeated string users = 2; + * @param index The index to set the value at. + * @param value The users to set. + * @return This builder for chaining. + */ + public Builder setUsers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string users = 2; + * @param value The users to add. + * @return This builder for chaining. + */ + public Builder addUsers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + onChanged(); + return this; + } + /** + * repeated string users = 2; + * @param values The users to add. + * @return This builder for chaining. + */ + public Builder addAllUsers( + java.lang.Iterable values) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, users_); + onChanged(); + return this; + } + /** + * repeated string users = 2; + * @return This builder for chaining. + */ + public Builder clearUsers() { + users_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string users = 2; + * @param value The bytes of the users to add. + * @return This builder for chaining. + */ + public Builder addUsersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUsersIsMutable(); + users_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserListResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserListResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserListResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponseOrBuilder.java new file mode 100644 index 0000000..395df7c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserListResponseOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * repeated string users = 2; + * @return A list containing the users. + */ + java.util.List + getUsersList(); + /** + * repeated string users = 2; + * @return The count of users. + */ + int getUsersCount(); + /** + * repeated string users = 2; + * @param index The index of the element to return. + * @return The users at the given index. + */ + java.lang.String getUsers(int index); + /** + * repeated string users = 2; + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + com.google.protobuf.ByteString + getUsersBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequest.java new file mode 100644 index 0000000..34a5a50 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequest.java @@ -0,0 +1,695 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleRequest} + */ +public final class AuthUserRevokeRoleRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserRevokeRoleRequest) + AuthUserRevokeRoleRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserRevokeRoleRequest.newBuilder() to construct. + private AuthUserRevokeRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserRevokeRoleRequest() { + name_ = ""; + role_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserRevokeRoleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserRevokeRoleRequest( + 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(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + role_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLE_FIELD_NUMBER = 2; + private volatile java.lang.Object role_; + /** + * string role = 2; + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + /** + * string role = 2; + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRole() + .equals(other.getRole())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserRevokeRoleRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.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(); + name_ = ""; + + role_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest(this); + result.name_ = name_; + result.role_ = role_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRole().isEmpty()) { + role_ = other.role_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object role_ = ""; + /** + * string role = 2; + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string role = 2; + * @return The bytes for role. + */ + public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string role = 2; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + * string role = 2; + * @return This builder for chaining. + */ + public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + * string role = 2; + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = 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:etcdserverpb.AuthUserRevokeRoleRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserRevokeRoleRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserRevokeRoleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserRevokeRoleRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequestOrBuilder.java new file mode 100644 index 0000000..0e49cf6 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserRevokeRoleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserRevokeRoleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string role = 2; + * @return The role. + */ + java.lang.String getRole(); + /** + * string role = 2; + * @return The bytes for role. + */ + com.google.protobuf.ByteString + getRoleBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponse.java new file mode 100644 index 0000000..0590fe0 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleResponse} + */ +public final class AuthUserRevokeRoleResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserRevokeRoleResponse) + AuthUserRevokeRoleResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthUserRevokeRoleResponse.newBuilder() to construct. + private AuthUserRevokeRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthUserRevokeRoleResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthUserRevokeRoleResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthUserRevokeRoleResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserRevokeRoleResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserRevokeRoleResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserRevokeRoleResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthUserRevokeRoleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthUserRevokeRoleResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponseOrBuilder.java new file mode 100644 index 0000000..32ae0ea --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthUserRevokeRoleResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthUserRevokeRoleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserRevokeRoleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequest.java new file mode 100644 index 0000000..66da1ba --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequest.java @@ -0,0 +1,695 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthenticateRequest} + */ +public final class AuthenticateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthenticateRequest) + AuthenticateRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthenticateRequest.newBuilder() to construct. + private AuthenticateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthenticateRequest() { + name_ = ""; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthenticateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthenticateRequest( + 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(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getPassword() + .equals(other.getPassword())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthenticateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthenticateRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.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(); + name_ = ""; + + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest(this); + result.name_ = name_; + result.password_ = password_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + * @return The bytes for password. + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = 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:etcdserverpb.AuthenticateRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthenticateRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthenticateRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequestOrBuilder.java new file mode 100644 index 0000000..1a5006d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthenticateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthenticateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string password = 2; + * @return The password. + */ + java.lang.String getPassword(); + /** + * string password = 2; + * @return The bytes for password. + */ + com.google.protobuf.ByteString + getPasswordBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponse.java new file mode 100644 index 0000000..be35d8c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponse.java @@ -0,0 +1,773 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.AuthenticateResponse} + */ +public final class AuthenticateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.AuthenticateResponse) + AuthenticateResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuthenticateResponse.newBuilder() to construct. + private AuthenticateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthenticateResponse() { + token_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthenticateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthenticateResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+   * token is an authorized token that can be used in succeeding RPCs
+   * 
+ * + * string token = 2; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+   * token is an authorized token that can be used in succeeding RPCs
+   * 
+ * + * string token = 2; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getToken() + .equals(other.getToken())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.AuthenticateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthenticateResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthenticateResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.token_ = token_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+     * token is an authorized token that can be used in succeeding RPCs
+     * 
+ * + * string token = 2; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * token is an authorized token that can be used in succeeding RPCs
+     * 
+ * + * string token = 2; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * token is an authorized token that can be used in succeeding RPCs
+     * 
+ * + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+     * token is an authorized token that can be used in succeeding RPCs
+     * 
+ * + * string token = 2; + * @return This builder for chaining. + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+     * token is an authorized token that can be used in succeeding RPCs
+     * 
+ * + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthenticateResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.AuthenticateResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthenticateResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponseOrBuilder.java new file mode 100644 index 0000000..4754217 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthenticateResponseOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface AuthenticateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthenticateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * token is an authorized token that can be used in succeeding RPCs
+   * 
+ * + * string token = 2; + * @return The token. + */ + java.lang.String getToken(); + /** + *
+   * token is an authorized token that can be used in succeeding RPCs
+   * 
+ * + * string token = 2; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterGrpc.java new file mode 100644 index 0000000..b27ac72 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterGrpc.java @@ -0,0 +1,545 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.39.0)", + comments = "Source: rpc.proto") +public final class ClusterGrpc { + + private ClusterGrpc() {} + + public static final String SERVICE_NAME = "etcdserverpb.Cluster"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getMemberAddMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MemberAdd", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMemberAddMethod() { + io.grpc.MethodDescriptor getMemberAddMethod; + if ((getMemberAddMethod = ClusterGrpc.getMemberAddMethod) == null) { + synchronized (ClusterGrpc.class) { + if ((getMemberAddMethod = ClusterGrpc.getMemberAddMethod) == null) { + ClusterGrpc.getMemberAddMethod = getMemberAddMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MemberAdd")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterMethodDescriptorSupplier("MemberAdd")) + .build(); + } + } + } + return getMemberAddMethod; + } + + private static volatile io.grpc.MethodDescriptor getMemberRemoveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MemberRemove", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMemberRemoveMethod() { + io.grpc.MethodDescriptor getMemberRemoveMethod; + if ((getMemberRemoveMethod = ClusterGrpc.getMemberRemoveMethod) == null) { + synchronized (ClusterGrpc.class) { + if ((getMemberRemoveMethod = ClusterGrpc.getMemberRemoveMethod) == null) { + ClusterGrpc.getMemberRemoveMethod = getMemberRemoveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MemberRemove")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterMethodDescriptorSupplier("MemberRemove")) + .build(); + } + } + } + return getMemberRemoveMethod; + } + + private static volatile io.grpc.MethodDescriptor getMemberUpdateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MemberUpdate", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMemberUpdateMethod() { + io.grpc.MethodDescriptor getMemberUpdateMethod; + if ((getMemberUpdateMethod = ClusterGrpc.getMemberUpdateMethod) == null) { + synchronized (ClusterGrpc.class) { + if ((getMemberUpdateMethod = ClusterGrpc.getMemberUpdateMethod) == null) { + ClusterGrpc.getMemberUpdateMethod = getMemberUpdateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MemberUpdate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterMethodDescriptorSupplier("MemberUpdate")) + .build(); + } + } + } + return getMemberUpdateMethod; + } + + private static volatile io.grpc.MethodDescriptor getMemberListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MemberList", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMemberListMethod() { + io.grpc.MethodDescriptor getMemberListMethod; + if ((getMemberListMethod = ClusterGrpc.getMemberListMethod) == null) { + synchronized (ClusterGrpc.class) { + if ((getMemberListMethod = ClusterGrpc.getMemberListMethod) == null) { + ClusterGrpc.getMemberListMethod = getMemberListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MemberList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterMethodDescriptorSupplier("MemberList")) + .build(); + } + } + } + return getMemberListMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ClusterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterStub(channel, callOptions); + } + }; + return ClusterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ClusterBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterBlockingStub(channel, callOptions); + } + }; + return ClusterBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ClusterFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterFutureStub(channel, callOptions); + } + }; + return ClusterFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class ClusterImplBase implements io.grpc.BindableService { + + /** + *
+     * MemberAdd adds a member into the cluster.
+     * 
+ */ + public void memberAdd(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMemberAddMethod(), responseObserver); + } + + /** + *
+     * MemberRemove removes an existing member from the cluster.
+     * 
+ */ + public void memberRemove(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMemberRemoveMethod(), responseObserver); + } + + /** + *
+     * MemberUpdate updates the member configuration.
+     * 
+ */ + public void memberUpdate(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMemberUpdateMethod(), responseObserver); + } + + /** + *
+     * MemberList lists all the members in the cluster.
+     * 
+ */ + public void memberList(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMemberListMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getMemberAddMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse>( + this, METHODID_MEMBER_ADD))) + .addMethod( + getMemberRemoveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse>( + this, METHODID_MEMBER_REMOVE))) + .addMethod( + getMemberUpdateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse>( + this, METHODID_MEMBER_UPDATE))) + .addMethod( + getMemberListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse>( + this, METHODID_MEMBER_LIST))) + .build(); + } + } + + /** + */ + public static final class ClusterStub extends io.grpc.stub.AbstractAsyncStub { + private ClusterStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterStub(channel, callOptions); + } + + /** + *
+     * MemberAdd adds a member into the cluster.
+     * 
+ */ + public void memberAdd(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMemberAddMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * MemberRemove removes an existing member from the cluster.
+     * 
+ */ + public void memberRemove(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMemberRemoveMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * MemberUpdate updates the member configuration.
+     * 
+ */ + public void memberUpdate(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMemberUpdateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * MemberList lists all the members in the cluster.
+     * 
+ */ + public void memberList(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMemberListMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class ClusterBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ClusterBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterBlockingStub(channel, callOptions); + } + + /** + *
+     * MemberAdd adds a member into the cluster.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse memberAdd(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMemberAddMethod(), getCallOptions(), request); + } + + /** + *
+     * MemberRemove removes an existing member from the cluster.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse memberRemove(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMemberRemoveMethod(), getCallOptions(), request); + } + + /** + *
+     * MemberUpdate updates the member configuration.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse memberUpdate(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMemberUpdateMethod(), getCallOptions(), request); + } + + /** + *
+     * MemberList lists all the members in the cluster.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse memberList(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMemberListMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class ClusterFutureStub extends io.grpc.stub.AbstractFutureStub { + private ClusterFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterFutureStub(channel, callOptions); + } + + /** + *
+     * MemberAdd adds a member into the cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture memberAdd( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMemberAddMethod(), getCallOptions()), request); + } + + /** + *
+     * MemberRemove removes an existing member from the cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture memberRemove( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMemberRemoveMethod(), getCallOptions()), request); + } + + /** + *
+     * MemberUpdate updates the member configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture memberUpdate( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMemberUpdateMethod(), getCallOptions()), request); + } + + /** + *
+     * MemberList lists all the members in the cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture memberList( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMemberListMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_MEMBER_ADD = 0; + private static final int METHODID_MEMBER_REMOVE = 1; + private static final int METHODID_MEMBER_UPDATE = 2; + private static final int METHODID_MEMBER_LIST = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterImplBase 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_MEMBER_ADD: + serviceImpl.memberAdd((org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MEMBER_REMOVE: + serviceImpl.memberRemove((org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MEMBER_UPDATE: + serviceImpl.memberUpdate((org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MEMBER_LIST: + serviceImpl.memberList((org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest) 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 ClusterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Cluster"); + } + } + + private static final class ClusterFileDescriptorSupplier + extends ClusterBaseDescriptorSupplier { + ClusterFileDescriptorSupplier() {} + } + + private static final class ClusterMethodDescriptorSupplier + extends ClusterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ClusterMethodDescriptorSupplier(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 (ClusterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterFileDescriptorSupplier()) + .addMethod(getMemberAddMethod()) + .addMethod(getMemberRemoveMethod()) + .addMethod(getMemberUpdateMethod()) + .addMethod(getMemberListMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterService.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterService.java new file mode 100644 index 0000000..7df862b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ClusterService.java @@ -0,0 +1,46 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import io.reactivex.rxjava3.core.Single; + +@javax.annotation.Generated( +value = "by grpc-osgi-generator (REACTIVEX) - A protoc plugin for ECF's grpc remote services distribution provider at https://github.com/ECF/grpc-RemoteServiceSProvider ", +comments = "Source: rpc.proto. ") +public interface ClusterService { + + + /** + *
+     *  MemberAdd adds a member into the cluster.
+     * 
+ */ + default Single memberAdd(Single requests) { + return null; + } + + /** + *
+     *  MemberRemove removes an existing member from the cluster.
+     * 
+ */ + default Single memberRemove(Single requests) { + return null; + } + + /** + *
+     *  MemberUpdate updates the member configuration.
+     * 
+ */ + default Single memberUpdate(Single requests) { + return null; + } + + /** + *
+     *  MemberList lists all the members in the cluster.
+     * 
+ */ + default Single memberList(Single requests) { + return null; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequest.java new file mode 100644 index 0000000..7affe99 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequest.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + *
+ * CompactionRequest compacts the key-value store up to a given revision. All superseded keys
+ * with a revision less than the compaction revision will be removed.
+ * 
+ * + * Protobuf type {@code etcdserverpb.CompactionRequest} + */ +public final class CompactionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.CompactionRequest) + CompactionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompactionRequest.newBuilder() to construct. + private CompactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompactionRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompactionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompactionRequest( + 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 8: { + + revision_ = input.readInt64(); + break; + } + case 16: { + + physical_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.Builder.class); + } + + public static final int REVISION_FIELD_NUMBER = 1; + private long revision_; + /** + *
+   * revision is the key-value store revision for the compaction operation.
+   * 
+ * + * int64 revision = 1; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + + public static final int PHYSICAL_FIELD_NUMBER = 2; + private boolean physical_; + /** + *
+   * physical is set so the RPC will wait until the compaction is physically
+   * applied to the local database such that compacted entries are totally
+   * removed from the backend database.
+   * 
+ * + * bool physical = 2; + * @return The physical. + */ + @java.lang.Override + public boolean getPhysical() { + return physical_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (revision_ != 0L) { + output.writeInt64(1, revision_); + } + if (physical_ != false) { + output.writeBool(2, physical_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (revision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, revision_); + } + if (physical_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, physical_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest) obj; + + if (getRevision() + != other.getRevision()) return false; + if (getPhysical() + != other.getPhysical()) 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) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRevision()); + hash = (37 * hash) + PHYSICAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPhysical()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CompactionRequest compacts the key-value store up to a given revision. All superseded keys
+   * with a revision less than the compaction revision will be removed.
+   * 
+ * + * Protobuf type {@code etcdserverpb.CompactionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.CompactionRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.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(); + revision_ = 0L; + + physical_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest(this); + result.revision_ = revision_; + result.physical_ = physical_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.getDefaultInstance()) return this; + if (other.getRevision() != 0L) { + setRevision(other.getRevision()); + } + if (other.getPhysical() != false) { + setPhysical(other.getPhysical()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long revision_ ; + /** + *
+     * revision is the key-value store revision for the compaction operation.
+     * 
+ * + * int64 revision = 1; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + /** + *
+     * revision is the key-value store revision for the compaction operation.
+     * 
+ * + * int64 revision = 1; + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(long value) { + + revision_ = value; + onChanged(); + return this; + } + /** + *
+     * revision is the key-value store revision for the compaction operation.
+     * 
+ * + * int64 revision = 1; + * @return This builder for chaining. + */ + public Builder clearRevision() { + + revision_ = 0L; + onChanged(); + return this; + } + + private boolean physical_ ; + /** + *
+     * physical is set so the RPC will wait until the compaction is physically
+     * applied to the local database such that compacted entries are totally
+     * removed from the backend database.
+     * 
+ * + * bool physical = 2; + * @return The physical. + */ + @java.lang.Override + public boolean getPhysical() { + return physical_; + } + /** + *
+     * physical is set so the RPC will wait until the compaction is physically
+     * applied to the local database such that compacted entries are totally
+     * removed from the backend database.
+     * 
+ * + * bool physical = 2; + * @param value The physical to set. + * @return This builder for chaining. + */ + public Builder setPhysical(boolean value) { + + physical_ = value; + onChanged(); + return this; + } + /** + *
+     * physical is set so the RPC will wait until the compaction is physically
+     * applied to the local database such that compacted entries are totally
+     * removed from the backend database.
+     * 
+ * + * bool physical = 2; + * @return This builder for chaining. + */ + public Builder clearPhysical() { + + physical_ = 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:etcdserverpb.CompactionRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.CompactionRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompactionRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequestOrBuilder.java new file mode 100644 index 0000000..08cf768 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface CompactionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.CompactionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * revision is the key-value store revision for the compaction operation.
+   * 
+ * + * int64 revision = 1; + * @return The revision. + */ + long getRevision(); + + /** + *
+   * physical is set so the RPC will wait until the compaction is physically
+   * applied to the local database such that compacted entries are totally
+   * removed from the backend database.
+   * 
+ * + * bool physical = 2; + * @return The physical. + */ + boolean getPhysical(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponse.java new file mode 100644 index 0000000..fa59748 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.CompactionResponse} + */ +public final class CompactionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.CompactionResponse) + CompactionResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompactionResponse.newBuilder() to construct. + private CompactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompactionResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompactionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompactionResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.CompactionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.CompactionResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_CompactionResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.CompactionResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.CompactionResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompactionResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponseOrBuilder.java new file mode 100644 index 0000000..700845c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompactionResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface CompactionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.CompactionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Compare.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Compare.java new file mode 100644 index 0000000..0e53906 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Compare.java @@ -0,0 +1,1542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.Compare} + */ +public final class Compare extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.Compare) + CompareOrBuilder { +private static final long serialVersionUID = 0L; + // Use Compare.newBuilder() to construct. + private Compare(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Compare() { + result_ = 0; + target_ = 0; + key_ = com.google.protobuf.ByteString.EMPTY; + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Compare(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Compare( + 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 8: { + int rawValue = input.readEnum(); + + result_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + target_ = rawValue; + break; + } + case 26: { + + key_ = input.readBytes(); + break; + } + case 32: { + targetUnionCase_ = 4; + targetUnion_ = input.readInt64(); + break; + } + case 40: { + targetUnionCase_ = 5; + targetUnion_ = input.readInt64(); + break; + } + case 48: { + targetUnionCase_ = 6; + targetUnion_ = input.readInt64(); + break; + } + case 58: { + targetUnionCase_ = 7; + targetUnion_ = input.readBytes(); + break; + } + case 66: { + + rangeEnd_ = 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Compare_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Compare_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.class, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder.class); + } + + /** + * Protobuf enum {@code etcdserverpb.Compare.CompareResult} + */ + public enum CompareResult + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQUAL = 0; + */ + EQUAL(0), + /** + * GREATER = 1; + */ + GREATER(1), + /** + * LESS = 2; + */ + LESS(2), + /** + * NOT_EQUAL = 3; + */ + NOT_EQUAL(3), + UNRECOGNIZED(-1), + ; + + /** + * EQUAL = 0; + */ + public static final int EQUAL_VALUE = 0; + /** + * GREATER = 1; + */ + public static final int GREATER_VALUE = 1; + /** + * LESS = 2; + */ + public static final int LESS_VALUE = 2; + /** + * NOT_EQUAL = 3; + */ + public static final int NOT_EQUAL_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CompareResult valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CompareResult forNumber(int value) { + switch (value) { + case 0: return EQUAL; + case 1: return GREATER; + case 2: return LESS; + case 3: return NOT_EQUAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CompareResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompareResult findValueByNumber(int number) { + return CompareResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.Compare.getDescriptor().getEnumTypes().get(0); + } + + private static final CompareResult[] VALUES = values(); + + public static CompareResult valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompareResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.Compare.CompareResult) + } + + /** + * Protobuf enum {@code etcdserverpb.Compare.CompareTarget} + */ + public enum CompareTarget + implements com.google.protobuf.ProtocolMessageEnum { + /** + * VERSION = 0; + */ + VERSION(0), + /** + * CREATE = 1; + */ + CREATE(1), + /** + * MOD = 2; + */ + MOD(2), + /** + * VALUE = 3; + */ + VALUE(3), + UNRECOGNIZED(-1), + ; + + /** + * VERSION = 0; + */ + public static final int VERSION_VALUE = 0; + /** + * CREATE = 1; + */ + public static final int CREATE_VALUE = 1; + /** + * MOD = 2; + */ + public static final int MOD_VALUE = 2; + /** + * VALUE = 3; + */ + public static final int VALUE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CompareTarget valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CompareTarget forNumber(int value) { + switch (value) { + case 0: return VERSION; + case 1: return CREATE; + case 2: return MOD; + case 3: return VALUE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CompareTarget> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompareTarget findValueByNumber(int number) { + return CompareTarget.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.Compare.getDescriptor().getEnumTypes().get(1); + } + + private static final CompareTarget[] VALUES = values(); + + public static CompareTarget valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompareTarget(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.Compare.CompareTarget) + } + + private int targetUnionCase_ = 0; + private java.lang.Object targetUnion_; + public enum TargetUnionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VERSION(4), + CREATE_REVISION(5), + MOD_REVISION(6), + VALUE(7), + TARGETUNION_NOT_SET(0); + private final int value; + private TargetUnionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetUnionCase valueOf(int value) { + return forNumber(value); + } + + public static TargetUnionCase forNumber(int value) { + switch (value) { + case 4: return VERSION; + case 5: return CREATE_REVISION; + case 6: return MOD_REVISION; + case 7: return VALUE; + case 0: return TARGETUNION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetUnionCase + getTargetUnionCase() { + return TargetUnionCase.forNumber( + targetUnionCase_); + } + + public static final int RESULT_FIELD_NUMBER = 1; + private int result_; + /** + *
+   * result is logical comparison operation for this comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + *
+   * result is logical comparison operation for this comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return The result. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult getResult() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult result = org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult.valueOf(result_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult.UNRECOGNIZED : result; + } + + public static final int TARGET_FIELD_NUMBER = 2; + private int target_; + /** + *
+   * target is the key-value field to inspect for the comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return The enum numeric value on the wire for target. + */ + @java.lang.Override public int getTargetValue() { + return target_; + } + /** + *
+   * target is the key-value field to inspect for the comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return The target. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget getTarget() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget result = org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget.valueOf(target_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget.UNRECOGNIZED : result; + } + + public static final int KEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString key_; + /** + *
+   * key is the subject key for the comparison operation.
+   * 
+ * + * bytes key = 3; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int VERSION_FIELD_NUMBER = 4; + /** + *
+   * version is the version of the given key
+   * 
+ * + * int64 version = 4; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + if (targetUnionCase_ == 4) { + return (java.lang.Long) targetUnion_; + } + return 0L; + } + + public static final int CREATE_REVISION_FIELD_NUMBER = 5; + /** + *
+   * create_revision is the creation revision of the given key
+   * 
+ * + * int64 create_revision = 5; + * @return The createRevision. + */ + @java.lang.Override + public long getCreateRevision() { + if (targetUnionCase_ == 5) { + return (java.lang.Long) targetUnion_; + } + return 0L; + } + + public static final int MOD_REVISION_FIELD_NUMBER = 6; + /** + *
+   * mod_revision is the last modified revision of the given key.
+   * 
+ * + * int64 mod_revision = 6; + * @return The modRevision. + */ + @java.lang.Override + public long getModRevision() { + if (targetUnionCase_ == 6) { + return (java.lang.Long) targetUnion_; + } + return 0L; + } + + public static final int VALUE_FIELD_NUMBER = 7; + /** + *
+   * value is the value of the given key, in bytes.
+   * 
+ * + * bytes value = 7; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + if (targetUnionCase_ == 7) { + return (com.google.protobuf.ByteString) targetUnion_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int RANGE_END_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString rangeEnd_; + /** + *
+   * range_end compares the given target to all keys in the range [key, range_end).
+   * See RangeRequest for more details on key ranges.
+   * 
+ * + * bytes range_end = 8; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult.EQUAL.getNumber()) { + output.writeEnum(1, result_); + } + if (target_ != org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget.VERSION.getNumber()) { + output.writeEnum(2, target_); + } + if (!key_.isEmpty()) { + output.writeBytes(3, key_); + } + if (targetUnionCase_ == 4) { + output.writeInt64( + 4, (long)((java.lang.Long) targetUnion_)); + } + if (targetUnionCase_ == 5) { + output.writeInt64( + 5, (long)((java.lang.Long) targetUnion_)); + } + if (targetUnionCase_ == 6) { + output.writeInt64( + 6, (long)((java.lang.Long) targetUnion_)); + } + if (targetUnionCase_ == 7) { + output.writeBytes( + 7, (com.google.protobuf.ByteString) targetUnion_); + } + if (!rangeEnd_.isEmpty()) { + output.writeBytes(8, rangeEnd_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult.EQUAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, result_); + } + if (target_ != org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget.VERSION.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, target_); + } + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, key_); + } + if (targetUnionCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 4, (long)((java.lang.Long) targetUnion_)); + } + if (targetUnionCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 5, (long)((java.lang.Long) targetUnion_)); + } + if (targetUnionCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 6, (long)((java.lang.Long) targetUnion_)); + } + if (targetUnionCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 7, (com.google.protobuf.ByteString) targetUnion_); + } + if (!rangeEnd_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, rangeEnd_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.Compare)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.Compare other = (org.eclipse.ecf.provider.etcd3.grpc.api.Compare) obj; + + if (result_ != other.result_) return false; + if (target_ != other.target_) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getRangeEnd() + .equals(other.getRangeEnd())) return false; + if (!getTargetUnionCase().equals(other.getTargetUnionCase())) return false; + switch (targetUnionCase_) { + case 4: + if (getVersion() + != other.getVersion()) return false; + break; + case 5: + if (getCreateRevision() + != other.getCreateRevision()) return false; + break; + case 6: + if (getModRevision() + != other.getModRevision()) return false; + break; + case 7: + if (!getValue() + .equals(other.getValue())) return false; + break; + case 0: + default: + } + 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) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + target_; + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + RANGE_END_FIELD_NUMBER; + hash = (53 * hash) + getRangeEnd().hashCode(); + switch (targetUnionCase_) { + case 4: + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); + break; + case 5: + hash = (37 * hash) + CREATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreateRevision()); + break; + case 6: + hash = (37 * hash) + MOD_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getModRevision()); + break; + case 7: + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.Compare prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.Compare} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.Compare) + org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Compare_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Compare_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.class, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.Compare.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(); + result_ = 0; + + target_ = 0; + + key_ = com.google.protobuf.ByteString.EMPTY; + + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + + targetUnionCase_ = 0; + targetUnion_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Compare_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.Compare.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare build() { + org.eclipse.ecf.provider.etcd3.grpc.api.Compare result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.Compare result = new org.eclipse.ecf.provider.etcd3.grpc.api.Compare(this); + result.result_ = result_; + result.target_ = target_; + result.key_ = key_; + if (targetUnionCase_ == 4) { + result.targetUnion_ = targetUnion_; + } + if (targetUnionCase_ == 5) { + result.targetUnion_ = targetUnion_; + } + if (targetUnionCase_ == 6) { + result.targetUnion_ = targetUnion_; + } + if (targetUnionCase_ == 7) { + result.targetUnion_ = targetUnion_; + } + result.rangeEnd_ = rangeEnd_; + result.targetUnionCase_ = targetUnionCase_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.Compare) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.Compare)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.Compare other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.Compare.getDefaultInstance()) return this; + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (other.target_ != 0) { + setTargetValue(other.getTargetValue()); + } + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { + setRangeEnd(other.getRangeEnd()); + } + switch (other.getTargetUnionCase()) { + case VERSION: { + setVersion(other.getVersion()); + break; + } + case CREATE_REVISION: { + setCreateRevision(other.getCreateRevision()); + break; + } + case MOD_REVISION: { + setModRevision(other.getModRevision()); + break; + } + case VALUE: { + setValue(other.getValue()); + break; + } + case TARGETUNION_NOT_SET: { + break; + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.Compare parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.Compare) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetUnionCase_ = 0; + private java.lang.Object targetUnion_; + public TargetUnionCase + getTargetUnionCase() { + return TargetUnionCase.forNumber( + targetUnionCase_); + } + + public Builder clearTargetUnion() { + targetUnionCase_ = 0; + targetUnion_ = null; + onChanged(); + return this; + } + + + private int result_ = 0; + /** + *
+     * result is logical comparison operation for this comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + *
+     * result is logical comparison operation for this comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + + result_ = value; + onChanged(); + return this; + } + /** + *
+     * result is logical comparison operation for this comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return The result. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult getResult() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult result = org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult.valueOf(result_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult.UNRECOGNIZED : result; + } + /** + *
+     * result is logical comparison operation for this comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult(org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * result is logical comparison operation for this comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return This builder for chaining. + */ + public Builder clearResult() { + + result_ = 0; + onChanged(); + return this; + } + + private int target_ = 0; + /** + *
+     * target is the key-value field to inspect for the comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return The enum numeric value on the wire for target. + */ + @java.lang.Override public int getTargetValue() { + return target_; + } + /** + *
+     * target is the key-value field to inspect for the comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @param value The enum numeric value on the wire for target to set. + * @return This builder for chaining. + */ + public Builder setTargetValue(int value) { + + target_ = value; + onChanged(); + return this; + } + /** + *
+     * target is the key-value field to inspect for the comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return The target. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget getTarget() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget result = org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget.valueOf(target_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget.UNRECOGNIZED : result; + } + /** + *
+     * target is the key-value field to inspect for the comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget value) { + if (value == null) { + throw new NullPointerException(); + } + + target_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * target is the key-value field to inspect for the comparison.
+     * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return This builder for chaining. + */ + public Builder clearTarget() { + + target_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * key is the subject key for the comparison operation.
+     * 
+ * + * bytes key = 3; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * key is the subject key for the comparison operation.
+     * 
+ * + * bytes key = 3; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * key is the subject key for the comparison operation.
+     * 
+ * + * bytes key = 3; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+     * version is the version of the given key
+     * 
+ * + * int64 version = 4; + * @return The version. + */ + public long getVersion() { + if (targetUnionCase_ == 4) { + return (java.lang.Long) targetUnion_; + } + return 0L; + } + /** + *
+     * version is the version of the given key
+     * 
+ * + * int64 version = 4; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(long value) { + targetUnionCase_ = 4; + targetUnion_ = value; + onChanged(); + return this; + } + /** + *
+     * version is the version of the given key
+     * 
+ * + * int64 version = 4; + * @return This builder for chaining. + */ + public Builder clearVersion() { + if (targetUnionCase_ == 4) { + targetUnionCase_ = 0; + targetUnion_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * create_revision is the creation revision of the given key
+     * 
+ * + * int64 create_revision = 5; + * @return The createRevision. + */ + public long getCreateRevision() { + if (targetUnionCase_ == 5) { + return (java.lang.Long) targetUnion_; + } + return 0L; + } + /** + *
+     * create_revision is the creation revision of the given key
+     * 
+ * + * int64 create_revision = 5; + * @param value The createRevision to set. + * @return This builder for chaining. + */ + public Builder setCreateRevision(long value) { + targetUnionCase_ = 5; + targetUnion_ = value; + onChanged(); + return this; + } + /** + *
+     * create_revision is the creation revision of the given key
+     * 
+ * + * int64 create_revision = 5; + * @return This builder for chaining. + */ + public Builder clearCreateRevision() { + if (targetUnionCase_ == 5) { + targetUnionCase_ = 0; + targetUnion_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * mod_revision is the last modified revision of the given key.
+     * 
+ * + * int64 mod_revision = 6; + * @return The modRevision. + */ + public long getModRevision() { + if (targetUnionCase_ == 6) { + return (java.lang.Long) targetUnion_; + } + return 0L; + } + /** + *
+     * mod_revision is the last modified revision of the given key.
+     * 
+ * + * int64 mod_revision = 6; + * @param value The modRevision to set. + * @return This builder for chaining. + */ + public Builder setModRevision(long value) { + targetUnionCase_ = 6; + targetUnion_ = value; + onChanged(); + return this; + } + /** + *
+     * mod_revision is the last modified revision of the given key.
+     * 
+ * + * int64 mod_revision = 6; + * @return This builder for chaining. + */ + public Builder clearModRevision() { + if (targetUnionCase_ == 6) { + targetUnionCase_ = 0; + targetUnion_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * value is the value of the given key, in bytes.
+     * 
+ * + * bytes value = 7; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + if (targetUnionCase_ == 7) { + return (com.google.protobuf.ByteString) targetUnion_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * value is the value of the given key, in bytes.
+     * 
+ * + * bytes value = 7; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + targetUnionCase_ = 7; + targetUnion_ = value; + onChanged(); + return this; + } + /** + *
+     * value is the value of the given key, in bytes.
+     * 
+ * + * bytes value = 7; + * @return This builder for chaining. + */ + public Builder clearValue() { + if (targetUnionCase_ == 7) { + targetUnionCase_ = 0; + targetUnion_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * range_end compares the given target to all keys in the range [key, range_end).
+     * See RangeRequest for more details on key ranges.
+     * 
+ * + * bytes range_end = 8; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + /** + *
+     * range_end compares the given target to all keys in the range [key, range_end).
+     * See RangeRequest for more details on key ranges.
+     * 
+ * + * bytes range_end = 8; + * @param value The rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEnd(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeEnd_ = value; + onChanged(); + return this; + } + /** + *
+     * range_end compares the given target to all keys in the range [key, range_end).
+     * See RangeRequest for more details on key ranges.
+     * 
+ * + * bytes range_end = 8; + * @return This builder for chaining. + */ + public Builder clearRangeEnd() { + + rangeEnd_ = getDefaultInstance().getRangeEnd(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.Compare) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.Compare) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.Compare DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.Compare(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.Compare getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Compare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Compare(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 org.eclipse.ecf.provider.etcd3.grpc.api.Compare getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompareOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompareOrBuilder.java new file mode 100644 index 0000000..2dc915f --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/CompareOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface CompareOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.Compare) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * result is logical comparison operation for this comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); + /** + *
+   * result is logical comparison operation for this comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareResult result = 1; + * @return The result. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareResult getResult(); + + /** + *
+   * target is the key-value field to inspect for the comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return The enum numeric value on the wire for target. + */ + int getTargetValue(); + /** + *
+   * target is the key-value field to inspect for the comparison.
+   * 
+ * + * .etcdserverpb.Compare.CompareTarget target = 2; + * @return The target. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.CompareTarget getTarget(); + + /** + *
+   * key is the subject key for the comparison operation.
+   * 
+ * + * bytes key = 3; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * version is the version of the given key
+   * 
+ * + * int64 version = 4; + * @return The version. + */ + long getVersion(); + + /** + *
+   * create_revision is the creation revision of the given key
+   * 
+ * + * int64 create_revision = 5; + * @return The createRevision. + */ + long getCreateRevision(); + + /** + *
+   * mod_revision is the last modified revision of the given key.
+   * 
+ * + * int64 mod_revision = 6; + * @return The modRevision. + */ + long getModRevision(); + + /** + *
+   * value is the value of the given key, in bytes.
+   * 
+ * + * bytes value = 7; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + + /** + *
+   * range_end compares the given target to all keys in the range [key, range_end).
+   * See RangeRequest for more details on key ranges.
+   * 
+ * + * bytes range_end = 8; + * @return The rangeEnd. + */ + com.google.protobuf.ByteString getRangeEnd(); + + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.TargetUnionCase getTargetUnionCase(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequest.java new file mode 100644 index 0000000..af3abad --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.DefragmentRequest} + */ +public final class DefragmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.DefragmentRequest) + DefragmentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DefragmentRequest.newBuilder() to construct. + private DefragmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DefragmentRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DefragmentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DefragmentRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.DefragmentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.DefragmentRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.DefragmentRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.DefragmentRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefragmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DefragmentRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequestOrBuilder.java new file mode 100644 index 0000000..552b9bb --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface DefragmentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.DefragmentRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponse.java new file mode 100644 index 0000000..5ca8d5e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.DefragmentResponse} + */ +public final class DefragmentResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.DefragmentResponse) + DefragmentResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use DefragmentResponse.newBuilder() to construct. + private DefragmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DefragmentResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DefragmentResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DefragmentResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.DefragmentResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.DefragmentResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DefragmentResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.DefragmentResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.DefragmentResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefragmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DefragmentResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponseOrBuilder.java new file mode 100644 index 0000000..d62c1b3 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DefragmentResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface DefragmentResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.DefragmentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequest.java new file mode 100644 index 0000000..f287fd6 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequest.java @@ -0,0 +1,688 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.DeleteRangeRequest} + */ +public final class DeleteRangeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.DeleteRangeRequest) + DeleteRangeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteRangeRequest.newBuilder() to construct. + private DeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteRangeRequest() { + key_ = com.google.protobuf.ByteString.EMPTY; + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRangeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteRangeRequest( + 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: { + + key_ = input.readBytes(); + break; + } + case 18: { + + rangeEnd_ = input.readBytes(); + break; + } + case 24: { + + prevKv_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + /** + *
+   * key is the first key to delete in the range.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int RANGE_END_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString rangeEnd_; + /** + *
+   * range_end is the key following the last key to delete for the range [key, range_end).
+   * If range_end is not given, the range is defined to contain only the key argument.
+   * If range_end is one bit larger than the given key, then the range is all the keys
+   * with the prefix (the given key).
+   * If range_end is '\0', the range is all keys greater than or equal to the key argument.
+   * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + + public static final int PREV_KV_FIELD_NUMBER = 3; + private boolean prevKv_; + /** + *
+   * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
+   * The previous key-value pairs will be returned in the delete response.
+   * 
+ * + * bool prev_kv = 3; + * @return The prevKv. + */ + @java.lang.Override + public boolean getPrevKv() { + return prevKv_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (!rangeEnd_.isEmpty()) { + output.writeBytes(2, rangeEnd_); + } + if (prevKv_ != false) { + output.writeBool(3, prevKv_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); + } + if (!rangeEnd_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, rangeEnd_); + } + if (prevKv_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, prevKv_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getRangeEnd() + .equals(other.getRangeEnd())) return false; + if (getPrevKv() + != other.getPrevKv()) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + RANGE_END_FIELD_NUMBER; + hash = (53 * hash) + getRangeEnd().hashCode(); + hash = (37 * hash) + PREV_KV_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrevKv()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.DeleteRangeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.DeleteRangeRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.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(); + key_ = com.google.protobuf.ByteString.EMPTY; + + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + + prevKv_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest(this); + result.key_ = key_; + result.rangeEnd_ = rangeEnd_; + result.prevKv_ = prevKv_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance()) return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { + setRangeEnd(other.getRangeEnd()); + } + if (other.getPrevKv() != false) { + setPrevKv(other.getPrevKv()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * key is the first key to delete in the range.
+     * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * key is the first key to delete in the range.
+     * 
+ * + * bytes key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * key is the first key to delete in the range.
+     * 
+ * + * bytes key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * range_end is the key following the last key to delete for the range [key, range_end).
+     * If range_end is not given, the range is defined to contain only the key argument.
+     * If range_end is one bit larger than the given key, then the range is all the keys
+     * with the prefix (the given key).
+     * If range_end is '\0', the range is all keys greater than or equal to the key argument.
+     * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + /** + *
+     * range_end is the key following the last key to delete for the range [key, range_end).
+     * If range_end is not given, the range is defined to contain only the key argument.
+     * If range_end is one bit larger than the given key, then the range is all the keys
+     * with the prefix (the given key).
+     * If range_end is '\0', the range is all keys greater than or equal to the key argument.
+     * 
+ * + * bytes range_end = 2; + * @param value The rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEnd(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeEnd_ = value; + onChanged(); + return this; + } + /** + *
+     * range_end is the key following the last key to delete for the range [key, range_end).
+     * If range_end is not given, the range is defined to contain only the key argument.
+     * If range_end is one bit larger than the given key, then the range is all the keys
+     * with the prefix (the given key).
+     * If range_end is '\0', the range is all keys greater than or equal to the key argument.
+     * 
+ * + * bytes range_end = 2; + * @return This builder for chaining. + */ + public Builder clearRangeEnd() { + + rangeEnd_ = getDefaultInstance().getRangeEnd(); + onChanged(); + return this; + } + + private boolean prevKv_ ; + /** + *
+     * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
+     * The previous key-value pairs will be returned in the delete response.
+     * 
+ * + * bool prev_kv = 3; + * @return The prevKv. + */ + @java.lang.Override + public boolean getPrevKv() { + return prevKv_; + } + /** + *
+     * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
+     * The previous key-value pairs will be returned in the delete response.
+     * 
+ * + * bool prev_kv = 3; + * @param value The prevKv to set. + * @return This builder for chaining. + */ + public Builder setPrevKv(boolean value) { + + prevKv_ = value; + onChanged(); + return this; + } + /** + *
+     * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
+     * The previous key-value pairs will be returned in the delete response.
+     * 
+ * + * bool prev_kv = 3; + * @return This builder for chaining. + */ + public Builder clearPrevKv() { + + prevKv_ = 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:etcdserverpb.DeleteRangeRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.DeleteRangeRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRangeRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequestOrBuilder.java new file mode 100644 index 0000000..3cd85af --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeRequestOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface DeleteRangeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.DeleteRangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * key is the first key to delete in the range.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * range_end is the key following the last key to delete for the range [key, range_end).
+   * If range_end is not given, the range is defined to contain only the key argument.
+   * If range_end is one bit larger than the given key, then the range is all the keys
+   * with the prefix (the given key).
+   * If range_end is '\0', the range is all keys greater than or equal to the key argument.
+   * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + com.google.protobuf.ByteString getRangeEnd(); + + /** + *
+   * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
+   * The previous key-value pairs will be returned in the delete response.
+   * 
+ * + * bool prev_kv = 3; + * @return The prevKv. + */ + boolean getPrevKv(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponse.java new file mode 100644 index 0000000..0179113 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponse.java @@ -0,0 +1,1131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.DeleteRangeResponse} + */ +public final class DeleteRangeResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.DeleteRangeResponse) + DeleteRangeResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteRangeResponse.newBuilder() to construct. + private DeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteRangeResponse() { + prevKvs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRangeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteRangeResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + deleted_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + prevKvs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + prevKvs_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + prevKvs_ = java.util.Collections.unmodifiableList(prevKvs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int DELETED_FIELD_NUMBER = 2; + private long deleted_; + /** + *
+   * deleted is the number of keys deleted by the delete range request.
+   * 
+ * + * int64 deleted = 2; + * @return The deleted. + */ + @java.lang.Override + public long getDeleted() { + return deleted_; + } + + public static final int PREV_KVS_FIELD_NUMBER = 3; + private java.util.List prevKvs_; + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + @java.lang.Override + public java.util.List getPrevKvsList() { + return prevKvs_; + } + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + @java.lang.Override + public java.util.List + getPrevKvsOrBuilderList() { + return prevKvs_; + } + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + @java.lang.Override + public int getPrevKvsCount() { + return prevKvs_.size(); + } + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKvs(int index) { + return prevKvs_.get(index); + } + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvsOrBuilder( + int index) { + return prevKvs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (deleted_ != 0L) { + output.writeInt64(2, deleted_); + } + for (int i = 0; i < prevKvs_.size(); i++) { + output.writeMessage(3, prevKvs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (deleted_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, deleted_); + } + for (int i = 0; i < prevKvs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, prevKvs_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getDeleted() + != other.getDeleted()) return false; + if (!getPrevKvsList() + .equals(other.getPrevKvsList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeleted()); + if (getPrevKvsCount() > 0) { + hash = (37 * hash) + PREV_KVS_FIELD_NUMBER; + hash = (53 * hash) + getPrevKvsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.DeleteRangeResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.DeleteRangeResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPrevKvsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + deleted_ = 0L; + + if (prevKvsBuilder_ == null) { + prevKvs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + prevKvsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_DeleteRangeResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.deleted_ = deleted_; + if (prevKvsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + prevKvs_ = java.util.Collections.unmodifiableList(prevKvs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.prevKvs_ = prevKvs_; + } else { + result.prevKvs_ = prevKvsBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getDeleted() != 0L) { + setDeleted(other.getDeleted()); + } + if (prevKvsBuilder_ == null) { + if (!other.prevKvs_.isEmpty()) { + if (prevKvs_.isEmpty()) { + prevKvs_ = other.prevKvs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrevKvsIsMutable(); + prevKvs_.addAll(other.prevKvs_); + } + onChanged(); + } + } else { + if (!other.prevKvs_.isEmpty()) { + if (prevKvsBuilder_.isEmpty()) { + prevKvsBuilder_.dispose(); + prevKvsBuilder_ = null; + prevKvs_ = other.prevKvs_; + bitField0_ = (bitField0_ & ~0x00000001); + prevKvsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPrevKvsFieldBuilder() : null; + } else { + prevKvsBuilder_.addAllMessages(other.prevKvs_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long deleted_ ; + /** + *
+     * deleted is the number of keys deleted by the delete range request.
+     * 
+ * + * int64 deleted = 2; + * @return The deleted. + */ + @java.lang.Override + public long getDeleted() { + return deleted_; + } + /** + *
+     * deleted is the number of keys deleted by the delete range request.
+     * 
+ * + * int64 deleted = 2; + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(long value) { + + deleted_ = value; + onChanged(); + return this; + } + /** + *
+     * deleted is the number of keys deleted by the delete range request.
+     * 
+ * + * int64 deleted = 2; + * @return This builder for chaining. + */ + public Builder clearDeleted() { + + deleted_ = 0L; + onChanged(); + return this; + } + + private java.util.List prevKvs_ = + java.util.Collections.emptyList(); + private void ensurePrevKvsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + prevKvs_ = new java.util.ArrayList(prevKvs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> prevKvsBuilder_; + + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public java.util.List getPrevKvsList() { + if (prevKvsBuilder_ == null) { + return java.util.Collections.unmodifiableList(prevKvs_); + } else { + return prevKvsBuilder_.getMessageList(); + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public int getPrevKvsCount() { + if (prevKvsBuilder_ == null) { + return prevKvs_.size(); + } else { + return prevKvsBuilder_.getCount(); + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKvs(int index) { + if (prevKvsBuilder_ == null) { + return prevKvs_.get(index); + } else { + return prevKvsBuilder_.getMessage(index); + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder setPrevKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrevKvsIsMutable(); + prevKvs_.set(index, value); + onChanged(); + } else { + prevKvsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder setPrevKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (prevKvsBuilder_ == null) { + ensurePrevKvsIsMutable(); + prevKvs_.set(index, builderForValue.build()); + onChanged(); + } else { + prevKvsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder addPrevKvs(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrevKvsIsMutable(); + prevKvs_.add(value); + onChanged(); + } else { + prevKvsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder addPrevKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrevKvsIsMutable(); + prevKvs_.add(index, value); + onChanged(); + } else { + prevKvsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder addPrevKvs( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (prevKvsBuilder_ == null) { + ensurePrevKvsIsMutable(); + prevKvs_.add(builderForValue.build()); + onChanged(); + } else { + prevKvsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder addPrevKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (prevKvsBuilder_ == null) { + ensurePrevKvsIsMutable(); + prevKvs_.add(index, builderForValue.build()); + onChanged(); + } else { + prevKvsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder addAllPrevKvs( + java.lang.Iterable values) { + if (prevKvsBuilder_ == null) { + ensurePrevKvsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prevKvs_); + onChanged(); + } else { + prevKvsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder clearPrevKvs() { + if (prevKvsBuilder_ == null) { + prevKvs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + prevKvsBuilder_.clear(); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public Builder removePrevKvs(int index) { + if (prevKvsBuilder_ == null) { + ensurePrevKvsIsMutable(); + prevKvs_.remove(index); + onChanged(); + } else { + prevKvsBuilder_.remove(index); + } + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder getPrevKvsBuilder( + int index) { + return getPrevKvsFieldBuilder().getBuilder(index); + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvsOrBuilder( + int index) { + if (prevKvsBuilder_ == null) { + return prevKvs_.get(index); } else { + return prevKvsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public java.util.List + getPrevKvsOrBuilderList() { + if (prevKvsBuilder_ != null) { + return prevKvsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(prevKvs_); + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder addPrevKvsBuilder() { + return getPrevKvsFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance()); + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder addPrevKvsBuilder( + int index) { + return getPrevKvsFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance()); + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pairs will be returned.
+     * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + public java.util.List + getPrevKvsBuilderList() { + return getPrevKvsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> + getPrevKvsFieldBuilder() { + if (prevKvsBuilder_ == null) { + prevKvsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder>( + prevKvs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + prevKvs_ = null; + } + return prevKvsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.DeleteRangeResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.DeleteRangeResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRangeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRangeResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponseOrBuilder.java new file mode 100644 index 0000000..fd52735 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/DeleteRangeResponseOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface DeleteRangeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.DeleteRangeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * deleted is the number of keys deleted by the delete range request.
+   * 
+ * + * int64 deleted = 2; + * @return The deleted. + */ + long getDeleted(); + + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + java.util.List + getPrevKvsList(); + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKvs(int index); + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + int getPrevKvsCount(); + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + java.util.List + getPrevKvsOrBuilderList(); + /** + *
+   * if prev_kv is set in the request, the previous key-value pairs will be returned.
+   * 
+ * + * repeated .mvccpb.KeyValue prev_kvs = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvsOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ECFEtcdProto.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ECFEtcdProto.java new file mode 100644 index 0000000..f819085 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ECFEtcdProto.java @@ -0,0 +1,1208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public final class ECFEtcdProto { + private ECFEtcdProto() {} + 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_etcdserverpb_ResponseHeader_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_RangeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_RangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_RangeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_RangeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_PutRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_PutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_PutResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_PutResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_DeleteRangeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_DeleteRangeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_RequestOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_RequestOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_ResponseOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_ResponseOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_Compare_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_Compare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_TxnRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_TxnRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_TxnResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_TxnResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_CompactionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_CompactionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_HashRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_HashRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_HashResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_HashResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_HashKVRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_HashKVRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_HashKVResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_HashKVResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_SnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_SnapshotResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_WatchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_WatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_WatchCreateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_WatchCancelRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_WatchResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_WatchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseGrantRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseGrantResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_Member_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_Member_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberAddRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberAddResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberRemoveRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberRemoveResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberUpdateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberUpdateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MemberListResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_DefragmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_DefragmentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MoveLeaderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MoveLeaderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_MoveLeaderResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_MoveLeaderResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AlarmRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AlarmMember_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AlarmMember_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AlarmResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_StatusRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_StatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_StatusResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_StatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthEnableRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthDisableRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthenticateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserAddRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserGetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthEnableResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthDisableResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthenticateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserAddResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserGetResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleListResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthUserListResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_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\trpc.proto\022\014etcdserverpb\032\010kv.proto\032\naut" + + "h.proto\"\\\n\016ResponseHeader\022\022\n\ncluster_id\030" + + "\001 \001(\004\022\021\n\tmember_id\030\002 \001(\004\022\020\n\010revision\030\003 \001" + + "(\003\022\021\n\traft_term\030\004 \001(\004\"\344\003\n\014RangeRequest\022\013" + + "\n\003key\030\001 \001(\014\022\021\n\trange_end\030\002 \001(\014\022\r\n\005limit\030" + + "\003 \001(\003\022\020\n\010revision\030\004 \001(\003\0228\n\nsort_order\030\005 " + + "\001(\0162$.etcdserverpb.RangeRequest.SortOrde" + + "r\022:\n\013sort_target\030\006 \001(\0162%.etcdserverpb.Ra" + + "ngeRequest.SortTarget\022\024\n\014serializable\030\007 " + + "\001(\010\022\021\n\tkeys_only\030\010 \001(\010\022\022\n\ncount_only\030\t \001" + + "(\010\022\030\n\020min_mod_revision\030\n \001(\003\022\030\n\020max_mod_" + + "revision\030\013 \001(\003\022\033\n\023min_create_revision\030\014 " + + "\001(\003\022\033\n\023max_create_revision\030\r \001(\003\".\n\tSort" + + "Order\022\010\n\004NONE\020\000\022\n\n\006ASCEND\020\001\022\013\n\007DESCEND\020\002" + + "\"B\n\nSortTarget\022\007\n\003KEY\020\000\022\013\n\007VERSION\020\001\022\n\n\006" + + "CREATE\020\002\022\007\n\003MOD\020\003\022\t\n\005VALUE\020\004\"y\n\rRangeRes" + + "ponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Res" + + "ponseHeader\022\035\n\003kvs\030\002 \003(\0132\020.mvccpb.KeyVal" + + "ue\022\014\n\004more\030\003 \001(\010\022\r\n\005count\030\004 \001(\003\"t\n\nPutRe" + + "quest\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\022\r\n\005lea" + + "se\030\003 \001(\003\022\017\n\007prev_kv\030\004 \001(\010\022\024\n\014ignore_valu" + + "e\030\005 \001(\010\022\024\n\014ignore_lease\030\006 \001(\010\"^\n\013PutResp" + + "onse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Resp" + + "onseHeader\022!\n\007prev_kv\030\002 \001(\0132\020.mvccpb.Key" + + "Value\"E\n\022DeleteRangeRequest\022\013\n\003key\030\001 \001(\014" + + "\022\021\n\trange_end\030\002 \001(\014\022\017\n\007prev_kv\030\003 \001(\010\"x\n\023" + + "DeleteRangeResponse\022,\n\006header\030\001 \001(\0132\034.et" + + "cdserverpb.ResponseHeader\022\017\n\007deleted\030\002 \001" + + "(\003\022\"\n\010prev_kvs\030\003 \003(\0132\020.mvccpb.KeyValue\"\357" + + "\001\n\tRequestOp\0223\n\rrequest_range\030\001 \001(\0132\032.et" + + "cdserverpb.RangeRequestH\000\022/\n\013request_put" + + "\030\002 \001(\0132\030.etcdserverpb.PutRequestH\000\022@\n\024re" + + "quest_delete_range\030\003 \001(\0132 .etcdserverpb." + + "DeleteRangeRequestH\000\022/\n\013request_txn\030\004 \001(" + + "\0132\030.etcdserverpb.TxnRequestH\000B\t\n\007request" + + "\"\371\001\n\nResponseOp\0225\n\016response_range\030\001 \001(\0132" + + "\033.etcdserverpb.RangeResponseH\000\0221\n\014respon" + + "se_put\030\002 \001(\0132\031.etcdserverpb.PutResponseH" + + "\000\022B\n\025response_delete_range\030\003 \001(\0132!.etcds" + + "erverpb.DeleteRangeResponseH\000\0221\n\014respons" + + "e_txn\030\004 \001(\0132\031.etcdserverpb.TxnResponseH\000" + + "B\n\n\010response\"\372\002\n\007Compare\0223\n\006result\030\001 \001(\016" + + "2#.etcdserverpb.Compare.CompareResult\0223\n" + + "\006target\030\002 \001(\0162#.etcdserverpb.Compare.Com" + + "pareTarget\022\013\n\003key\030\003 \001(\014\022\021\n\007version\030\004 \001(\003" + + "H\000\022\031\n\017create_revision\030\005 \001(\003H\000\022\026\n\014mod_rev" + + "ision\030\006 \001(\003H\000\022\017\n\005value\030\007 \001(\014H\000\022\021\n\trange_" + + "end\030\010 \001(\014\"@\n\rCompareResult\022\t\n\005EQUAL\020\000\022\013\n" + + "\007GREATER\020\001\022\010\n\004LESS\020\002\022\r\n\tNOT_EQUAL\020\003\"<\n\rC" + + "ompareTarget\022\013\n\007VERSION\020\000\022\n\n\006CREATE\020\001\022\007\n" + + "\003MOD\020\002\022\t\n\005VALUE\020\003B\016\n\014target_union\"\210\001\n\nTx" + + "nRequest\022&\n\007compare\030\001 \003(\0132\025.etcdserverpb" + + ".Compare\022(\n\007success\030\002 \003(\0132\027.etcdserverpb" + + ".RequestOp\022(\n\007failure\030\003 \003(\0132\027.etcdserver" + + "pb.RequestOp\"{\n\013TxnResponse\022,\n\006header\030\001 " + + "\001(\0132\034.etcdserverpb.ResponseHeader\022\021\n\tsuc" + + "ceeded\030\002 \001(\010\022+\n\tresponses\030\003 \003(\0132\030.etcdse" + + "rverpb.ResponseOp\"7\n\021CompactionRequest\022\020" + + "\n\010revision\030\001 \001(\003\022\020\n\010physical\030\002 \001(\010\"B\n\022Co" + + "mpactionResponse\022,\n\006header\030\001 \001(\0132\034.etcds" + + "erverpb.ResponseHeader\"\r\n\013HashRequest\"J\n" + + "\014HashResponse\022,\n\006header\030\001 \001(\0132\034.etcdserv" + + "erpb.ResponseHeader\022\014\n\004hash\030\002 \001(\r\"!\n\rHas" + + "hKVRequest\022\020\n\010revision\030\001 \001(\003\"f\n\016HashKVRe" + + "sponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Re" + + "sponseHeader\022\014\n\004hash\030\002 \001(\r\022\030\n\020compact_re" + + "vision\030\003 \001(\003\"\021\n\017SnapshotRequest\"g\n\020Snaps" + + "hotResponse\022,\n\006header\030\001 \001(\0132\034.etcdserver" + + "pb.ResponseHeader\022\027\n\017remaining_bytes\030\002 \001" + + "(\004\022\014\n\004blob\030\003 \001(\014\"\227\001\n\014WatchRequest\022:\n\016cre" + + "ate_request\030\001 \001(\0132 .etcdserverpb.WatchCr" + + "eateRequestH\000\022:\n\016cancel_request\030\002 \001(\0132 ." + + "etcdserverpb.WatchCancelRequestH\000B\017\n\rreq" + + "uest_union\"\333\001\n\022WatchCreateRequest\022\013\n\003key" + + "\030\001 \001(\014\022\021\n\trange_end\030\002 \001(\014\022\026\n\016start_revis" + + "ion\030\003 \001(\003\022\027\n\017progress_notify\030\004 \001(\010\022<\n\007fi" + + "lters\030\005 \003(\0162+.etcdserverpb.WatchCreateRe" + + "quest.FilterType\022\017\n\007prev_kv\030\006 \001(\010\"%\n\nFil" + + "terType\022\t\n\005NOPUT\020\000\022\014\n\010NODELETE\020\001\"&\n\022Watc" + + "hCancelRequest\022\020\n\010watch_id\030\001 \001(\003\"\302\001\n\rWat" + + "chResponse\022,\n\006header\030\001 \001(\0132\034.etcdserverp" + + "b.ResponseHeader\022\020\n\010watch_id\030\002 \001(\003\022\017\n\007cr" + + "eated\030\003 \001(\010\022\020\n\010canceled\030\004 \001(\010\022\030\n\020compact" + + "_revision\030\005 \001(\003\022\025\n\rcancel_reason\030\006 \001(\t\022\035" + + "\n\006events\030\013 \003(\0132\r.mvccpb.Event\",\n\021LeaseGr" + + "antRequest\022\013\n\003TTL\030\001 \001(\003\022\n\n\002ID\030\002 \001(\003\"j\n\022L" + + "easeGrantResponse\022,\n\006header\030\001 \001(\0132\034.etcd" + + "serverpb.ResponseHeader\022\n\n\002ID\030\002 \001(\003\022\013\n\003T" + + "TL\030\003 \001(\003\022\r\n\005error\030\004 \001(\t\" \n\022LeaseRevokeRe" + + "quest\022\n\n\002ID\030\001 \001(\003\"C\n\023LeaseRevokeResponse" + + "\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Response" + + "Header\"#\n\025LeaseKeepAliveRequest\022\n\n\002ID\030\001 " + + "\001(\003\"_\n\026LeaseKeepAliveResponse\022,\n\006header\030" + + "\001 \001(\0132\034.etcdserverpb.ResponseHeader\022\n\n\002I" + + "D\030\002 \001(\003\022\013\n\003TTL\030\003 \001(\003\"2\n\026LeaseTimeToLiveR" + + "equest\022\n\n\002ID\030\001 \001(\003\022\014\n\004keys\030\002 \001(\010\"\202\001\n\027Lea" + + "seTimeToLiveResponse\022,\n\006header\030\001 \001(\0132\034.e" + + "tcdserverpb.ResponseHeader\022\n\n\002ID\030\002 \001(\003\022\013" + + "\n\003TTL\030\003 \001(\003\022\022\n\ngrantedTTL\030\004 \001(\003\022\014\n\004keys\030" + + "\005 \003(\014\"H\n\006Member\022\n\n\002ID\030\001 \001(\004\022\014\n\004name\030\002 \001(" + + "\t\022\020\n\010peerURLs\030\003 \003(\t\022\022\n\nclientURLs\030\004 \003(\t\"" + + "$\n\020MemberAddRequest\022\020\n\010peerURLs\030\001 \003(\t\"\216\001" + + "\n\021MemberAddResponse\022,\n\006header\030\001 \001(\0132\034.et" + + "cdserverpb.ResponseHeader\022$\n\006member\030\002 \001(" + + "\0132\024.etcdserverpb.Member\022%\n\007members\030\003 \003(\013" + + "2\024.etcdserverpb.Member\"!\n\023MemberRemoveRe" + + "quest\022\n\n\002ID\030\001 \001(\004\"k\n\024MemberRemoveRespons" + + "e\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Respons" + + "eHeader\022%\n\007members\030\002 \003(\0132\024.etcdserverpb." + + "Member\"3\n\023MemberUpdateRequest\022\n\n\002ID\030\001 \001(" + + "\004\022\020\n\010peerURLs\030\002 \003(\t\"k\n\024MemberUpdateRespo" + + "nse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Respo" + + "nseHeader\022%\n\007members\030\002 \003(\0132\024.etcdserverp" + + "b.Member\"\023\n\021MemberListRequest\"i\n\022MemberL" + + "istResponse\022,\n\006header\030\001 \001(\0132\034.etcdserver" + + "pb.ResponseHeader\022%\n\007members\030\002 \003(\0132\024.etc" + + "dserverpb.Member\"\023\n\021DefragmentRequest\"B\n" + + "\022DefragmentResponse\022,\n\006header\030\001 \001(\0132\034.et" + + "cdserverpb.ResponseHeader\"%\n\021MoveLeaderR" + + "equest\022\020\n\010targetID\030\001 \001(\004\"B\n\022MoveLeaderRe" + + "sponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Re" + + "sponseHeader\"\266\001\n\014AlarmRequest\0226\n\006action\030" + + "\001 \001(\0162&.etcdserverpb.AlarmRequest.AlarmA" + + "ction\022\020\n\010memberID\030\002 \001(\004\022&\n\005alarm\030\003 \001(\0162\027" + + ".etcdserverpb.AlarmType\"4\n\013AlarmAction\022\007" + + "\n\003GET\020\000\022\014\n\010ACTIVATE\020\001\022\016\n\nDEACTIVATE\020\002\"G\n" + + "\013AlarmMember\022\020\n\010memberID\030\001 \001(\004\022&\n\005alarm\030" + + "\002 \001(\0162\027.etcdserverpb.AlarmType\"h\n\rAlarmR" + + "esponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.R" + + "esponseHeader\022)\n\006alarms\030\002 \003(\0132\031.etcdserv" + + "erpb.AlarmMember\"\017\n\rStatusRequest\"\224\001\n\016St" + + "atusResponse\022,\n\006header\030\001 \001(\0132\034.etcdserve" + + "rpb.ResponseHeader\022\017\n\007version\030\002 \001(\t\022\016\n\006d" + + "bSize\030\003 \001(\003\022\016\n\006leader\030\004 \001(\004\022\021\n\traftIndex" + + "\030\005 \001(\004\022\020\n\010raftTerm\030\006 \001(\004\"\023\n\021AuthEnableRe" + + "quest\"\024\n\022AuthDisableRequest\"5\n\023Authentic" + + "ateRequest\022\014\n\004name\030\001 \001(\t\022\020\n\010password\030\002 \001" + + "(\t\"4\n\022AuthUserAddRequest\022\014\n\004name\030\001 \001(\t\022\020" + + "\n\010password\030\002 \001(\t\"\"\n\022AuthUserGetRequest\022\014" + + "\n\004name\030\001 \001(\t\"%\n\025AuthUserDeleteRequest\022\014\n" + + "\004name\030\001 \001(\t\"?\n\035AuthUserChangePasswordReq" + + "uest\022\014\n\004name\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"6\n\030" + + "AuthUserGrantRoleRequest\022\014\n\004user\030\001 \001(\t\022\014" + + "\n\004role\030\002 \001(\t\"7\n\031AuthUserRevokeRoleReques" + + "t\022\014\n\004name\030\001 \001(\t\022\014\n\004role\030\002 \001(\t\"\"\n\022AuthRol" + + "eAddRequest\022\014\n\004name\030\001 \001(\t\"\"\n\022AuthRoleGet" + + "Request\022\014\n\004role\030\001 \001(\t\"\025\n\023AuthUserListReq" + + "uest\"\025\n\023AuthRoleListRequest\"%\n\025AuthRoleD" + + "eleteRequest\022\014\n\004role\030\001 \001(\t\"P\n\036AuthRoleGr" + + "antPermissionRequest\022\014\n\004name\030\001 \001(\t\022 \n\004pe" + + "rm\030\002 \001(\0132\022.authpb.Permission\"O\n\037AuthRole" + + "RevokePermissionRequest\022\014\n\004role\030\001 \001(\t\022\013\n" + + "\003key\030\002 \001(\t\022\021\n\trange_end\030\003 \001(\t\"B\n\022AuthEna" + + "bleResponse\022,\n\006header\030\001 \001(\0132\034.etcdserver" + + "pb.ResponseHeader\"C\n\023AuthDisableResponse" + + "\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Response" + + "Header\"S\n\024AuthenticateResponse\022,\n\006header" + + "\030\001 \001(\0132\034.etcdserverpb.ResponseHeader\022\r\n\005" + + "token\030\002 \001(\t\"C\n\023AuthUserAddResponse\022,\n\006he" + + "ader\030\001 \001(\0132\034.etcdserverpb.ResponseHeader" + + "\"R\n\023AuthUserGetResponse\022,\n\006header\030\001 \001(\0132" + + "\034.etcdserverpb.ResponseHeader\022\r\n\005roles\030\002" + + " \003(\t\"F\n\026AuthUserDeleteResponse\022,\n\006header" + + "\030\001 \001(\0132\034.etcdserverpb.ResponseHeader\"N\n\036" + + "AuthUserChangePasswordResponse\022,\n\006header" + + "\030\001 \001(\0132\034.etcdserverpb.ResponseHeader\"I\n\031" + + "AuthUserGrantRoleResponse\022,\n\006header\030\001 \001(" + + "\0132\034.etcdserverpb.ResponseHeader\"J\n\032AuthU" + + "serRevokeRoleResponse\022,\n\006header\030\001 \001(\0132\034." + + "etcdserverpb.ResponseHeader\"C\n\023AuthRoleA" + + "ddResponse\022,\n\006header\030\001 \001(\0132\034.etcdserverp" + + "b.ResponseHeader\"e\n\023AuthRoleGetResponse\022" + + ",\n\006header\030\001 \001(\0132\034.etcdserverpb.ResponseH" + + "eader\022 \n\004perm\030\002 \003(\0132\022.authpb.Permission\"" + + "S\n\024AuthRoleListResponse\022,\n\006header\030\001 \001(\0132" + + "\034.etcdserverpb.ResponseHeader\022\r\n\005roles\030\002" + + " \003(\t\"S\n\024AuthUserListResponse\022,\n\006header\030\001" + + " \001(\0132\034.etcdserverpb.ResponseHeader\022\r\n\005us" + + "ers\030\002 \003(\t\"F\n\026AuthRoleDeleteResponse\022,\n\006h" + + "eader\030\001 \001(\0132\034.etcdserverpb.ResponseHeade" + + "r\"O\n\037AuthRoleGrantPermissionResponse\022,\n\006" + + "header\030\001 \001(\0132\034.etcdserverpb.ResponseHead" + + "er\"P\n AuthRoleRevokePermissionResponse\022," + + "\n\006header\030\001 \001(\0132\034.etcdserverpb.ResponseHe" + + "ader*\"\n\tAlarmType\022\010\n\004NONE\020\000\022\013\n\007NOSPACE\020\001" + + "2\352\002\n\002KV\022B\n\005Range\022\032.etcdserverpb.RangeReq" + + "uest\032\033.etcdserverpb.RangeResponse\"\000\022<\n\003P" + + "ut\022\030.etcdserverpb.PutRequest\032\031.etcdserve" + + "rpb.PutResponse\"\000\022T\n\013DeleteRange\022 .etcds" + + "erverpb.DeleteRangeRequest\032!.etcdserverp" + + "b.DeleteRangeResponse\"\000\022<\n\003Txn\022\030.etcdser" + + "verpb.TxnRequest\032\031.etcdserverpb.TxnRespo" + + "nse\"\000\022N\n\007Compact\022\037.etcdserverpb.Compacti" + + "onRequest\032 .etcdserverpb.CompactionRespo" + + "nse\"\0002O\n\005Watch\022F\n\005Watch\022\032.etcdserverpb.W" + + "atchRequest\032\033.etcdserverpb.WatchResponse" + + "\"\000(\0010\0012\365\002\n\005Lease\022Q\n\nLeaseGrant\022\037.etcdser" + + "verpb.LeaseGrantRequest\032 .etcdserverpb.L" + + "easeGrantResponse\"\000\022T\n\013LeaseRevoke\022 .etc" + + "dserverpb.LeaseRevokeRequest\032!.etcdserve" + + "rpb.LeaseRevokeResponse\"\000\022a\n\016LeaseKeepAl" + + "ive\022#.etcdserverpb.LeaseKeepAliveRequest" + + "\032$.etcdserverpb.LeaseKeepAliveResponse\"\000" + + "(\0010\001\022`\n\017LeaseTimeToLive\022$.etcdserverpb.L" + + "easeTimeToLiveRequest\032%.etcdserverpb.Lea" + + "seTimeToLiveResponse\"\0002\336\002\n\007Cluster\022N\n\tMe" + + "mberAdd\022\036.etcdserverpb.MemberAddRequest\032" + + "\037.etcdserverpb.MemberAddResponse\"\000\022W\n\014Me" + + "mberRemove\022!.etcdserverpb.MemberRemoveRe" + + "quest\032\".etcdserverpb.MemberRemoveRespons" + + "e\"\000\022W\n\014MemberUpdate\022!.etcdserverpb.Membe" + + "rUpdateRequest\032\".etcdserverpb.MemberUpda" + + "teResponse\"\000\022Q\n\nMemberList\022\037.etcdserverp" + + "b.MemberListRequest\032 .etcdserverpb.Membe" + + "rListResponse\"\0002\225\004\n\013Maintenance\022B\n\005Alarm" + + "\022\032.etcdserverpb.AlarmRequest\032\033.etcdserve" + + "rpb.AlarmResponse\"\000\022E\n\006Status\022\033.etcdserv" + + "erpb.StatusRequest\032\034.etcdserverpb.Status" + + "Response\"\000\022Q\n\nDefragment\022\037.etcdserverpb." + + "DefragmentRequest\032 .etcdserverpb.Defragm" + + "entResponse\"\000\022?\n\004Hash\022\031.etcdserverpb.Has" + + "hRequest\032\032.etcdserverpb.HashResponse\"\000\022E" + + "\n\006HashKV\022\033.etcdserverpb.HashKVRequest\032\034." + + "etcdserverpb.HashKVResponse\"\000\022M\n\010Snapsho" + + "t\022\035.etcdserverpb.SnapshotRequest\032\036.etcds" + + "erverpb.SnapshotResponse\"\0000\001\022Q\n\nMoveLead" + + "er\022\037.etcdserverpb.MoveLeaderRequest\032 .et" + + "cdserverpb.MoveLeaderResponse\"\0002\335\013\n\004Auth" + + "\022Q\n\nAuthEnable\022\037.etcdserverpb.AuthEnable" + + "Request\032 .etcdserverpb.AuthEnableRespons" + + "e\"\000\022T\n\013AuthDisable\022 .etcdserverpb.AuthDi" + + "sableRequest\032!.etcdserverpb.AuthDisableR" + + "esponse\"\000\022W\n\014Authenticate\022!.etcdserverpb" + + ".AuthenticateRequest\032\".etcdserverpb.Auth" + + "enticateResponse\"\000\022P\n\007UserAdd\022 .etcdserv" + + "erpb.AuthUserAddRequest\032!.etcdserverpb.A" + + "uthUserAddResponse\"\000\022P\n\007UserGet\022 .etcdse" + + "rverpb.AuthUserGetRequest\032!.etcdserverpb" + + ".AuthUserGetResponse\"\000\022S\n\010UserList\022!.etc" + + "dserverpb.AuthUserListRequest\032\".etcdserv" + + "erpb.AuthUserListResponse\"\000\022Y\n\nUserDelet" + + "e\022#.etcdserverpb.AuthUserDeleteRequest\032$" + + ".etcdserverpb.AuthUserDeleteResponse\"\000\022q" + + "\n\022UserChangePassword\022+.etcdserverpb.Auth" + + "UserChangePasswordRequest\032,.etcdserverpb" + + ".AuthUserChangePasswordResponse\"\000\022b\n\rUse" + + "rGrantRole\022&.etcdserverpb.AuthUserGrantR" + + "oleRequest\032\'.etcdserverpb.AuthUserGrantR" + + "oleResponse\"\000\022e\n\016UserRevokeRole\022\'.etcdse" + + "rverpb.AuthUserRevokeRoleRequest\032(.etcds" + + "erverpb.AuthUserRevokeRoleResponse\"\000\022P\n\007" + + "RoleAdd\022 .etcdserverpb.AuthRoleAddReques" + + "t\032!.etcdserverpb.AuthRoleAddResponse\"\000\022P" + + "\n\007RoleGet\022 .etcdserverpb.AuthRoleGetRequ" + + "est\032!.etcdserverpb.AuthRoleGetResponse\"\000" + + "\022S\n\010RoleList\022!.etcdserverpb.AuthRoleList" + + "Request\032\".etcdserverpb.AuthRoleListRespo" + + "nse\"\000\022Y\n\nRoleDelete\022#.etcdserverpb.AuthR" + + "oleDeleteRequest\032$.etcdserverpb.AuthRole" + + "DeleteResponse\"\000\022t\n\023RoleGrantPermission\022" + + ",.etcdserverpb.AuthRoleGrantPermissionRe" + + "quest\032-.etcdserverpb.AuthRoleGrantPermis" + + "sionResponse\"\000\022w\n\024RoleRevokePermission\022-" + + ".etcdserverpb.AuthRoleRevokePermissionRe" + + "quest\032..etcdserverpb.AuthRoleRevokePermi" + + "ssionResponse\"\000BC\n\'org.eclipse.ecf.provi" + + "der.etcd3.grpc.apiB\014ECFEtcdProtoP\001\242\002\007ECF" + + "Etcdb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.getDescriptor(), + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.getDescriptor(), + }); + internal_static_etcdserverpb_ResponseHeader_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_ResponseHeader_descriptor, + new java.lang.String[] { "ClusterId", "MemberId", "Revision", "RaftTerm", }); + internal_static_etcdserverpb_RangeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_etcdserverpb_RangeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_RangeRequest_descriptor, + new java.lang.String[] { "Key", "RangeEnd", "Limit", "Revision", "SortOrder", "SortTarget", "Serializable", "KeysOnly", "CountOnly", "MinModRevision", "MaxModRevision", "MinCreateRevision", "MaxCreateRevision", }); + internal_static_etcdserverpb_RangeResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_etcdserverpb_RangeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_RangeResponse_descriptor, + new java.lang.String[] { "Header", "Kvs", "More", "Count", }); + internal_static_etcdserverpb_PutRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_etcdserverpb_PutRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_PutRequest_descriptor, + new java.lang.String[] { "Key", "Value", "Lease", "PrevKv", "IgnoreValue", "IgnoreLease", }); + internal_static_etcdserverpb_PutResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_etcdserverpb_PutResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_PutResponse_descriptor, + new java.lang.String[] { "Header", "PrevKv", }); + internal_static_etcdserverpb_DeleteRangeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_DeleteRangeRequest_descriptor, + new java.lang.String[] { "Key", "RangeEnd", "PrevKv", }); + internal_static_etcdserverpb_DeleteRangeResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_DeleteRangeResponse_descriptor, + new java.lang.String[] { "Header", "Deleted", "PrevKvs", }); + internal_static_etcdserverpb_RequestOp_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_etcdserverpb_RequestOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_RequestOp_descriptor, + new java.lang.String[] { "RequestRange", "RequestPut", "RequestDeleteRange", "RequestTxn", "Request", }); + internal_static_etcdserverpb_ResponseOp_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_etcdserverpb_ResponseOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_ResponseOp_descriptor, + new java.lang.String[] { "ResponseRange", "ResponsePut", "ResponseDeleteRange", "ResponseTxn", "Response", }); + internal_static_etcdserverpb_Compare_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_etcdserverpb_Compare_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_Compare_descriptor, + new java.lang.String[] { "Result", "Target", "Key", "Version", "CreateRevision", "ModRevision", "Value", "RangeEnd", "TargetUnion", }); + internal_static_etcdserverpb_TxnRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_etcdserverpb_TxnRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_TxnRequest_descriptor, + new java.lang.String[] { "Compare", "Success", "Failure", }); + internal_static_etcdserverpb_TxnResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_etcdserverpb_TxnResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_TxnResponse_descriptor, + new java.lang.String[] { "Header", "Succeeded", "Responses", }); + internal_static_etcdserverpb_CompactionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_CompactionRequest_descriptor, + new java.lang.String[] { "Revision", "Physical", }); + internal_static_etcdserverpb_CompactionResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_CompactionResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_HashRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_etcdserverpb_HashRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_HashRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_HashResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_etcdserverpb_HashResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_HashResponse_descriptor, + new java.lang.String[] { "Header", "Hash", }); + internal_static_etcdserverpb_HashKVRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_etcdserverpb_HashKVRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_HashKVRequest_descriptor, + new java.lang.String[] { "Revision", }); + internal_static_etcdserverpb_HashKVResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_etcdserverpb_HashKVResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_HashKVResponse_descriptor, + new java.lang.String[] { "Header", "Hash", "CompactRevision", }); + internal_static_etcdserverpb_SnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_SnapshotRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_SnapshotResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_SnapshotResponse_descriptor, + new java.lang.String[] { "Header", "RemainingBytes", "Blob", }); + internal_static_etcdserverpb_WatchRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_etcdserverpb_WatchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_WatchRequest_descriptor, + new java.lang.String[] { "CreateRequest", "CancelRequest", "RequestUnion", }); + internal_static_etcdserverpb_WatchCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_WatchCreateRequest_descriptor, + new java.lang.String[] { "Key", "RangeEnd", "StartRevision", "ProgressNotify", "Filters", "PrevKv", }); + internal_static_etcdserverpb_WatchCancelRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_WatchCancelRequest_descriptor, + new java.lang.String[] { "WatchId", }); + internal_static_etcdserverpb_WatchResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_etcdserverpb_WatchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_WatchResponse_descriptor, + new java.lang.String[] { "Header", "WatchId", "Created", "Canceled", "CompactRevision", "CancelReason", "Events", }); + internal_static_etcdserverpb_LeaseGrantRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseGrantRequest_descriptor, + new java.lang.String[] { "TTL", "ID", }); + internal_static_etcdserverpb_LeaseGrantResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseGrantResponse_descriptor, + new java.lang.String[] { "Header", "ID", "TTL", "Error", }); + internal_static_etcdserverpb_LeaseRevokeRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseRevokeRequest_descriptor, + new java.lang.String[] { "ID", }); + internal_static_etcdserverpb_LeaseRevokeResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseRevokeResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor, + new java.lang.String[] { "ID", }); + internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor, + new java.lang.String[] { "Header", "ID", "TTL", }); + internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor, + new java.lang.String[] { "ID", "Keys", }); + internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor, + new java.lang.String[] { "Header", "ID", "TTL", "GrantedTTL", "Keys", }); + internal_static_etcdserverpb_Member_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_etcdserverpb_Member_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_Member_descriptor, + new java.lang.String[] { "ID", "Name", "PeerURLs", "ClientURLs", }); + internal_static_etcdserverpb_MemberAddRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberAddRequest_descriptor, + new java.lang.String[] { "PeerURLs", }); + internal_static_etcdserverpb_MemberAddResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberAddResponse_descriptor, + new java.lang.String[] { "Header", "Member", "Members", }); + internal_static_etcdserverpb_MemberRemoveRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberRemoveRequest_descriptor, + new java.lang.String[] { "ID", }); + internal_static_etcdserverpb_MemberRemoveResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberRemoveResponse_descriptor, + new java.lang.String[] { "Header", "Members", }); + internal_static_etcdserverpb_MemberUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberUpdateRequest_descriptor, + new java.lang.String[] { "ID", "PeerURLs", }); + internal_static_etcdserverpb_MemberUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberUpdateResponse_descriptor, + new java.lang.String[] { "Header", "Members", }); + internal_static_etcdserverpb_MemberListRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberListRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_MemberListResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MemberListResponse_descriptor, + new java.lang.String[] { "Header", "Members", }); + internal_static_etcdserverpb_DefragmentRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_DefragmentRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_DefragmentResponse_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_DefragmentResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_MoveLeaderRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_etcdserverpb_MoveLeaderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MoveLeaderRequest_descriptor, + new java.lang.String[] { "TargetID", }); + internal_static_etcdserverpb_MoveLeaderResponse_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_etcdserverpb_MoveLeaderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_MoveLeaderResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AlarmRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AlarmRequest_descriptor, + new java.lang.String[] { "Action", "MemberID", "Alarm", }); + internal_static_etcdserverpb_AlarmMember_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_etcdserverpb_AlarmMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AlarmMember_descriptor, + new java.lang.String[] { "MemberID", "Alarm", }); + internal_static_etcdserverpb_AlarmResponse_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AlarmResponse_descriptor, + new java.lang.String[] { "Header", "Alarms", }); + internal_static_etcdserverpb_StatusRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_etcdserverpb_StatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_StatusRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_StatusResponse_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_etcdserverpb_StatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_StatusResponse_descriptor, + new java.lang.String[] { "Header", "Version", "DbSize", "Leader", "RaftIndex", "RaftTerm", }); + internal_static_etcdserverpb_AuthEnableRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthEnableRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_AuthDisableRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthDisableRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_AuthenticateRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthenticateRequest_descriptor, + new java.lang.String[] { "Name", "Password", }); + internal_static_etcdserverpb_AuthUserAddRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserAddRequest_descriptor, + new java.lang.String[] { "Name", "Password", }); + internal_static_etcdserverpb_AuthUserGetRequest_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserGetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor, + new java.lang.String[] { "Name", "Password", }); + internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor, + new java.lang.String[] { "User", "Role", }); + internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor, + new java.lang.String[] { "Name", "Role", }); + internal_static_etcdserverpb_AuthRoleAddRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleAddRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_etcdserverpb_AuthRoleGetRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleGetRequest_descriptor, + new java.lang.String[] { "Role", }); + internal_static_etcdserverpb_AuthUserListRequest_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserListRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_AuthRoleListRequest_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleListRequest_descriptor, + new java.lang.String[] { }); + internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor, + new java.lang.String[] { "Role", }); + internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor, + new java.lang.String[] { "Name", "Perm", }); + internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor, + new java.lang.String[] { "Role", "Key", "RangeEnd", }); + internal_static_etcdserverpb_AuthEnableResponse_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthEnableResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthDisableResponse_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthDisableResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthenticateResponse_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthenticateResponse_descriptor, + new java.lang.String[] { "Header", "Token", }); + internal_static_etcdserverpb_AuthUserAddResponse_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserAddResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthUserGetResponse_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserGetResponse_descriptor, + new java.lang.String[] { "Header", "Roles", }); + internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthRoleAddResponse_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleAddResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthRoleGetResponse_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleGetResponse_descriptor, + new java.lang.String[] { "Header", "Perm", }); + internal_static_etcdserverpb_AuthRoleListResponse_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleListResponse_descriptor, + new java.lang.String[] { "Header", "Roles", }); + internal_static_etcdserverpb_AuthUserListResponse_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthUserListResponse_descriptor, + new java.lang.String[] { "Header", "Users", }); + internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor, + new java.lang.String[] { "Header", }); + internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor, + new java.lang.String[] { "Header", }); + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.getDescriptor(); + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequest.java new file mode 100644 index 0000000..90660e4 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequest.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.HashKVRequest} + */ +public final class HashKVRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.HashKVRequest) + HashKVRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use HashKVRequest.newBuilder() to construct. + private HashKVRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HashKVRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HashKVRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HashKVRequest( + 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 8: { + + revision_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.Builder.class); + } + + public static final int REVISION_FIELD_NUMBER = 1; + private long revision_; + /** + *
+   * revision is the key-value store revision for the hash operation.
+   * 
+ * + * int64 revision = 1; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (revision_ != 0L) { + output.writeInt64(1, revision_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (revision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, revision_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest) obj; + + if (getRevision() + != other.getRevision()) 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) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRevision()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.HashKVRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.HashKVRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.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(); + revision_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest(this); + result.revision_ = revision_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.getDefaultInstance()) return this; + if (other.getRevision() != 0L) { + setRevision(other.getRevision()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long revision_ ; + /** + *
+     * revision is the key-value store revision for the hash operation.
+     * 
+ * + * int64 revision = 1; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + /** + *
+     * revision is the key-value store revision for the hash operation.
+     * 
+ * + * int64 revision = 1; + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(long value) { + + revision_ = value; + onChanged(); + return this; + } + /** + *
+     * revision is the key-value store revision for the hash operation.
+     * 
+ * + * int64 revision = 1; + * @return This builder for chaining. + */ + public Builder clearRevision() { + + revision_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.HashKVRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.HashKVRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HashKVRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HashKVRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequestOrBuilder.java new file mode 100644 index 0000000..a021cb2 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface HashKVRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.HashKVRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * revision is the key-value store revision for the hash operation.
+   * 
+ * + * int64 revision = 1; + * @return The revision. + */ + long getRevision(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponse.java new file mode 100644 index 0000000..c8b7d32 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponse.java @@ -0,0 +1,768 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.HashKVResponse} + */ +public final class HashKVResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.HashKVResponse) + HashKVResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use HashKVResponse.newBuilder() to construct. + private HashKVResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HashKVResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HashKVResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HashKVResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + hash_ = input.readUInt32(); + break; + } + case 24: { + + compactRevision_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int HASH_FIELD_NUMBER = 2; + private int hash_; + /** + *
+   * hash is the hash value computed from the responding member's MVCC keys up to a given revision.
+   * 
+ * + * uint32 hash = 2; + * @return The hash. + */ + @java.lang.Override + public int getHash() { + return hash_; + } + + public static final int COMPACT_REVISION_FIELD_NUMBER = 3; + private long compactRevision_; + /** + *
+   * compact_revision is the compacted revision of key-value store when hash begins.
+   * 
+ * + * int64 compact_revision = 3; + * @return The compactRevision. + */ + @java.lang.Override + public long getCompactRevision() { + return compactRevision_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (hash_ != 0) { + output.writeUInt32(2, hash_); + } + if (compactRevision_ != 0L) { + output.writeInt64(3, compactRevision_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (hash_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, hash_); + } + if (compactRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, compactRevision_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getHash() + != other.getHash()) return false; + if (getCompactRevision() + != other.getCompactRevision()) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash(); + hash = (37 * hash) + COMPACT_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompactRevision()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.HashKVResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.HashKVResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + hash_ = 0; + + compactRevision_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashKVResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.hash_ = hash_; + result.compactRevision_ = compactRevision_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getHash() != 0) { + setHash(other.getHash()); + } + if (other.getCompactRevision() != 0L) { + setCompactRevision(other.getCompactRevision()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private int hash_ ; + /** + *
+     * hash is the hash value computed from the responding member's MVCC keys up to a given revision.
+     * 
+ * + * uint32 hash = 2; + * @return The hash. + */ + @java.lang.Override + public int getHash() { + return hash_; + } + /** + *
+     * hash is the hash value computed from the responding member's MVCC keys up to a given revision.
+     * 
+ * + * uint32 hash = 2; + * @param value The hash to set. + * @return This builder for chaining. + */ + public Builder setHash(int value) { + + hash_ = value; + onChanged(); + return this; + } + /** + *
+     * hash is the hash value computed from the responding member's MVCC keys up to a given revision.
+     * 
+ * + * uint32 hash = 2; + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = 0; + onChanged(); + return this; + } + + private long compactRevision_ ; + /** + *
+     * compact_revision is the compacted revision of key-value store when hash begins.
+     * 
+ * + * int64 compact_revision = 3; + * @return The compactRevision. + */ + @java.lang.Override + public long getCompactRevision() { + return compactRevision_; + } + /** + *
+     * compact_revision is the compacted revision of key-value store when hash begins.
+     * 
+ * + * int64 compact_revision = 3; + * @param value The compactRevision to set. + * @return This builder for chaining. + */ + public Builder setCompactRevision(long value) { + + compactRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * compact_revision is the compacted revision of key-value store when hash begins.
+     * 
+ * + * int64 compact_revision = 3; + * @return This builder for chaining. + */ + public Builder clearCompactRevision() { + + compactRevision_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.HashKVResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.HashKVResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HashKVResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HashKVResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponseOrBuilder.java new file mode 100644 index 0000000..5e601d7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashKVResponseOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface HashKVResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.HashKVResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * hash is the hash value computed from the responding member's MVCC keys up to a given revision.
+   * 
+ * + * uint32 hash = 2; + * @return The hash. + */ + int getHash(); + + /** + *
+   * compact_revision is the compacted revision of key-value store when hash begins.
+   * 
+ * + * int64 compact_revision = 3; + * @return The compactRevision. + */ + long getCompactRevision(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequest.java new file mode 100644 index 0000000..c3c3339 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.HashRequest} + */ +public final class HashRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.HashRequest) + HashRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use HashRequest.newBuilder() to construct. + private HashRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HashRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HashRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HashRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.HashRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.HashRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.HashRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.HashRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HashRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HashRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequestOrBuilder.java new file mode 100644 index 0000000..85c5775 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface HashRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.HashRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponse.java new file mode 100644 index 0000000..cb17106 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponse.java @@ -0,0 +1,687 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.HashResponse} + */ +public final class HashResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.HashResponse) + HashResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use HashResponse.newBuilder() to construct. + private HashResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HashResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HashResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HashResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + hash_ = input.readUInt32(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int HASH_FIELD_NUMBER = 2; + private int hash_; + /** + *
+   * hash is the hash value computed from the responding member's key-value store.
+   * 
+ * + * uint32 hash = 2; + * @return The hash. + */ + @java.lang.Override + public int getHash() { + return hash_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (hash_ != 0) { + output.writeUInt32(2, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (hash_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, hash_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getHash() + != other.getHash()) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.HashResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.HashResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + hash_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_HashResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.hash_ = hash_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getHash() != 0) { + setHash(other.getHash()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private int hash_ ; + /** + *
+     * hash is the hash value computed from the responding member's key-value store.
+     * 
+ * + * uint32 hash = 2; + * @return The hash. + */ + @java.lang.Override + public int getHash() { + return hash_; + } + /** + *
+     * hash is the hash value computed from the responding member's key-value store.
+     * 
+ * + * uint32 hash = 2; + * @param value The hash to set. + * @return This builder for chaining. + */ + public Builder setHash(int value) { + + hash_ = value; + onChanged(); + return this; + } + /** + *
+     * hash is the hash value computed from the responding member's key-value store.
+     * 
+ * + * uint32 hash = 2; + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.HashResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.HashResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HashResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HashResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponseOrBuilder.java new file mode 100644 index 0000000..3ab09ce --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/HashResponseOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface HashResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.HashResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * hash is the hash value computed from the responding member's key-value store.
+   * 
+ * + * uint32 hash = 2; + * @return The hash. + */ + int getHash(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVGrpc.java new file mode 100644 index 0000000..d851285 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVGrpc.java @@ -0,0 +1,667 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.39.0)", + comments = "Source: rpc.proto") +public final class KVGrpc { + + private KVGrpc() {} + + public static final String SERVICE_NAME = "etcdserverpb.KV"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Range", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRangeMethod() { + io.grpc.MethodDescriptor getRangeMethod; + if ((getRangeMethod = KVGrpc.getRangeMethod) == null) { + synchronized (KVGrpc.class) { + if ((getRangeMethod = KVGrpc.getRangeMethod) == null) { + KVGrpc.getRangeMethod = getRangeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Range")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance())) + .setSchemaDescriptor(new KVMethodDescriptorSupplier("Range")) + .build(); + } + } + } + return getRangeMethod; + } + + private static volatile io.grpc.MethodDescriptor getPutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Put", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPutMethod() { + io.grpc.MethodDescriptor getPutMethod; + if ((getPutMethod = KVGrpc.getPutMethod) == null) { + synchronized (KVGrpc.class) { + if ((getPutMethod = KVGrpc.getPutMethod) == null) { + KVGrpc.getPutMethod = getPutMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Put")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance())) + .setSchemaDescriptor(new KVMethodDescriptorSupplier("Put")) + .build(); + } + } + } + return getPutMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRange", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRangeMethod() { + io.grpc.MethodDescriptor getDeleteRangeMethod; + if ((getDeleteRangeMethod = KVGrpc.getDeleteRangeMethod) == null) { + synchronized (KVGrpc.class) { + if ((getDeleteRangeMethod = KVGrpc.getDeleteRangeMethod) == null) { + KVGrpc.getDeleteRangeMethod = getDeleteRangeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance())) + .setSchemaDescriptor(new KVMethodDescriptorSupplier("DeleteRange")) + .build(); + } + } + } + return getDeleteRangeMethod; + } + + private static volatile io.grpc.MethodDescriptor getTxnMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Txn", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTxnMethod() { + io.grpc.MethodDescriptor getTxnMethod; + if ((getTxnMethod = KVGrpc.getTxnMethod) == null) { + synchronized (KVGrpc.class) { + if ((getTxnMethod = KVGrpc.getTxnMethod) == null) { + KVGrpc.getTxnMethod = getTxnMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Txn")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance())) + .setSchemaDescriptor(new KVMethodDescriptorSupplier("Txn")) + .build(); + } + } + } + return getTxnMethod; + } + + private static volatile io.grpc.MethodDescriptor getCompactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Compact", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCompactMethod() { + io.grpc.MethodDescriptor getCompactMethod; + if ((getCompactMethod = KVGrpc.getCompactMethod) == null) { + synchronized (KVGrpc.class) { + if ((getCompactMethod = KVGrpc.getCompactMethod) == null) { + KVGrpc.getCompactMethod = getCompactMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Compact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse.getDefaultInstance())) + .setSchemaDescriptor(new KVMethodDescriptorSupplier("Compact")) + .build(); + } + } + } + return getCompactMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static KVStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KVStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KVStub(channel, callOptions); + } + }; + return KVStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static KVBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KVBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KVBlockingStub(channel, callOptions); + } + }; + return KVBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static KVFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KVFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KVFutureStub(channel, callOptions); + } + }; + return KVFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class KVImplBase implements io.grpc.BindableService { + + /** + *
+     * Range gets the keys in the range from the key-value store.
+     * 
+ */ + public void range(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRangeMethod(), responseObserver); + } + + /** + *
+     * Put puts the given key into the key-value store.
+     * A put request increments the revision of the key-value store
+     * and generates one event in the event history.
+     * 
+ */ + public void put(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPutMethod(), responseObserver); + } + + /** + *
+     * DeleteRange deletes the given range from the key-value store.
+     * A delete request increments the revision of the key-value store
+     * and generates a delete event in the event history for every deleted key.
+     * 
+ */ + public void deleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRangeMethod(), responseObserver); + } + + /** + *
+     * Txn processes multiple requests in a single transaction.
+     * A txn request increments the revision of the key-value store
+     * and generates events with the same revision for every completed request.
+     * It is not allowed to modify the same key several times within one txn.
+     * 
+ */ + public void txn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTxnMethod(), responseObserver); + } + + /** + *
+     * Compact compacts the event history in the etcd key-value store. The key-value
+     * store should be periodically compacted or the event history will continue to grow
+     * indefinitely.
+     * 
+ */ + public void compact(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompactMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse>( + this, METHODID_RANGE))) + .addMethod( + getPutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse>( + this, METHODID_PUT))) + .addMethod( + getDeleteRangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse>( + this, METHODID_DELETE_RANGE))) + .addMethod( + getTxnMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse>( + this, METHODID_TXN))) + .addMethod( + getCompactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse>( + this, METHODID_COMPACT))) + .build(); + } + } + + /** + */ + public static final class KVStub extends io.grpc.stub.AbstractAsyncStub { + private KVStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KVStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KVStub(channel, callOptions); + } + + /** + *
+     * Range gets the keys in the range from the key-value store.
+     * 
+ */ + public void range(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRangeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Put puts the given key into the key-value store.
+     * A put request increments the revision of the key-value store
+     * and generates one event in the event history.
+     * 
+ */ + public void put(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPutMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * DeleteRange deletes the given range from the key-value store.
+     * A delete request increments the revision of the key-value store
+     * and generates a delete event in the event history for every deleted key.
+     * 
+ */ + public void deleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRangeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Txn processes multiple requests in a single transaction.
+     * A txn request increments the revision of the key-value store
+     * and generates events with the same revision for every completed request.
+     * It is not allowed to modify the same key several times within one txn.
+     * 
+ */ + public void txn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTxnMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Compact compacts the event history in the etcd key-value store. The key-value
+     * store should be periodically compacted or the event history will continue to grow
+     * indefinitely.
+     * 
+ */ + public void compact(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompactMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class KVBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private KVBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KVBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KVBlockingStub(channel, callOptions); + } + + /** + *
+     * Range gets the keys in the range from the key-value store.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse range(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRangeMethod(), getCallOptions(), request); + } + + /** + *
+     * Put puts the given key into the key-value store.
+     * A put request increments the revision of the key-value store
+     * and generates one event in the event history.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse put(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPutMethod(), getCallOptions(), request); + } + + /** + *
+     * DeleteRange deletes the given range from the key-value store.
+     * A delete request increments the revision of the key-value store
+     * and generates a delete event in the event history for every deleted key.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse deleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRangeMethod(), getCallOptions(), request); + } + + /** + *
+     * Txn processes multiple requests in a single transaction.
+     * A txn request increments the revision of the key-value store
+     * and generates events with the same revision for every completed request.
+     * It is not allowed to modify the same key several times within one txn.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse txn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTxnMethod(), getCallOptions(), request); + } + + /** + *
+     * Compact compacts the event history in the etcd key-value store. The key-value
+     * store should be periodically compacted or the event history will continue to grow
+     * indefinitely.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse compact(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompactMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class KVFutureStub extends io.grpc.stub.AbstractFutureStub { + private KVFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KVFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KVFutureStub(channel, callOptions); + } + + /** + *
+     * Range gets the keys in the range from the key-value store.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture range( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRangeMethod(), getCallOptions()), request); + } + + /** + *
+     * Put puts the given key into the key-value store.
+     * A put request increments the revision of the key-value store
+     * and generates one event in the event history.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture put( + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPutMethod(), getCallOptions()), request); + } + + /** + *
+     * DeleteRange deletes the given range from the key-value store.
+     * A delete request increments the revision of the key-value store
+     * and generates a delete event in the event history for every deleted key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRange( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRangeMethod(), getCallOptions()), request); + } + + /** + *
+     * Txn processes multiple requests in a single transaction.
+     * A txn request increments the revision of the key-value store
+     * and generates events with the same revision for every completed request.
+     * It is not allowed to modify the same key several times within one txn.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture txn( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTxnMethod(), getCallOptions()), request); + } + + /** + *
+     * Compact compacts the event history in the etcd key-value store. The key-value
+     * store should be periodically compacted or the event history will continue to grow
+     * indefinitely.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture compact( + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompactMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RANGE = 0; + private static final int METHODID_PUT = 1; + private static final int METHODID_DELETE_RANGE = 2; + private static final int METHODID_TXN = 3; + private static final int METHODID_COMPACT = 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 KVImplBase serviceImpl; + private final int methodId; + + MethodHandlers(KVImplBase 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_RANGE: + serviceImpl.range((org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PUT: + serviceImpl.put((org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RANGE: + serviceImpl.deleteRange((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TXN: + serviceImpl.txn((org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPACT: + serviceImpl.compact((org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest) 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 KVBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + KVBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("KV"); + } + } + + private static final class KVFileDescriptorSupplier + extends KVBaseDescriptorSupplier { + KVFileDescriptorSupplier() {} + } + + private static final class KVMethodDescriptorSupplier + extends KVBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + KVMethodDescriptorSupplier(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 (KVGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KVFileDescriptorSupplier()) + .addMethod(getRangeMethod()) + .addMethod(getPutMethod()) + .addMethod(getDeleteRangeMethod()) + .addMethod(getTxnMethod()) + .addMethod(getCompactMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVService.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVService.java new file mode 100644 index 0000000..93ec70e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/KVService.java @@ -0,0 +1,64 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import io.reactivex.rxjava3.core.Single; + +@javax.annotation.Generated( +value = "by grpc-osgi-generator (REACTIVEX) - A protoc plugin for ECF's grpc remote services distribution provider at https://github.com/ECF/grpc-RemoteServiceSProvider ", +comments = "Source: rpc.proto. ") +public interface KVService { + + + /** + *
+     *  Range gets the keys in the range from the key-value store.
+     * 
+ */ + default Single range(Single requests) { + return null; + } + + /** + *
+     *  Put puts the given key into the key-value store.
+     *  A put request increments the revision of the key-value store
+     *  and generates one event in the event history.
+     * 
+ */ + default Single put(Single requests) { + return null; + } + + /** + *
+     *  DeleteRange deletes the given range from the key-value store.
+     *  A delete request increments the revision of the key-value store
+     *  and generates a delete event in the event history for every deleted key.
+     * 
+ */ + default Single deleteRange(Single requests) { + return null; + } + + /** + *
+     *  Txn processes multiple requests in a single transaction.
+     *  A txn request increments the revision of the key-value store
+     *  and generates events with the same revision for every completed request.
+     *  It is not allowed to modify the same key several times within one txn.
+     * 
+ */ + default Single txn(Single requests) { + return null; + } + + /** + *
+     *  Compact compacts the event history in the etcd key-value store. The key-value
+     *  store should be periodically compacted or the event history will continue to grow
+     *  indefinitely.
+     * 
+ */ + default Single compact(Single requests) { + return null; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequest.java new file mode 100644 index 0000000..4e80d4e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseGrantRequest} + */ +public final class LeaseGrantRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseGrantRequest) + LeaseGrantRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseGrantRequest.newBuilder() to construct. + private LeaseGrantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseGrantRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseGrantRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseGrantRequest( + 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 8: { + + tTL_ = input.readInt64(); + break; + } + case 16: { + + iD_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.Builder.class); + } + + public static final int TTL_FIELD_NUMBER = 1; + private long tTL_; + /** + *
+   * TTL is the advisory time-to-live in seconds.
+   * 
+ * + * int64 TTL = 1; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + + public static final int ID_FIELD_NUMBER = 2; + private long iD_; + /** + *
+   * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (tTL_ != 0L) { + output.writeInt64(1, tTL_); + } + if (iD_ != 0L) { + output.writeInt64(2, iD_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tTL_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, tTL_); + } + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, iD_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest) obj; + + if (getTTL() + != other.getTTL()) return false; + if (getID() + != other.getID()) 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) + TTL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTTL()); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseGrantRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseGrantRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.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(); + tTL_ = 0L; + + iD_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest(this); + result.tTL_ = tTL_; + result.iD_ = iD_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.getDefaultInstance()) return this; + if (other.getTTL() != 0L) { + setTTL(other.getTTL()); + } + if (other.getID() != 0L) { + setID(other.getID()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long tTL_ ; + /** + *
+     * TTL is the advisory time-to-live in seconds.
+     * 
+ * + * int64 TTL = 1; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + /** + *
+     * TTL is the advisory time-to-live in seconds.
+     * 
+ * + * int64 TTL = 1; + * @param value The tTL to set. + * @return This builder for chaining. + */ + public Builder setTTL(long value) { + + tTL_ = value; + onChanged(); + return this; + } + /** + *
+     * TTL is the advisory time-to-live in seconds.
+     * 
+ * + * int64 TTL = 1; + * @return This builder for chaining. + */ + public Builder clearTTL() { + + tTL_ = 0L; + onChanged(); + return this; + } + + private long iD_ ; + /** + *
+     * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
+     * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
+     * 
+ * + * int64 ID = 2; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
+     * 
+ * + * int64 ID = 2; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseGrantRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseGrantRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseGrantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseGrantRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequestOrBuilder.java new file mode 100644 index 0000000..38e648c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseGrantRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseGrantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * TTL is the advisory time-to-live in seconds.
+   * 
+ * + * int64 TTL = 1; + * @return The tTL. + */ + long getTTL(); + + /** + *
+   * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + long getID(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponse.java new file mode 100644 index 0000000..9d30001 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponse.java @@ -0,0 +1,907 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseGrantResponse} + */ +public final class LeaseGrantResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseGrantResponse) + LeaseGrantResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseGrantResponse.newBuilder() to construct. + private LeaseGrantResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseGrantResponse() { + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseGrantResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseGrantResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + iD_ = input.readInt64(); + break; + } + case 24: { + + tTL_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ID_FIELD_NUMBER = 2; + private long iD_; + /** + *
+   * ID is the lease ID for the granted lease.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + public static final int TTL_FIELD_NUMBER = 3; + private long tTL_; + /** + *
+   * TTL is the server chosen lease time-to-live in seconds.
+   * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + + public static final int ERROR_FIELD_NUMBER = 4; + private volatile java.lang.Object error_; + /** + * string error = 4; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * string error = 4; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = 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 (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (iD_ != 0L) { + output.writeInt64(2, iD_); + } + if (tTL_ != 0L) { + output.writeInt64(3, tTL_); + } + if (!getErrorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, iD_); + } + if (tTL_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, tTL_); + } + if (!getErrorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getID() + != other.getID()) return false; + if (getTTL() + != other.getTTL()) return false; + if (!getError() + .equals(other.getError())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTTL()); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseGrantResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseGrantResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + iD_ = 0L; + + tTL_ = 0L; + + error_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseGrantResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.iD_ = iD_; + result.tTL_ = tTL_; + result.error_ = error_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getID() != 0L) { + setID(other.getID()); + } + if (other.getTTL() != 0L) { + setTTL(other.getTTL()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long iD_ ; + /** + *
+     * ID is the lease ID for the granted lease.
+     * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the lease ID for the granted lease.
+     * 
+ * + * int64 ID = 2; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the lease ID for the granted lease.
+     * 
+ * + * int64 ID = 2; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + + private long tTL_ ; + /** + *
+     * TTL is the server chosen lease time-to-live in seconds.
+     * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + /** + *
+     * TTL is the server chosen lease time-to-live in seconds.
+     * 
+ * + * int64 TTL = 3; + * @param value The tTL to set. + * @return This builder for chaining. + */ + public Builder setTTL(long value) { + + tTL_ = value; + onChanged(); + return this; + } + /** + *
+     * TTL is the server chosen lease time-to-live in seconds.
+     * 
+ * + * int64 TTL = 3; + * @return This builder for chaining. + */ + public Builder clearTTL() { + + tTL_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 4; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 4; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 4; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 4; + * @return This builder for chaining. + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 4; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = 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:etcdserverpb.LeaseGrantResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseGrantResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseGrantResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseGrantResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponseOrBuilder.java new file mode 100644 index 0000000..897cd56 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrantResponseOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseGrantResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseGrantResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * ID is the lease ID for the granted lease.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + long getID(); + + /** + *
+   * TTL is the server chosen lease time-to-live in seconds.
+   * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + long getTTL(); + + /** + * string error = 4; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 4; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrpc.java new file mode 100644 index 0000000..9dbda17 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseGrpc.java @@ -0,0 +1,533 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.39.0)", + comments = "Source: rpc.proto") +public final class LeaseGrpc { + + private LeaseGrpc() {} + + public static final String SERVICE_NAME = "etcdserverpb.Lease"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getLeaseGrantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LeaseGrant", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLeaseGrantMethod() { + io.grpc.MethodDescriptor getLeaseGrantMethod; + if ((getLeaseGrantMethod = LeaseGrpc.getLeaseGrantMethod) == null) { + synchronized (LeaseGrpc.class) { + if ((getLeaseGrantMethod = LeaseGrpc.getLeaseGrantMethod) == null) { + LeaseGrpc.getLeaseGrantMethod = getLeaseGrantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseGrant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse.getDefaultInstance())) + .setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseGrant")) + .build(); + } + } + } + return getLeaseGrantMethod; + } + + private static volatile io.grpc.MethodDescriptor getLeaseRevokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LeaseRevoke", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLeaseRevokeMethod() { + io.grpc.MethodDescriptor getLeaseRevokeMethod; + if ((getLeaseRevokeMethod = LeaseGrpc.getLeaseRevokeMethod) == null) { + synchronized (LeaseGrpc.class) { + if ((getLeaseRevokeMethod = LeaseGrpc.getLeaseRevokeMethod) == null) { + LeaseGrpc.getLeaseRevokeMethod = getLeaseRevokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseRevoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.getDefaultInstance())) + .setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseRevoke")) + .build(); + } + } + } + return getLeaseRevokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getLeaseKeepAliveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LeaseKeepAlive", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getLeaseKeepAliveMethod() { + io.grpc.MethodDescriptor getLeaseKeepAliveMethod; + if ((getLeaseKeepAliveMethod = LeaseGrpc.getLeaseKeepAliveMethod) == null) { + synchronized (LeaseGrpc.class) { + if ((getLeaseKeepAliveMethod = LeaseGrpc.getLeaseKeepAliveMethod) == null) { + LeaseGrpc.getLeaseKeepAliveMethod = getLeaseKeepAliveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseKeepAlive")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.getDefaultInstance())) + .setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseKeepAlive")) + .build(); + } + } + } + return getLeaseKeepAliveMethod; + } + + private static volatile io.grpc.MethodDescriptor getLeaseTimeToLiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LeaseTimeToLive", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLeaseTimeToLiveMethod() { + io.grpc.MethodDescriptor getLeaseTimeToLiveMethod; + if ((getLeaseTimeToLiveMethod = LeaseGrpc.getLeaseTimeToLiveMethod) == null) { + synchronized (LeaseGrpc.class) { + if ((getLeaseTimeToLiveMethod = LeaseGrpc.getLeaseTimeToLiveMethod) == null) { + LeaseGrpc.getLeaseTimeToLiveMethod = getLeaseTimeToLiveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseTimeToLive")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.getDefaultInstance())) + .setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseTimeToLive")) + .build(); + } + } + } + return getLeaseTimeToLiveMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static LeaseStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LeaseStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LeaseStub(channel, callOptions); + } + }; + return LeaseStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LeaseBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LeaseBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LeaseBlockingStub(channel, callOptions); + } + }; + return LeaseBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static LeaseFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LeaseFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LeaseFutureStub(channel, callOptions); + } + }; + return LeaseFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class LeaseImplBase implements io.grpc.BindableService { + + /** + *
+     * LeaseGrant creates a lease which expires if the server does not receive a keepAlive
+     * within a given time to live period. All keys attached to the lease will be expired and
+     * deleted if the lease expires. Each expired key generates a delete event in the event history.
+     * 
+ */ + public void leaseGrant(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLeaseGrantMethod(), responseObserver); + } + + /** + *
+     * LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
+     * 
+ */ + public void leaseRevoke(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLeaseRevokeMethod(), responseObserver); + } + + /** + *
+     * LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
+     * to the server and streaming keep alive responses from the server to the client.
+     * 
+ */ + public io.grpc.stub.StreamObserver leaseKeepAlive( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getLeaseKeepAliveMethod(), responseObserver); + } + + /** + *
+     * LeaseTimeToLive retrieves lease information.
+     * 
+ */ + public void leaseTimeToLive(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLeaseTimeToLiveMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getLeaseGrantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse>( + this, METHODID_LEASE_GRANT))) + .addMethod( + getLeaseRevokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse>( + this, METHODID_LEASE_REVOKE))) + .addMethod( + getLeaseKeepAliveMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse>( + this, METHODID_LEASE_KEEP_ALIVE))) + .addMethod( + getLeaseTimeToLiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse>( + this, METHODID_LEASE_TIME_TO_LIVE))) + .build(); + } + } + + /** + */ + public static final class LeaseStub extends io.grpc.stub.AbstractAsyncStub { + private LeaseStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LeaseStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LeaseStub(channel, callOptions); + } + + /** + *
+     * LeaseGrant creates a lease which expires if the server does not receive a keepAlive
+     * within a given time to live period. All keys attached to the lease will be expired and
+     * deleted if the lease expires. Each expired key generates a delete event in the event history.
+     * 
+ */ + public void leaseGrant(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLeaseGrantMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
+     * 
+ */ + public void leaseRevoke(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLeaseRevokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
+     * to the server and streaming keep alive responses from the server to the client.
+     * 
+ */ + public io.grpc.stub.StreamObserver leaseKeepAlive( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getLeaseKeepAliveMethod(), getCallOptions()), responseObserver); + } + + /** + *
+     * LeaseTimeToLive retrieves lease information.
+     * 
+ */ + public void leaseTimeToLive(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLeaseTimeToLiveMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class LeaseBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private LeaseBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LeaseBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LeaseBlockingStub(channel, callOptions); + } + + /** + *
+     * LeaseGrant creates a lease which expires if the server does not receive a keepAlive
+     * within a given time to live period. All keys attached to the lease will be expired and
+     * deleted if the lease expires. Each expired key generates a delete event in the event history.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse leaseGrant(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLeaseGrantMethod(), getCallOptions(), request); + } + + /** + *
+     * LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse leaseRevoke(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLeaseRevokeMethod(), getCallOptions(), request); + } + + /** + *
+     * LeaseTimeToLive retrieves lease information.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse leaseTimeToLive(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLeaseTimeToLiveMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class LeaseFutureStub extends io.grpc.stub.AbstractFutureStub { + private LeaseFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LeaseFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LeaseFutureStub(channel, callOptions); + } + + /** + *
+     * LeaseGrant creates a lease which expires if the server does not receive a keepAlive
+     * within a given time to live period. All keys attached to the lease will be expired and
+     * deleted if the lease expires. Each expired key generates a delete event in the event history.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture leaseGrant( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLeaseGrantMethod(), getCallOptions()), request); + } + + /** + *
+     * LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture leaseRevoke( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLeaseRevokeMethod(), getCallOptions()), request); + } + + /** + *
+     * LeaseTimeToLive retrieves lease information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture leaseTimeToLive( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLeaseTimeToLiveMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LEASE_GRANT = 0; + private static final int METHODID_LEASE_REVOKE = 1; + private static final int METHODID_LEASE_TIME_TO_LIVE = 2; + private static final int METHODID_LEASE_KEEP_ALIVE = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final LeaseImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LeaseImplBase 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_LEASE_GRANT: + serviceImpl.leaseGrant((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LEASE_REVOKE: + serviceImpl.leaseRevoke((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LEASE_TIME_TO_LIVE: + serviceImpl.leaseTimeToLive((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest) 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) { + case METHODID_LEASE_KEEP_ALIVE: + return (io.grpc.stub.StreamObserver) serviceImpl.leaseKeepAlive( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class LeaseBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LeaseBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Lease"); + } + } + + private static final class LeaseFileDescriptorSupplier + extends LeaseBaseDescriptorSupplier { + LeaseFileDescriptorSupplier() {} + } + + private static final class LeaseMethodDescriptorSupplier + extends LeaseBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LeaseMethodDescriptorSupplier(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 (LeaseGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LeaseFileDescriptorSupplier()) + .addMethod(getLeaseGrantMethod()) + .addMethod(getLeaseRevokeMethod()) + .addMethod(getLeaseKeepAliveMethod()) + .addMethod(getLeaseTimeToLiveMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequest.java new file mode 100644 index 0000000..c53335d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequest.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseKeepAliveRequest} + */ +public final class LeaseKeepAliveRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseKeepAliveRequest) + LeaseKeepAliveRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseKeepAliveRequest.newBuilder() to construct. + private LeaseKeepAliveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseKeepAliveRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseKeepAliveRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseKeepAliveRequest( + 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 8: { + + iD_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long iD_; + /** + *
+   * ID is the lease ID for the lease to keep alive.
+   * 
+ * + * int64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (iD_ != 0L) { + output.writeInt64(1, iD_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, iD_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest) obj; + + if (getID() + != other.getID()) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseKeepAliveRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseKeepAliveRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.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(); + iD_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest(this); + result.iD_ = iD_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest.getDefaultInstance()) return this; + if (other.getID() != 0L) { + setID(other.getID()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long iD_ ; + /** + *
+     * ID is the lease ID for the lease to keep alive.
+     * 
+ * + * int64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the lease ID for the lease to keep alive.
+     * 
+ * + * int64 ID = 1; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the lease ID for the lease to keep alive.
+     * 
+ * + * int64 ID = 1; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseKeepAliveRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseKeepAliveRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseKeepAliveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseKeepAliveRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequestOrBuilder.java new file mode 100644 index 0000000..6e3171d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseKeepAliveRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseKeepAliveRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * ID is the lease ID for the lease to keep alive.
+   * 
+ * + * int64 ID = 1; + * @return The iD. + */ + long getID(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponse.java new file mode 100644 index 0000000..05abc09 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponse.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseKeepAliveResponse} + */ +public final class LeaseKeepAliveResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseKeepAliveResponse) + LeaseKeepAliveResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseKeepAliveResponse.newBuilder() to construct. + private LeaseKeepAliveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseKeepAliveResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseKeepAliveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseKeepAliveResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + iD_ = input.readInt64(); + break; + } + case 24: { + + tTL_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ID_FIELD_NUMBER = 2; + private long iD_; + /** + *
+   * ID is the lease ID from the keep alive request.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + public static final int TTL_FIELD_NUMBER = 3; + private long tTL_; + /** + *
+   * TTL is the new time-to-live for the lease.
+   * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (iD_ != 0L) { + output.writeInt64(2, iD_); + } + if (tTL_ != 0L) { + output.writeInt64(3, tTL_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, iD_); + } + if (tTL_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, tTL_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getID() + != other.getID()) return false; + if (getTTL() + != other.getTTL()) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTTL()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseKeepAliveResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseKeepAliveResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + iD_ = 0L; + + tTL_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.iD_ = iD_; + result.tTL_ = tTL_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getID() != 0L) { + setID(other.getID()); + } + if (other.getTTL() != 0L) { + setTTL(other.getTTL()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long iD_ ; + /** + *
+     * ID is the lease ID from the keep alive request.
+     * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the lease ID from the keep alive request.
+     * 
+ * + * int64 ID = 2; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the lease ID from the keep alive request.
+     * 
+ * + * int64 ID = 2; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + + private long tTL_ ; + /** + *
+     * TTL is the new time-to-live for the lease.
+     * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + /** + *
+     * TTL is the new time-to-live for the lease.
+     * 
+ * + * int64 TTL = 3; + * @param value The tTL to set. + * @return This builder for chaining. + */ + public Builder setTTL(long value) { + + tTL_ = value; + onChanged(); + return this; + } + /** + *
+     * TTL is the new time-to-live for the lease.
+     * 
+ * + * int64 TTL = 3; + * @return This builder for chaining. + */ + public Builder clearTTL() { + + tTL_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseKeepAliveResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseKeepAliveResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseKeepAliveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseKeepAliveResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponseOrBuilder.java new file mode 100644 index 0000000..046d3a7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseKeepAliveResponseOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseKeepAliveResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseKeepAliveResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * ID is the lease ID from the keep alive request.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + long getID(); + + /** + *
+   * TTL is the new time-to-live for the lease.
+   * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + long getTTL(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequest.java new file mode 100644 index 0000000..47dc989 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequest.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseRevokeRequest} + */ +public final class LeaseRevokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseRevokeRequest) + LeaseRevokeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseRevokeRequest.newBuilder() to construct. + private LeaseRevokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseRevokeRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseRevokeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseRevokeRequest( + 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 8: { + + iD_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long iD_; + /** + *
+   * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
+   * 
+ * + * int64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (iD_ != 0L) { + output.writeInt64(1, iD_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, iD_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest) obj; + + if (getID() + != other.getID()) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseRevokeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseRevokeRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.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(); + iD_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest(this); + result.iD_ = iD_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest.getDefaultInstance()) return this; + if (other.getID() != 0L) { + setID(other.getID()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long iD_ ; + /** + *
+     * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
+     * 
+ * + * int64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
+     * 
+ * + * int64 ID = 1; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
+     * 
+ * + * int64 ID = 1; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseRevokeRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseRevokeRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseRevokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseRevokeRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequestOrBuilder.java new file mode 100644 index 0000000..baa4a36 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseRevokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseRevokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
+   * 
+ * + * int64 ID = 1; + * @return The iD. + */ + long getID(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponse.java new file mode 100644 index 0000000..0c6b0de --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseRevokeResponse} + */ +public final class LeaseRevokeResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseRevokeResponse) + LeaseRevokeResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseRevokeResponse.newBuilder() to construct. + private LeaseRevokeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseRevokeResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseRevokeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseRevokeResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseRevokeResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseRevokeResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseRevokeResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseRevokeResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseRevokeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseRevokeResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponseOrBuilder.java new file mode 100644 index 0000000..fd17b50 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseRevokeResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseRevokeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseRevokeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseService.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseService.java new file mode 100644 index 0000000..c1755d8 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseService.java @@ -0,0 +1,50 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import io.reactivex.rxjava3.core.Single; +import io.reactivex.rxjava3.core.Flowable; + +@javax.annotation.Generated( +value = "by grpc-osgi-generator (REACTIVEX) - A protoc plugin for ECF's grpc remote services distribution provider at https://github.com/ECF/grpc-RemoteServiceSProvider ", +comments = "Source: rpc.proto. ") +public interface LeaseService { + + + /** + *
+     *  LeaseGrant creates a lease which expires if the server does not receive a keepAlive
+     *  within a given time to live period. All keys attached to the lease will be expired and
+     *  deleted if the lease expires. Each expired key generates a delete event in the event history.
+     * 
+ */ + default Single leaseGrant(Single requests) { + return null; + } + + /** + *
+     *  LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
+     * 
+ */ + default Single leaseRevoke(Single requests) { + return null; + } + + /** + *
+     *  LeaseTimeToLive retrieves lease information.
+     * 
+ */ + default Single leaseTimeToLive(Single requests) { + return null; + } + + /** + *
+     *  LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
+     *  to the server and streaming keep alive responses from the server to the client.
+     * 
+ */ + default Flowable leaseKeepAlive(Flowable requests) { + return null; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequest.java new file mode 100644 index 0000000..f6bd698 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseTimeToLiveRequest} + */ +public final class LeaseTimeToLiveRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseTimeToLiveRequest) + LeaseTimeToLiveRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseTimeToLiveRequest.newBuilder() to construct. + private LeaseTimeToLiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseTimeToLiveRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseTimeToLiveRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseTimeToLiveRequest( + 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 8: { + + iD_ = input.readInt64(); + break; + } + case 16: { + + keys_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long iD_; + /** + *
+   * ID is the lease ID for the lease.
+   * 
+ * + * int64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + public static final int KEYS_FIELD_NUMBER = 2; + private boolean keys_; + /** + *
+   * keys is true to query all the keys attached to this lease.
+   * 
+ * + * bool keys = 2; + * @return The keys. + */ + @java.lang.Override + public boolean getKeys() { + return keys_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (iD_ != 0L) { + output.writeInt64(1, iD_); + } + if (keys_ != false) { + output.writeBool(2, keys_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, iD_); + } + if (keys_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, keys_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest) obj; + + if (getID() + != other.getID()) return false; + if (getKeys() + != other.getKeys()) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKeys()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseTimeToLiveRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseTimeToLiveRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.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(); + iD_ = 0L; + + keys_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest(this); + result.iD_ = iD_; + result.keys_ = keys_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest.getDefaultInstance()) return this; + if (other.getID() != 0L) { + setID(other.getID()); + } + if (other.getKeys() != false) { + setKeys(other.getKeys()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long iD_ ; + /** + *
+     * ID is the lease ID for the lease.
+     * 
+ * + * int64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the lease ID for the lease.
+     * 
+ * + * int64 ID = 1; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the lease ID for the lease.
+     * 
+ * + * int64 ID = 1; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + + private boolean keys_ ; + /** + *
+     * keys is true to query all the keys attached to this lease.
+     * 
+ * + * bool keys = 2; + * @return The keys. + */ + @java.lang.Override + public boolean getKeys() { + return keys_; + } + /** + *
+     * keys is true to query all the keys attached to this lease.
+     * 
+ * + * bool keys = 2; + * @param value The keys to set. + * @return This builder for chaining. + */ + public Builder setKeys(boolean value) { + + keys_ = value; + onChanged(); + return this; + } + /** + *
+     * keys is true to query all the keys attached to this lease.
+     * 
+ * + * bool keys = 2; + * @return This builder for chaining. + */ + public Builder clearKeys() { + + keys_ = 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:etcdserverpb.LeaseTimeToLiveRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseTimeToLiveRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseTimeToLiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseTimeToLiveRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequestOrBuilder.java new file mode 100644 index 0000000..1d443bb --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseTimeToLiveRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseTimeToLiveRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * ID is the lease ID for the lease.
+   * 
+ * + * int64 ID = 1; + * @return The iD. + */ + long getID(); + + /** + *
+   * keys is true to query all the keys attached to this lease.
+   * 
+ * + * bool keys = 2; + * @return The keys. + */ + boolean getKeys(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponse.java new file mode 100644 index 0000000..0f8a0e0 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponse.java @@ -0,0 +1,1052 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.LeaseTimeToLiveResponse} + */ +public final class LeaseTimeToLiveResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseTimeToLiveResponse) + LeaseTimeToLiveResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use LeaseTimeToLiveResponse.newBuilder() to construct. + private LeaseTimeToLiveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseTimeToLiveResponse() { + keys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LeaseTimeToLiveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseTimeToLiveResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + iD_ = input.readInt64(); + break; + } + case 24: { + + tTL_ = input.readInt64(); + break; + } + case 32: { + + grantedTTL_ = input.readInt64(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ID_FIELD_NUMBER = 2; + private long iD_; + /** + *
+   * ID is the lease ID from the keep alive request.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + public static final int TTL_FIELD_NUMBER = 3; + private long tTL_; + /** + *
+   * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
+   * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + + public static final int GRANTEDTTL_FIELD_NUMBER = 4; + private long grantedTTL_; + /** + *
+   * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
+   * 
+ * + * int64 grantedTTL = 4; + * @return The grantedTTL. + */ + @java.lang.Override + public long getGrantedTTL() { + return grantedTTL_; + } + + public static final int KEYS_FIELD_NUMBER = 5; + private java.util.List keys_; + /** + *
+   * Keys is the list of keys attached to this lease.
+   * 
+ * + * repeated bytes keys = 5; + * @return A list containing the keys. + */ + @java.lang.Override + public java.util.List + getKeysList() { + return keys_; + } + /** + *
+   * Keys is the list of keys attached to this lease.
+   * 
+ * + * repeated bytes keys = 5; + * @return The count of keys. + */ + public int getKeysCount() { + return keys_.size(); + } + /** + *
+   * Keys is the list of keys attached to this lease.
+   * 
+ * + * repeated bytes keys = 5; + * @param index The index of the element to return. + * @return The keys at the given index. + */ + public com.google.protobuf.ByteString getKeys(int index) { + return keys_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (iD_ != 0L) { + output.writeInt64(2, iD_); + } + if (tTL_ != 0L) { + output.writeInt64(3, tTL_); + } + if (grantedTTL_ != 0L) { + output.writeInt64(4, grantedTTL_); + } + for (int i = 0; i < keys_.size(); i++) { + output.writeBytes(5, keys_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, iD_); + } + if (tTL_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, tTL_); + } + if (grantedTTL_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, grantedTTL_); + } + { + int dataSize = 0; + for (int i = 0; i < keys_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(keys_.get(i)); + } + size += dataSize; + size += 1 * getKeysList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getID() + != other.getID()) return false; + if (getTTL() + != other.getTTL()) return false; + if (getGrantedTTL() + != other.getGrantedTTL()) return false; + if (!getKeysList() + .equals(other.getKeysList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTTL()); + hash = (37 * hash) + GRANTEDTTL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGrantedTTL()); + if (getKeysCount() > 0) { + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.LeaseTimeToLiveResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseTimeToLiveResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + iD_ = 0L; + + tTL_ = 0L; + + grantedTTL_ = 0L; + + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.iD_ = iD_; + result.tTL_ = tTL_; + result.grantedTTL_ = grantedTTL_; + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getID() != 0L) { + setID(other.getID()); + } + if (other.getTTL() != 0L) { + setTTL(other.getTTL()); + } + if (other.getGrantedTTL() != 0L) { + setGrantedTTL(other.getGrantedTTL()); + } + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long iD_ ; + /** + *
+     * ID is the lease ID from the keep alive request.
+     * 
+ * + * int64 ID = 2; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the lease ID from the keep alive request.
+     * 
+ * + * int64 ID = 2; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the lease ID from the keep alive request.
+     * 
+ * + * int64 ID = 2; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + + private long tTL_ ; + /** + *
+     * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
+     * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + @java.lang.Override + public long getTTL() { + return tTL_; + } + /** + *
+     * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
+     * 
+ * + * int64 TTL = 3; + * @param value The tTL to set. + * @return This builder for chaining. + */ + public Builder setTTL(long value) { + + tTL_ = value; + onChanged(); + return this; + } + /** + *
+     * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
+     * 
+ * + * int64 TTL = 3; + * @return This builder for chaining. + */ + public Builder clearTTL() { + + tTL_ = 0L; + onChanged(); + return this; + } + + private long grantedTTL_ ; + /** + *
+     * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
+     * 
+ * + * int64 grantedTTL = 4; + * @return The grantedTTL. + */ + @java.lang.Override + public long getGrantedTTL() { + return grantedTTL_; + } + /** + *
+     * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
+     * 
+ * + * int64 grantedTTL = 4; + * @param value The grantedTTL to set. + * @return This builder for chaining. + */ + public Builder setGrantedTTL(long value) { + + grantedTTL_ = value; + onChanged(); + return this; + } + /** + *
+     * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
+     * 
+ * + * int64 grantedTTL = 4; + * @return This builder for chaining. + */ + public Builder clearGrantedTTL() { + + grantedTTL_ = 0L; + onChanged(); + return this; + } + + private java.util.List keys_ = java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(keys_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @return A list containing the keys. + */ + public java.util.List + getKeysList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(keys_) : keys_; + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @return The count of keys. + */ + public int getKeysCount() { + return keys_.size(); + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @param index The index of the element to return. + * @return The keys at the given index. + */ + public com.google.protobuf.ByteString getKeys(int index) { + return keys_.get(index); + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @param index The index to set the value at. + * @param value The keys to set. + * @return This builder for chaining. + */ + public Builder setKeys( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @param value The keys to add. + * @return This builder for chaining. + */ + public Builder addKeys(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + return this; + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @param values The keys to add. + * @return This builder for chaining. + */ + public Builder addAllKeys( + java.lang.Iterable values) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); + onChanged(); + return this; + } + /** + *
+     * Keys is the list of keys attached to this lease.
+     * 
+ * + * repeated bytes keys = 5; + * @return This builder for chaining. + */ + public Builder clearKeys() { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseTimeToLiveResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseTimeToLiveResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseTimeToLiveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseTimeToLiveResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponseOrBuilder.java new file mode 100644 index 0000000..8356c91 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/LeaseTimeToLiveResponseOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface LeaseTimeToLiveResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseTimeToLiveResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * ID is the lease ID from the keep alive request.
+   * 
+ * + * int64 ID = 2; + * @return The iD. + */ + long getID(); + + /** + *
+   * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
+   * 
+ * + * int64 TTL = 3; + * @return The tTL. + */ + long getTTL(); + + /** + *
+   * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
+   * 
+ * + * int64 grantedTTL = 4; + * @return The grantedTTL. + */ + long getGrantedTTL(); + + /** + *
+   * Keys is the list of keys attached to this lease.
+   * 
+ * + * repeated bytes keys = 5; + * @return A list containing the keys. + */ + java.util.List getKeysList(); + /** + *
+   * Keys is the list of keys attached to this lease.
+   * 
+ * + * repeated bytes keys = 5; + * @return The count of keys. + */ + int getKeysCount(); + /** + *
+   * Keys is the list of keys attached to this lease.
+   * 
+ * + * repeated bytes keys = 5; + * @param index The index of the element to return. + * @return The keys at the given index. + */ + com.google.protobuf.ByteString getKeys(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceGrpc.java new file mode 100644 index 0000000..91c9de2 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceGrpc.java @@ -0,0 +1,801 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.39.0)", + comments = "Source: rpc.proto") +public final class MaintenanceGrpc { + + private MaintenanceGrpc() {} + + public static final String SERVICE_NAME = "etcdserverpb.Maintenance"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getAlarmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Alarm", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAlarmMethod() { + io.grpc.MethodDescriptor getAlarmMethod; + if ((getAlarmMethod = MaintenanceGrpc.getAlarmMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getAlarmMethod = MaintenanceGrpc.getAlarmMethod) == null) { + MaintenanceGrpc.getAlarmMethod = getAlarmMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Alarm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Alarm")) + .build(); + } + } + } + return getAlarmMethod; + } + + private static volatile io.grpc.MethodDescriptor getStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Status", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStatusMethod() { + io.grpc.MethodDescriptor getStatusMethod; + if ((getStatusMethod = MaintenanceGrpc.getStatusMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getStatusMethod = MaintenanceGrpc.getStatusMethod) == null) { + MaintenanceGrpc.getStatusMethod = getStatusMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Status")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Status")) + .build(); + } + } + } + return getStatusMethod; + } + + private static volatile io.grpc.MethodDescriptor getDefragmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Defragment", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDefragmentMethod() { + io.grpc.MethodDescriptor getDefragmentMethod; + if ((getDefragmentMethod = MaintenanceGrpc.getDefragmentMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getDefragmentMethod = MaintenanceGrpc.getDefragmentMethod) == null) { + MaintenanceGrpc.getDefragmentMethod = getDefragmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Defragment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Defragment")) + .build(); + } + } + } + return getDefragmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getHashMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Hash", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getHashMethod() { + io.grpc.MethodDescriptor getHashMethod; + if ((getHashMethod = MaintenanceGrpc.getHashMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getHashMethod = MaintenanceGrpc.getHashMethod) == null) { + MaintenanceGrpc.getHashMethod = getHashMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Hash")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Hash")) + .build(); + } + } + } + return getHashMethod; + } + + private static volatile io.grpc.MethodDescriptor getHashKVMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "HashKV", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getHashKVMethod() { + io.grpc.MethodDescriptor getHashKVMethod; + if ((getHashKVMethod = MaintenanceGrpc.getHashKVMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getHashKVMethod = MaintenanceGrpc.getHashKVMethod) == null) { + MaintenanceGrpc.getHashKVMethod = getHashKVMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "HashKV")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("HashKV")) + .build(); + } + } + } + return getHashKVMethod; + } + + private static volatile io.grpc.MethodDescriptor getSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Snapshot", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getSnapshotMethod() { + io.grpc.MethodDescriptor getSnapshotMethod; + if ((getSnapshotMethod = MaintenanceGrpc.getSnapshotMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getSnapshotMethod = MaintenanceGrpc.getSnapshotMethod) == null) { + MaintenanceGrpc.getSnapshotMethod = getSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Snapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Snapshot")) + .build(); + } + } + } + return getSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor getMoveLeaderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveLeader", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMoveLeaderMethod() { + io.grpc.MethodDescriptor getMoveLeaderMethod; + if ((getMoveLeaderMethod = MaintenanceGrpc.getMoveLeaderMethod) == null) { + synchronized (MaintenanceGrpc.class) { + if ((getMoveLeaderMethod = MaintenanceGrpc.getMoveLeaderMethod) == null) { + MaintenanceGrpc.getMoveLeaderMethod = getMoveLeaderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveLeader")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.getDefaultInstance())) + .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("MoveLeader")) + .build(); + } + } + } + return getMoveLeaderMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MaintenanceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MaintenanceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MaintenanceStub(channel, callOptions); + } + }; + return MaintenanceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MaintenanceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MaintenanceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MaintenanceBlockingStub(channel, callOptions); + } + }; + return MaintenanceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MaintenanceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MaintenanceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MaintenanceFutureStub(channel, callOptions); + } + }; + return MaintenanceFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class MaintenanceImplBase implements io.grpc.BindableService { + + /** + *
+     * Alarm activates, deactivates, and queries alarms regarding cluster health.
+     * 
+ */ + public void alarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAlarmMethod(), responseObserver); + } + + /** + *
+     * Status gets the status of the member.
+     * 
+ */ + public void status(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatusMethod(), responseObserver); + } + + /** + *
+     * Defragment defragments a member's backend database to recover storage space.
+     * 
+ */ + public void defragment(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDefragmentMethod(), responseObserver); + } + + /** + *
+     * Hash returns the hash of the local KV state for consistency checking purpose.
+     * This is designed for testing; do not use this in production when there
+     * are ongoing transactions.
+     * 
+ */ + public void hash(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHashMethod(), responseObserver); + } + + /** + *
+     * HashKV computes the hash of all MVCC keys up to a given revision.
+     * 
+ */ + public void hashKV(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHashKVMethod(), responseObserver); + } + + /** + *
+     * Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+     * 
+ */ + public void snapshot(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSnapshotMethod(), responseObserver); + } + + /** + *
+     * MoveLeader requests current leader node to transfer its leadership to transferee.
+     * 
+ */ + public void moveLeader(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveLeaderMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getAlarmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse>( + this, METHODID_ALARM))) + .addMethod( + getStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse>( + this, METHODID_STATUS))) + .addMethod( + getDefragmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse>( + this, METHODID_DEFRAGMENT))) + .addMethod( + getHashMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse>( + this, METHODID_HASH))) + .addMethod( + getHashKVMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse>( + this, METHODID_HASH_KV))) + .addMethod( + getSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse>( + this, METHODID_SNAPSHOT))) + .addMethod( + getMoveLeaderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse>( + this, METHODID_MOVE_LEADER))) + .build(); + } + } + + /** + */ + public static final class MaintenanceStub extends io.grpc.stub.AbstractAsyncStub { + private MaintenanceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MaintenanceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MaintenanceStub(channel, callOptions); + } + + /** + *
+     * Alarm activates, deactivates, and queries alarms regarding cluster health.
+     * 
+ */ + public void alarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAlarmMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Status gets the status of the member.
+     * 
+ */ + public void status(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStatusMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Defragment defragments a member's backend database to recover storage space.
+     * 
+ */ + public void defragment(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDefragmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Hash returns the hash of the local KV state for consistency checking purpose.
+     * This is designed for testing; do not use this in production when there
+     * are ongoing transactions.
+     * 
+ */ + public void hash(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getHashMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * HashKV computes the hash of all MVCC keys up to a given revision.
+     * 
+ */ + public void hashKV(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getHashKVMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+     * 
+ */ + public void snapshot(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getSnapshotMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * MoveLeader requests current leader node to transfer its leadership to transferee.
+     * 
+ */ + public void moveLeader(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveLeaderMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class MaintenanceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private MaintenanceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MaintenanceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MaintenanceBlockingStub(channel, callOptions); + } + + /** + *
+     * Alarm activates, deactivates, and queries alarms regarding cluster health.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse alarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAlarmMethod(), getCallOptions(), request); + } + + /** + *
+     * Status gets the status of the member.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse status(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStatusMethod(), getCallOptions(), request); + } + + /** + *
+     * Defragment defragments a member's backend database to recover storage space.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse defragment(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDefragmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Hash returns the hash of the local KV state for consistency checking purpose.
+     * This is designed for testing; do not use this in production when there
+     * are ongoing transactions.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse hash(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getHashMethod(), getCallOptions(), request); + } + + /** + *
+     * HashKV computes the hash of all MVCC keys up to a given revision.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse hashKV(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getHashKVMethod(), getCallOptions(), request); + } + + /** + *
+     * Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+     * 
+ */ + public java.util.Iterator snapshot( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getSnapshotMethod(), getCallOptions(), request); + } + + /** + *
+     * MoveLeader requests current leader node to transfer its leadership to transferee.
+     * 
+ */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse moveLeader(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMoveLeaderMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class MaintenanceFutureStub extends io.grpc.stub.AbstractFutureStub { + private MaintenanceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MaintenanceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MaintenanceFutureStub(channel, callOptions); + } + + /** + *
+     * Alarm activates, deactivates, and queries alarms regarding cluster health.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture alarm( + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAlarmMethod(), getCallOptions()), request); + } + + /** + *
+     * Status gets the status of the member.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture status( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStatusMethod(), getCallOptions()), request); + } + + /** + *
+     * Defragment defragments a member's backend database to recover storage space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture defragment( + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDefragmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Hash returns the hash of the local KV state for consistency checking purpose.
+     * This is designed for testing; do not use this in production when there
+     * are ongoing transactions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture hash( + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getHashMethod(), getCallOptions()), request); + } + + /** + *
+     * HashKV computes the hash of all MVCC keys up to a given revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture hashKV( + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getHashKVMethod(), getCallOptions()), request); + } + + /** + *
+     * MoveLeader requests current leader node to transfer its leadership to transferee.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture moveLeader( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveLeaderMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_ALARM = 0; + private static final int METHODID_STATUS = 1; + private static final int METHODID_DEFRAGMENT = 2; + private static final int METHODID_HASH = 3; + private static final int METHODID_HASH_KV = 4; + private static final int METHODID_SNAPSHOT = 5; + private static final int METHODID_MOVE_LEADER = 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 MaintenanceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MaintenanceImplBase 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_ALARM: + serviceImpl.alarm((org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STATUS: + serviceImpl.status((org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEFRAGMENT: + serviceImpl.defragment((org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_HASH: + serviceImpl.hash((org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_HASH_KV: + serviceImpl.hashKV((org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SNAPSHOT: + serviceImpl.snapshot((org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MOVE_LEADER: + serviceImpl.moveLeader((org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest) 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 MaintenanceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MaintenanceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Maintenance"); + } + } + + private static final class MaintenanceFileDescriptorSupplier + extends MaintenanceBaseDescriptorSupplier { + MaintenanceFileDescriptorSupplier() {} + } + + private static final class MaintenanceMethodDescriptorSupplier + extends MaintenanceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MaintenanceMethodDescriptorSupplier(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 (MaintenanceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MaintenanceFileDescriptorSupplier()) + .addMethod(getAlarmMethod()) + .addMethod(getStatusMethod()) + .addMethod(getDefragmentMethod()) + .addMethod(getHashMethod()) + .addMethod(getHashKVMethod()) + .addMethod(getSnapshotMethod()) + .addMethod(getMoveLeaderMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceService.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceService.java new file mode 100644 index 0000000..b3afda4 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MaintenanceService.java @@ -0,0 +1,76 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import io.reactivex.rxjava3.core.Single; +import io.reactivex.rxjava3.core.Flowable; + +@javax.annotation.Generated( +value = "by grpc-osgi-generator (REACTIVEX) - A protoc plugin for ECF's grpc remote services distribution provider at https://github.com/ECF/grpc-RemoteServiceSProvider ", +comments = "Source: rpc.proto. ") +public interface MaintenanceService { + + + /** + *
+     *  Alarm activates, deactivates, and queries alarms regarding cluster health.
+     * 
+ */ + default Single alarm(Single requests) { + return null; + } + + /** + *
+     *  Status gets the status of the member.
+     * 
+ */ + default Single status(Single requests) { + return null; + } + + /** + *
+     *  Defragment defragments a member's backend database to recover storage space.
+     * 
+ */ + default Single defragment(Single requests) { + return null; + } + + /** + *
+     *  Hash returns the hash of the local KV state for consistency checking purpose.
+     *  This is designed for testing; do not use this in production when there
+     *  are ongoing transactions.
+     * 
+ */ + default Single hash(Single requests) { + return null; + } + + /** + *
+     *  HashKV computes the hash of all MVCC keys up to a given revision.
+     * 
+ */ + default Single hashKV(Single requests) { + return null; + } + + /** + *
+     *  MoveLeader requests current leader node to transfer its leadership to transferee.
+     * 
+ */ + default Single moveLeader(Single requests) { + return null; + } + + /** + *
+     *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+     * 
+ */ + default Flowable snapshot(Single requests) { + return null; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Member.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Member.java new file mode 100644 index 0000000..6b308df --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Member.java @@ -0,0 +1,1157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.Member} + */ +public final class Member extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.Member) + MemberOrBuilder { +private static final long serialVersionUID = 0L; + // Use Member.newBuilder() to construct. + private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Member() { + name_ = ""; + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Member(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Member( + 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 8: { + + iD_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + peerURLs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + peerURLs_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + clientURLs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + clientURLs_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + peerURLs_ = peerURLs_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + clientURLs_ = clientURLs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.class, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long iD_; + /** + *
+   * ID is the member ID for this member.
+   * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+   * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+   * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERURLS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList peerURLs_; + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @return A list containing the peerURLs. + */ + public com.google.protobuf.ProtocolStringList + getPeerURLsList() { + return peerURLs_; + } + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @return The count of peerURLs. + */ + public int getPeerURLsCount() { + return peerURLs_.size(); + } + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + public java.lang.String getPeerURLs(int index) { + return peerURLs_.get(index); + } + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + public com.google.protobuf.ByteString + getPeerURLsBytes(int index) { + return peerURLs_.getByteString(index); + } + + public static final int CLIENTURLS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList clientURLs_; + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @return A list containing the clientURLs. + */ + public com.google.protobuf.ProtocolStringList + getClientURLsList() { + return clientURLs_; + } + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @return The count of clientURLs. + */ + public int getClientURLsCount() { + return clientURLs_.size(); + } + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @param index The index of the element to return. + * @return The clientURLs at the given index. + */ + public java.lang.String getClientURLs(int index) { + return clientURLs_.get(index); + } + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @param index The index of the value to return. + * @return The bytes of the clientURLs at the given index. + */ + public com.google.protobuf.ByteString + getClientURLsBytes(int index) { + return clientURLs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (iD_ != 0L) { + output.writeUInt64(1, iD_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < peerURLs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peerURLs_.getRaw(i)); + } + for (int i = 0; i < clientURLs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientURLs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, iD_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + { + int dataSize = 0; + for (int i = 0; i < peerURLs_.size(); i++) { + dataSize += computeStringSizeNoTag(peerURLs_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerURLsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < clientURLs_.size(); i++) { + dataSize += computeStringSizeNoTag(clientURLs_.getRaw(i)); + } + size += dataSize; + size += 1 * getClientURLsList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.Member)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.Member other = (org.eclipse.ecf.provider.etcd3.grpc.api.Member) obj; + + if (getID() + != other.getID()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPeerURLsList() + .equals(other.getPeerURLsList())) return false; + if (!getClientURLsList() + .equals(other.getClientURLsList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getPeerURLsCount() > 0) { + hash = (37 * hash) + PEERURLS_FIELD_NUMBER; + hash = (53 * hash) + getPeerURLsList().hashCode(); + } + if (getClientURLsCount() > 0) { + hash = (37 * hash) + CLIENTURLS_FIELD_NUMBER; + hash = (53 * hash) + getClientURLsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.Member prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.Member} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.Member) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.class, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.Member.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(); + iD_ = 0L; + + name_ = ""; + + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_Member_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member build() { + org.eclipse.ecf.provider.etcd3.grpc.api.Member result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.Member result = new org.eclipse.ecf.provider.etcd3.grpc.api.Member(this); + int from_bitField0_ = bitField0_; + result.iD_ = iD_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + peerURLs_ = peerURLs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peerURLs_ = peerURLs_; + if (((bitField0_ & 0x00000002) != 0)) { + clientURLs_ = clientURLs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.clientURLs_ = clientURLs_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.Member) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.Member)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.Member other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()) return this; + if (other.getID() != 0L) { + setID(other.getID()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.peerURLs_.isEmpty()) { + if (peerURLs_.isEmpty()) { + peerURLs_ = other.peerURLs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeerURLsIsMutable(); + peerURLs_.addAll(other.peerURLs_); + } + onChanged(); + } + if (!other.clientURLs_.isEmpty()) { + if (clientURLs_.isEmpty()) { + clientURLs_ = other.clientURLs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureClientURLsIsMutable(); + clientURLs_.addAll(other.clientURLs_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.Member parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.Member) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long iD_ ; + /** + *
+     * ID is the member ID for this member.
+     * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the member ID for this member.
+     * 
+ * + * uint64 ID = 1; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the member ID for this member.
+     * 
+ * + * uint64 ID = 1; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+     * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+     * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+     * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+     * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePeerURLsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peerURLs_ = new com.google.protobuf.LazyStringArrayList(peerURLs_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @return A list containing the peerURLs. + */ + public com.google.protobuf.ProtocolStringList + getPeerURLsList() { + return peerURLs_.getUnmodifiableView(); + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @return The count of peerURLs. + */ + public int getPeerURLsCount() { + return peerURLs_.size(); + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + public java.lang.String getPeerURLs(int index) { + return peerURLs_.get(index); + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + public com.google.protobuf.ByteString + getPeerURLsBytes(int index) { + return peerURLs_.getByteString(index); + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @param index The index to set the value at. + * @param value The peerURLs to set. + * @return This builder for chaining. + */ + public Builder setPeerURLs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerURLsIsMutable(); + peerURLs_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @param value The peerURLs to add. + * @return This builder for chaining. + */ + public Builder addPeerURLs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerURLsIsMutable(); + peerURLs_.add(value); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @param values The peerURLs to add. + * @return This builder for chaining. + */ + public Builder addAllPeerURLs( + java.lang.Iterable values) { + ensurePeerURLsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, peerURLs_); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @return This builder for chaining. + */ + public Builder clearPeerURLs() { + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the member exposes to the cluster for communication.
+     * 
+ * + * repeated string peerURLs = 3; + * @param value The bytes of the peerURLs to add. + * @return This builder for chaining. + */ + public Builder addPeerURLsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerURLsIsMutable(); + peerURLs_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureClientURLsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + clientURLs_ = new com.google.protobuf.LazyStringArrayList(clientURLs_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @return A list containing the clientURLs. + */ + public com.google.protobuf.ProtocolStringList + getClientURLsList() { + return clientURLs_.getUnmodifiableView(); + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @return The count of clientURLs. + */ + public int getClientURLsCount() { + return clientURLs_.size(); + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @param index The index of the element to return. + * @return The clientURLs at the given index. + */ + public java.lang.String getClientURLs(int index) { + return clientURLs_.get(index); + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @param index The index of the value to return. + * @return The bytes of the clientURLs at the given index. + */ + public com.google.protobuf.ByteString + getClientURLsBytes(int index) { + return clientURLs_.getByteString(index); + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @param index The index to set the value at. + * @param value The clientURLs to set. + * @return This builder for chaining. + */ + public Builder setClientURLs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientURLsIsMutable(); + clientURLs_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @param value The clientURLs to add. + * @return This builder for chaining. + */ + public Builder addClientURLs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientURLsIsMutable(); + clientURLs_.add(value); + onChanged(); + return this; + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @param values The clientURLs to add. + * @return This builder for chaining. + */ + public Builder addAllClientURLs( + java.lang.Iterable values) { + ensureClientURLsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientURLs_); + onChanged(); + return this; + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @return This builder for chaining. + */ + public Builder clearClientURLs() { + clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+     * 
+ * + * repeated string clientURLs = 4; + * @param value The bytes of the clientURLs to add. + * @return This builder for chaining. + */ + public Builder addClientURLsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClientURLsIsMutable(); + clientURLs_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.Member) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.Member) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.Member DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.Member(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.Member getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Member parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Member(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 org.eclipse.ecf.provider.etcd3.grpc.api.Member getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequest.java new file mode 100644 index 0000000..097db9a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequest.java @@ -0,0 +1,666 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberAddRequest} + */ +public final class MemberAddRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberAddRequest) + MemberAddRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberAddRequest.newBuilder() to construct. + private MemberAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberAddRequest() { + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberAddRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberAddRequest( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + peerURLs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + peerURLs_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + peerURLs_ = peerURLs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.Builder.class); + } + + public static final int PEERURLS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList peerURLs_; + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @return A list containing the peerURLs. + */ + public com.google.protobuf.ProtocolStringList + getPeerURLsList() { + return peerURLs_; + } + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @return The count of peerURLs. + */ + public int getPeerURLsCount() { + return peerURLs_.size(); + } + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + public java.lang.String getPeerURLs(int index) { + return peerURLs_.get(index); + } + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + public com.google.protobuf.ByteString + getPeerURLsBytes(int index) { + return peerURLs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < peerURLs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, peerURLs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < peerURLs_.size(); i++) { + dataSize += computeStringSizeNoTag(peerURLs_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerURLsList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest) obj; + + if (!getPeerURLsList() + .equals(other.getPeerURLsList())) 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 (getPeerURLsCount() > 0) { + hash = (37 * hash) + PEERURLS_FIELD_NUMBER; + hash = (53 * hash) + getPeerURLsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberAddRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberAddRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.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(); + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + peerURLs_ = peerURLs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peerURLs_ = peerURLs_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest.getDefaultInstance()) return this; + if (!other.peerURLs_.isEmpty()) { + if (peerURLs_.isEmpty()) { + peerURLs_ = other.peerURLs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeerURLsIsMutable(); + peerURLs_.addAll(other.peerURLs_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePeerURLsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peerURLs_ = new com.google.protobuf.LazyStringArrayList(peerURLs_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @return A list containing the peerURLs. + */ + public com.google.protobuf.ProtocolStringList + getPeerURLsList() { + return peerURLs_.getUnmodifiableView(); + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @return The count of peerURLs. + */ + public int getPeerURLsCount() { + return peerURLs_.size(); + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + public java.lang.String getPeerURLs(int index) { + return peerURLs_.get(index); + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + public com.google.protobuf.ByteString + getPeerURLsBytes(int index) { + return peerURLs_.getByteString(index); + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @param index The index to set the value at. + * @param value The peerURLs to set. + * @return This builder for chaining. + */ + public Builder setPeerURLs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerURLsIsMutable(); + peerURLs_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @param value The peerURLs to add. + * @return This builder for chaining. + */ + public Builder addPeerURLs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerURLsIsMutable(); + peerURLs_.add(value); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @param values The peerURLs to add. + * @return This builder for chaining. + */ + public Builder addAllPeerURLs( + java.lang.Iterable values) { + ensurePeerURLsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, peerURLs_); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @return This builder for chaining. + */ + public Builder clearPeerURLs() { + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 1; + * @param value The bytes of the peerURLs to add. + * @return This builder for chaining. + */ + public Builder addPeerURLsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerURLsIsMutable(); + peerURLs_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberAddRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberAddRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberAddRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberAddRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequestOrBuilder.java new file mode 100644 index 0000000..2116efe --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddRequestOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberAddRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberAddRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @return A list containing the peerURLs. + */ + java.util.List + getPeerURLsList(); + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @return The count of peerURLs. + */ + int getPeerURLsCount(); + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + java.lang.String getPeerURLs(int index); + /** + *
+   * peerURLs is the list of URLs the added member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 1; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + com.google.protobuf.ByteString + getPeerURLsBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponse.java new file mode 100644 index 0000000..119de83 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponse.java @@ -0,0 +1,1286 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberAddResponse} + */ +public final class MemberAddResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberAddResponse) + MemberAddResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberAddResponse.newBuilder() to construct. + private MemberAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberAddResponse() { + members_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberAddResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberAddResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder subBuilder = null; + if (member_ != null) { + subBuilder = member_.toBuilder(); + } + member_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.Member.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(member_); + member_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + members_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.Member.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int MEMBER_FIELD_NUMBER = 2; + private org.eclipse.ecf.provider.etcd3.grpc.api.Member member_; + /** + *
+   * member is the member information for the added member.
+   * 
+ * + * .etcdserverpb.Member member = 2; + * @return Whether the member field is set. + */ + @java.lang.Override + public boolean hasMember() { + return member_ != null; + } + /** + *
+   * member is the member information for the added member.
+   * 
+ * + * .etcdserverpb.Member member = 2; + * @return The member. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMember() { + return member_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance() : member_; + } + /** + *
+   * member is the member information for the added member.
+   * 
+ * + * .etcdserverpb.Member member = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMemberOrBuilder() { + return getMember(); + } + + public static final int MEMBERS_FIELD_NUMBER = 3; + private java.util.List members_; + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + return members_.get(index); + } + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (member_ != null) { + output.writeMessage(2, getMember()); + } + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(3, members_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (member_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMember()); + } + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, members_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasMember() != other.hasMember()) return false; + if (hasMember()) { + if (!getMember() + .equals(other.getMember())) return false; + } + if (!getMembersList() + .equals(other.getMembersList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasMember()) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMember().hashCode(); + } + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberAddResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberAddResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMembersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (memberBuilder_ == null) { + member_ = null; + } else { + member_ = null; + memberBuilder_ = null; + } + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + membersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberAddResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (memberBuilder_ == null) { + result.member_ = member_; + } else { + result.member_ = memberBuilder_.build(); + } + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasMember()) { + mergeMember(other.getMember()); + } + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.Member member_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> memberBuilder_; + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + * @return Whether the member field is set. + */ + public boolean hasMember() { + return memberBuilder_ != null || member_ != null; + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + * @return The member. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMember() { + if (memberBuilder_ == null) { + return member_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance() : member_; + } else { + return memberBuilder_.getMessage(); + } + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + public Builder setMember(org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + member_ = value; + onChanged(); + } else { + memberBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + public Builder setMember( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (memberBuilder_ == null) { + member_ = builderForValue.build(); + onChanged(); + } else { + memberBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + public Builder mergeMember(org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (memberBuilder_ == null) { + if (member_ != null) { + member_ = + org.eclipse.ecf.provider.etcd3.grpc.api.Member.newBuilder(member_).mergeFrom(value).buildPartial(); + } else { + member_ = value; + } + onChanged(); + } else { + memberBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + public Builder clearMember() { + if (memberBuilder_ == null) { + member_ = null; + onChanged(); + } else { + member_ = null; + memberBuilder_ = null; + } + + return this; + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder getMemberBuilder() { + + onChanged(); + return getMemberFieldBuilder().getBuilder(); + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMemberOrBuilder() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilder(); + } else { + return member_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance() : member_; + } + } + /** + *
+     * member is the member information for the added member.
+     * 
+ * + * .etcdserverpb.Member member = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder>( + getMember(), + getParentForChildren(), + isClean()); + member_ = null; + } + return memberBuilder_; + } + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> membersBuilder_; + + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder addMembers(org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder addMembers( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members after adding the new member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberAddResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberAddResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberAddResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberAddResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponseOrBuilder.java new file mode 100644 index 0000000..eb83b83 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberAddResponseOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberAddResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberAddResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * member is the member information for the added member.
+   * 
+ * + * .etcdserverpb.Member member = 2; + * @return Whether the member field is set. + */ + boolean hasMember(); + /** + *
+   * member is the member information for the added member.
+   * 
+ * + * .etcdserverpb.Member member = 2; + * @return The member. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Member getMember(); + /** + *
+   * member is the member information for the added member.
+   * 
+ * + * .etcdserverpb.Member member = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMemberOrBuilder(); + + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + java.util.List + getMembersList(); + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index); + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + int getMembersCount(); + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+   * members is a list of all members after adding the new member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequest.java new file mode 100644 index 0000000..d1d438d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberListRequest} + */ +public final class MemberListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberListRequest) + MemberListRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberListRequest.newBuilder() to construct. + private MemberListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberListRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberListRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberListRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberListRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberListRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberListRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberListRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequestOrBuilder.java new file mode 100644 index 0000000..0b5034d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberListRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponse.java new file mode 100644 index 0000000..8c607b1 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponse.java @@ -0,0 +1,1050 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberListResponse} + */ +public final class MemberListResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberListResponse) + MemberListResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberListResponse.newBuilder() to construct. + private MemberListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberListResponse() { + members_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberListResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + members_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.Member.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int MEMBERS_FIELD_NUMBER = 2; + private java.util.List members_; + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + return members_.get(index); + } + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(2, members_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, members_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getMembersList() + .equals(other.getMembersList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberListResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberListResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMembersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + membersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberListResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> membersBuilder_; + + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers(org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members associated with the cluster.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberListResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberListResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberListResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponseOrBuilder.java new file mode 100644 index 0000000..e9c7111 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberListResponseOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + java.util.List + getMembersList(); + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index); + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + int getMembersCount(); + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+   * members is a list of all members associated with the cluster.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberOrBuilder.java new file mode 100644 index 0000000..fd358fc --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberOrBuilder.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.Member) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * ID is the member ID for this member.
+   * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + long getID(); + + /** + *
+   * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+   * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @return A list containing the peerURLs. + */ + java.util.List + getPeerURLsList(); + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @return The count of peerURLs. + */ + int getPeerURLsCount(); + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + java.lang.String getPeerURLs(int index); + /** + *
+   * peerURLs is the list of URLs the member exposes to the cluster for communication.
+   * 
+ * + * repeated string peerURLs = 3; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + com.google.protobuf.ByteString + getPeerURLsBytes(int index); + + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @return A list containing the clientURLs. + */ + java.util.List + getClientURLsList(); + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @return The count of clientURLs. + */ + int getClientURLsCount(); + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @param index The index of the element to return. + * @return The clientURLs at the given index. + */ + java.lang.String getClientURLs(int index); + /** + *
+   * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
+   * 
+ * + * repeated string clientURLs = 4; + * @param index The index of the value to return. + * @return The bytes of the clientURLs at the given index. + */ + com.google.protobuf.ByteString + getClientURLsBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequest.java new file mode 100644 index 0000000..fbceb1f --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequest.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberRemoveRequest} + */ +public final class MemberRemoveRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberRemoveRequest) + MemberRemoveRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberRemoveRequest.newBuilder() to construct. + private MemberRemoveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberRemoveRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberRemoveRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberRemoveRequest( + 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 8: { + + iD_ = input.readUInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long iD_; + /** + *
+   * ID is the member ID of the member to remove.
+   * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (iD_ != 0L) { + output.writeUInt64(1, iD_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, iD_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest) obj; + + if (getID() + != other.getID()) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberRemoveRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberRemoveRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.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(); + iD_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest(this); + result.iD_ = iD_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest.getDefaultInstance()) return this; + if (other.getID() != 0L) { + setID(other.getID()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long iD_ ; + /** + *
+     * ID is the member ID of the member to remove.
+     * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the member ID of the member to remove.
+     * 
+ * + * uint64 ID = 1; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the member ID of the member to remove.
+     * 
+ * + * uint64 ID = 1; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberRemoveRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberRemoveRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberRemoveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberRemoveRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequestOrBuilder.java new file mode 100644 index 0000000..913e633 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberRemoveRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberRemoveRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * ID is the member ID of the member to remove.
+   * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + long getID(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponse.java new file mode 100644 index 0000000..9051706 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponse.java @@ -0,0 +1,1050 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberRemoveResponse} + */ +public final class MemberRemoveResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberRemoveResponse) + MemberRemoveResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberRemoveResponse.newBuilder() to construct. + private MemberRemoveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberRemoveResponse() { + members_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberRemoveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberRemoveResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + members_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.Member.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int MEMBERS_FIELD_NUMBER = 2; + private java.util.List members_; + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + return members_.get(index); + } + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(2, members_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, members_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getMembersList() + .equals(other.getMembersList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberRemoveResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberRemoveResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMembersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + membersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberRemoveResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> membersBuilder_; + + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers(org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members after removing the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberRemoveResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberRemoveResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberRemoveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberRemoveResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponseOrBuilder.java new file mode 100644 index 0000000..748a94c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberRemoveResponseOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberRemoveResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberRemoveResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + java.util.List + getMembersList(); + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index); + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + int getMembersCount(); + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+   * members is a list of all members after removing the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequest.java new file mode 100644 index 0000000..56651e4 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequest.java @@ -0,0 +1,747 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberUpdateRequest} + */ +public final class MemberUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberUpdateRequest) + MemberUpdateRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberUpdateRequest.newBuilder() to construct. + private MemberUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberUpdateRequest() { + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberUpdateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberUpdateRequest( + 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 8: { + + iD_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + peerURLs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + peerURLs_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + peerURLs_ = peerURLs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long iD_; + /** + *
+   * ID is the member ID of the member to update.
+   * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + + public static final int PEERURLS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList peerURLs_; + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @return A list containing the peerURLs. + */ + public com.google.protobuf.ProtocolStringList + getPeerURLsList() { + return peerURLs_; + } + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @return The count of peerURLs. + */ + public int getPeerURLsCount() { + return peerURLs_.size(); + } + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + public java.lang.String getPeerURLs(int index) { + return peerURLs_.get(index); + } + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + public com.google.protobuf.ByteString + getPeerURLsBytes(int index) { + return peerURLs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (iD_ != 0L) { + output.writeUInt64(1, iD_); + } + for (int i = 0; i < peerURLs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerURLs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iD_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, iD_); + } + { + int dataSize = 0; + for (int i = 0; i < peerURLs_.size(); i++) { + dataSize += computeStringSizeNoTag(peerURLs_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerURLsList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest) obj; + + if (getID() + != other.getID()) return false; + if (!getPeerURLsList() + .equals(other.getPeerURLsList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getID()); + if (getPeerURLsCount() > 0) { + hash = (37 * hash) + PEERURLS_FIELD_NUMBER; + hash = (53 * hash) + getPeerURLsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberUpdateRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.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(); + iD_ = 0L; + + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest(this); + int from_bitField0_ = bitField0_; + result.iD_ = iD_; + if (((bitField0_ & 0x00000001) != 0)) { + peerURLs_ = peerURLs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peerURLs_ = peerURLs_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest.getDefaultInstance()) return this; + if (other.getID() != 0L) { + setID(other.getID()); + } + if (!other.peerURLs_.isEmpty()) { + if (peerURLs_.isEmpty()) { + peerURLs_ = other.peerURLs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeerURLsIsMutable(); + peerURLs_.addAll(other.peerURLs_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long iD_ ; + /** + *
+     * ID is the member ID of the member to update.
+     * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + @java.lang.Override + public long getID() { + return iD_; + } + /** + *
+     * ID is the member ID of the member to update.
+     * 
+ * + * uint64 ID = 1; + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(long value) { + + iD_ = value; + onChanged(); + return this; + } + /** + *
+     * ID is the member ID of the member to update.
+     * 
+ * + * uint64 ID = 1; + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePeerURLsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peerURLs_ = new com.google.protobuf.LazyStringArrayList(peerURLs_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @return A list containing the peerURLs. + */ + public com.google.protobuf.ProtocolStringList + getPeerURLsList() { + return peerURLs_.getUnmodifiableView(); + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @return The count of peerURLs. + */ + public int getPeerURLsCount() { + return peerURLs_.size(); + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + public java.lang.String getPeerURLs(int index) { + return peerURLs_.get(index); + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + public com.google.protobuf.ByteString + getPeerURLsBytes(int index) { + return peerURLs_.getByteString(index); + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @param index The index to set the value at. + * @param value The peerURLs to set. + * @return This builder for chaining. + */ + public Builder setPeerURLs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerURLsIsMutable(); + peerURLs_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @param value The peerURLs to add. + * @return This builder for chaining. + */ + public Builder addPeerURLs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerURLsIsMutable(); + peerURLs_.add(value); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @param values The peerURLs to add. + * @return This builder for chaining. + */ + public Builder addAllPeerURLs( + java.lang.Iterable values) { + ensurePeerURLsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, peerURLs_); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @return This builder for chaining. + */ + public Builder clearPeerURLs() { + peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+     * 
+ * + * repeated string peerURLs = 2; + * @param value The bytes of the peerURLs to add. + * @return This builder for chaining. + */ + public Builder addPeerURLsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerURLsIsMutable(); + peerURLs_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberUpdateRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberUpdateRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequestOrBuilder.java new file mode 100644 index 0000000..fc0af14 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * ID is the member ID of the member to update.
+   * 
+ * + * uint64 ID = 1; + * @return The iD. + */ + long getID(); + + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @return A list containing the peerURLs. + */ + java.util.List + getPeerURLsList(); + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @return The count of peerURLs. + */ + int getPeerURLsCount(); + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @param index The index of the element to return. + * @return The peerURLs at the given index. + */ + java.lang.String getPeerURLs(int index); + /** + *
+   * peerURLs is the new list of URLs the member will use to communicate with the cluster.
+   * 
+ * + * repeated string peerURLs = 2; + * @param index The index of the value to return. + * @return The bytes of the peerURLs at the given index. + */ + com.google.protobuf.ByteString + getPeerURLsBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponse.java new file mode 100644 index 0000000..9f9419b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponse.java @@ -0,0 +1,1050 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MemberUpdateResponse} + */ +public final class MemberUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MemberUpdateResponse) + MemberUpdateResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemberUpdateResponse.newBuilder() to construct. + private MemberUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemberUpdateResponse() { + members_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberUpdateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberUpdateResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + members_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.Member.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int MEMBERS_FIELD_NUMBER = 2; + private java.util.List members_; + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + return members_.get(index); + } + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(2, members_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, members_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getMembersList() + .equals(other.getMembersList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MemberUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberUpdateResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMembersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + membersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MemberUpdateResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> membersBuilder_; + + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder setMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers(org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addMembers( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.Member.getDefaultInstance()); + } + /** + *
+     * members is a list of all members after updating the member.
+     * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Member, org.eclipse.ecf.provider.etcd3.grpc.api.Member.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MemberUpdateResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberUpdateResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponseOrBuilder.java new file mode 100644 index 0000000..b91cde4 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MemberUpdateResponseOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MemberUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberUpdateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + java.util.List + getMembersList(); + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Member getMembers(int index); + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + int getMembersCount(); + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+   * members is a list of all members after updating the member.
+   * 
+ * + * repeated .etcdserverpb.Member members = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.MemberOrBuilder getMembersOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequest.java new file mode 100644 index 0000000..4210d69 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequest.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MoveLeaderRequest} + */ +public final class MoveLeaderRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MoveLeaderRequest) + MoveLeaderRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MoveLeaderRequest.newBuilder() to construct. + private MoveLeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MoveLeaderRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MoveLeaderRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MoveLeaderRequest( + 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 8: { + + targetID_ = input.readUInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.Builder.class); + } + + public static final int TARGETID_FIELD_NUMBER = 1; + private long targetID_; + /** + *
+   * targetID is the node ID for the new leader.
+   * 
+ * + * uint64 targetID = 1; + * @return The targetID. + */ + @java.lang.Override + public long getTargetID() { + return targetID_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetID_ != 0L) { + output.writeUInt64(1, targetID_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetID_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, targetID_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest) obj; + + if (getTargetID() + != other.getTargetID()) 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) + TARGETID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTargetID()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MoveLeaderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MoveLeaderRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.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(); + targetID_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest(this); + result.targetID_ = targetID_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest.getDefaultInstance()) return this; + if (other.getTargetID() != 0L) { + setTargetID(other.getTargetID()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long targetID_ ; + /** + *
+     * targetID is the node ID for the new leader.
+     * 
+ * + * uint64 targetID = 1; + * @return The targetID. + */ + @java.lang.Override + public long getTargetID() { + return targetID_; + } + /** + *
+     * targetID is the node ID for the new leader.
+     * 
+ * + * uint64 targetID = 1; + * @param value The targetID to set. + * @return This builder for chaining. + */ + public Builder setTargetID(long value) { + + targetID_ = value; + onChanged(); + return this; + } + /** + *
+     * targetID is the node ID for the new leader.
+     * 
+ * + * uint64 targetID = 1; + * @return This builder for chaining. + */ + public Builder clearTargetID() { + + targetID_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MoveLeaderRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MoveLeaderRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveLeaderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MoveLeaderRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequestOrBuilder.java new file mode 100644 index 0000000..4a53f75 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MoveLeaderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MoveLeaderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * targetID is the node ID for the new leader.
+   * 
+ * + * uint64 targetID = 1; + * @return The targetID. + */ + long getTargetID(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponse.java new file mode 100644 index 0000000..7a315aa --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.MoveLeaderResponse} + */ +public final class MoveLeaderResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.MoveLeaderResponse) + MoveLeaderResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MoveLeaderResponse.newBuilder() to construct. + private MoveLeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MoveLeaderResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MoveLeaderResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MoveLeaderResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.MoveLeaderResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.MoveLeaderResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_MoveLeaderResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.MoveLeaderResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.MoveLeaderResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveLeaderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MoveLeaderResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponseOrBuilder.java new file mode 100644 index 0000000..c228a6e --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/MoveLeaderResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface MoveLeaderResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.MoveLeaderResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequest.java new file mode 100644 index 0000000..731e38c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequest.java @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.PutRequest} + */ +public final class PutRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.PutRequest) + PutRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PutRequest.newBuilder() to construct. + private PutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PutRequest() { + key_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PutRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PutRequest( + 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: { + + key_ = input.readBytes(); + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + case 24: { + + lease_ = input.readInt64(); + break; + } + case 32: { + + prevKv_ = input.readBool(); + break; + } + case 40: { + + ignoreValue_ = input.readBool(); + break; + } + case 48: { + + ignoreLease_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + /** + *
+   * key is the key, in bytes, to put into the key-value store.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; + /** + *
+   * value is the value, in bytes, to associate with the key in the key-value store.
+   * 
+ * + * bytes value = 2; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int LEASE_FIELD_NUMBER = 3; + private long lease_; + /** + *
+   * lease is the lease ID to associate with the key in the key-value store. A lease
+   * value of 0 indicates no lease.
+   * 
+ * + * int64 lease = 3; + * @return The lease. + */ + @java.lang.Override + public long getLease() { + return lease_; + } + + public static final int PREV_KV_FIELD_NUMBER = 4; + private boolean prevKv_; + /** + *
+   * If prev_kv is set, etcd gets the previous key-value pair before changing it.
+   * The previous key-value pair will be returned in the put response.
+   * 
+ * + * bool prev_kv = 4; + * @return The prevKv. + */ + @java.lang.Override + public boolean getPrevKv() { + return prevKv_; + } + + public static final int IGNORE_VALUE_FIELD_NUMBER = 5; + private boolean ignoreValue_; + /** + *
+   * If ignore_value is set, etcd updates the key using its current value.
+   * Returns an error if the key does not exist.
+   * 
+ * + * bool ignore_value = 5; + * @return The ignoreValue. + */ + @java.lang.Override + public boolean getIgnoreValue() { + return ignoreValue_; + } + + public static final int IGNORE_LEASE_FIELD_NUMBER = 6; + private boolean ignoreLease_; + /** + *
+   * If ignore_lease is set, etcd updates the key using its current lease.
+   * Returns an error if the key does not exist.
+   * 
+ * + * bool ignore_lease = 6; + * @return The ignoreLease. + */ + @java.lang.Override + public boolean getIgnoreLease() { + return ignoreLease_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + if (lease_ != 0L) { + output.writeInt64(3, lease_); + } + if (prevKv_ != false) { + output.writeBool(4, prevKv_); + } + if (ignoreValue_ != false) { + output.writeBool(5, ignoreValue_); + } + if (ignoreLease_ != false) { + output.writeBool(6, ignoreLease_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, value_); + } + if (lease_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, lease_); + } + if (prevKv_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, prevKv_); + } + if (ignoreValue_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, ignoreValue_); + } + if (ignoreLease_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, ignoreLease_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getLease() + != other.getLease()) return false; + if (getPrevKv() + != other.getPrevKv()) return false; + if (getIgnoreValue() + != other.getIgnoreValue()) return false; + if (getIgnoreLease() + != other.getIgnoreLease()) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + LEASE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLease()); + hash = (37 * hash) + PREV_KV_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrevKv()); + hash = (37 * hash) + IGNORE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreValue()); + hash = (37 * hash) + IGNORE_LEASE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreLease()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.PutRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.PutRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.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(); + key_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + lease_ = 0L; + + prevKv_ = false; + + ignoreValue_ = false; + + ignoreLease_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest(this); + result.key_ = key_; + result.value_ = value_; + result.lease_ = lease_; + result.prevKv_ = prevKv_; + result.ignoreValue_ = ignoreValue_; + result.ignoreLease_ = ignoreLease_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance()) return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getLease() != 0L) { + setLease(other.getLease()); + } + if (other.getPrevKv() != false) { + setPrevKv(other.getPrevKv()); + } + if (other.getIgnoreValue() != false) { + setIgnoreValue(other.getIgnoreValue()); + } + if (other.getIgnoreLease() != false) { + setIgnoreLease(other.getIgnoreLease()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * key is the key, in bytes, to put into the key-value store.
+     * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * key is the key, in bytes, to put into the key-value store.
+     * 
+ * + * bytes key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * key is the key, in bytes, to put into the key-value store.
+     * 
+ * + * bytes key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * value is the value, in bytes, to associate with the key in the key-value store.
+     * 
+ * + * bytes value = 2; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + *
+     * value is the value, in bytes, to associate with the key in the key-value store.
+     * 
+ * + * bytes value = 2; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+     * value is the value, in bytes, to associate with the key in the key-value store.
+     * 
+ * + * bytes value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private long lease_ ; + /** + *
+     * lease is the lease ID to associate with the key in the key-value store. A lease
+     * value of 0 indicates no lease.
+     * 
+ * + * int64 lease = 3; + * @return The lease. + */ + @java.lang.Override + public long getLease() { + return lease_; + } + /** + *
+     * lease is the lease ID to associate with the key in the key-value store. A lease
+     * value of 0 indicates no lease.
+     * 
+ * + * int64 lease = 3; + * @param value The lease to set. + * @return This builder for chaining. + */ + public Builder setLease(long value) { + + lease_ = value; + onChanged(); + return this; + } + /** + *
+     * lease is the lease ID to associate with the key in the key-value store. A lease
+     * value of 0 indicates no lease.
+     * 
+ * + * int64 lease = 3; + * @return This builder for chaining. + */ + public Builder clearLease() { + + lease_ = 0L; + onChanged(); + return this; + } + + private boolean prevKv_ ; + /** + *
+     * If prev_kv is set, etcd gets the previous key-value pair before changing it.
+     * The previous key-value pair will be returned in the put response.
+     * 
+ * + * bool prev_kv = 4; + * @return The prevKv. + */ + @java.lang.Override + public boolean getPrevKv() { + return prevKv_; + } + /** + *
+     * If prev_kv is set, etcd gets the previous key-value pair before changing it.
+     * The previous key-value pair will be returned in the put response.
+     * 
+ * + * bool prev_kv = 4; + * @param value The prevKv to set. + * @return This builder for chaining. + */ + public Builder setPrevKv(boolean value) { + + prevKv_ = value; + onChanged(); + return this; + } + /** + *
+     * If prev_kv is set, etcd gets the previous key-value pair before changing it.
+     * The previous key-value pair will be returned in the put response.
+     * 
+ * + * bool prev_kv = 4; + * @return This builder for chaining. + */ + public Builder clearPrevKv() { + + prevKv_ = false; + onChanged(); + return this; + } + + private boolean ignoreValue_ ; + /** + *
+     * If ignore_value is set, etcd updates the key using its current value.
+     * Returns an error if the key does not exist.
+     * 
+ * + * bool ignore_value = 5; + * @return The ignoreValue. + */ + @java.lang.Override + public boolean getIgnoreValue() { + return ignoreValue_; + } + /** + *
+     * If ignore_value is set, etcd updates the key using its current value.
+     * Returns an error if the key does not exist.
+     * 
+ * + * bool ignore_value = 5; + * @param value The ignoreValue to set. + * @return This builder for chaining. + */ + public Builder setIgnoreValue(boolean value) { + + ignoreValue_ = value; + onChanged(); + return this; + } + /** + *
+     * If ignore_value is set, etcd updates the key using its current value.
+     * Returns an error if the key does not exist.
+     * 
+ * + * bool ignore_value = 5; + * @return This builder for chaining. + */ + public Builder clearIgnoreValue() { + + ignoreValue_ = false; + onChanged(); + return this; + } + + private boolean ignoreLease_ ; + /** + *
+     * If ignore_lease is set, etcd updates the key using its current lease.
+     * Returns an error if the key does not exist.
+     * 
+ * + * bool ignore_lease = 6; + * @return The ignoreLease. + */ + @java.lang.Override + public boolean getIgnoreLease() { + return ignoreLease_; + } + /** + *
+     * If ignore_lease is set, etcd updates the key using its current lease.
+     * Returns an error if the key does not exist.
+     * 
+ * + * bool ignore_lease = 6; + * @param value The ignoreLease to set. + * @return This builder for chaining. + */ + public Builder setIgnoreLease(boolean value) { + + ignoreLease_ = value; + onChanged(); + return this; + } + /** + *
+     * If ignore_lease is set, etcd updates the key using its current lease.
+     * Returns an error if the key does not exist.
+     * 
+ * + * bool ignore_lease = 6; + * @return This builder for chaining. + */ + public Builder clearIgnoreLease() { + + ignoreLease_ = 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:etcdserverpb.PutRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.PutRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PutRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequestOrBuilder.java new file mode 100644 index 0000000..aa17e85 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface PutRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.PutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * key is the key, in bytes, to put into the key-value store.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * value is the value, in bytes, to associate with the key in the key-value store.
+   * 
+ * + * bytes value = 2; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + + /** + *
+   * lease is the lease ID to associate with the key in the key-value store. A lease
+   * value of 0 indicates no lease.
+   * 
+ * + * int64 lease = 3; + * @return The lease. + */ + long getLease(); + + /** + *
+   * If prev_kv is set, etcd gets the previous key-value pair before changing it.
+   * The previous key-value pair will be returned in the put response.
+   * 
+ * + * bool prev_kv = 4; + * @return The prevKv. + */ + boolean getPrevKv(); + + /** + *
+   * If ignore_value is set, etcd updates the key using its current value.
+   * Returns an error if the key does not exist.
+   * 
+ * + * bool ignore_value = 5; + * @return The ignoreValue. + */ + boolean getIgnoreValue(); + + /** + *
+   * If ignore_lease is set, etcd updates the key using its current lease.
+   * Returns an error if the key does not exist.
+   * 
+ * + * bool ignore_lease = 6; + * @return The ignoreLease. + */ + boolean getIgnoreLease(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponse.java new file mode 100644 index 0000000..d03c44b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponse.java @@ -0,0 +1,843 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.PutResponse} + */ +public final class PutResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.PutResponse) + PutResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PutResponse.newBuilder() to construct. + private PutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PutResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PutResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PutResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder subBuilder = null; + if (prevKv_ != null) { + subBuilder = prevKv_.toBuilder(); + } + prevKv_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prevKv_); + prevKv_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int PREV_KV_FIELD_NUMBER = 2; + private org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue prevKv_; + /** + *
+   * if prev_kv is set in the request, the previous key-value pair will be returned.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + * @return Whether the prevKv field is set. + */ + @java.lang.Override + public boolean hasPrevKv() { + return prevKv_ != null; + } + /** + *
+   * if prev_kv is set in the request, the previous key-value pair will be returned.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + * @return The prevKv. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKv() { + return prevKv_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : prevKv_; + } + /** + *
+   * if prev_kv is set in the request, the previous key-value pair will be returned.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvOrBuilder() { + return getPrevKv(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (prevKv_ != null) { + output.writeMessage(2, getPrevKv()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (prevKv_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPrevKv()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasPrevKv() != other.hasPrevKv()) return false; + if (hasPrevKv()) { + if (!getPrevKv() + .equals(other.getPrevKv())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasPrevKv()) { + hash = (37 * hash) + PREV_KV_FIELD_NUMBER; + hash = (53 * hash) + getPrevKv().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.PutResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.PutResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (prevKvBuilder_ == null) { + prevKv_ = null; + } else { + prevKv_ = null; + prevKvBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_PutResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (prevKvBuilder_ == null) { + result.prevKv_ = prevKv_; + } else { + result.prevKv_ = prevKvBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasPrevKv()) { + mergePrevKv(other.getPrevKv()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue prevKv_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> prevKvBuilder_; + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + * @return Whether the prevKv field is set. + */ + public boolean hasPrevKv() { + return prevKvBuilder_ != null || prevKv_ != null; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + * @return The prevKv. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKv() { + if (prevKvBuilder_ == null) { + return prevKv_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : prevKv_; + } else { + return prevKvBuilder_.getMessage(); + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + public Builder setPrevKv(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prevKv_ = value; + onChanged(); + } else { + prevKvBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + public Builder setPrevKv( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (prevKvBuilder_ == null) { + prevKv_ = builderForValue.build(); + onChanged(); + } else { + prevKvBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + public Builder mergePrevKv(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvBuilder_ == null) { + if (prevKv_ != null) { + prevKv_ = + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.newBuilder(prevKv_).mergeFrom(value).buildPartial(); + } else { + prevKv_ = value; + } + onChanged(); + } else { + prevKvBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + public Builder clearPrevKv() { + if (prevKvBuilder_ == null) { + prevKv_ = null; + onChanged(); + } else { + prevKv_ = null; + prevKvBuilder_ = null; + } + + return this; + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder getPrevKvBuilder() { + + onChanged(); + return getPrevKvFieldBuilder().getBuilder(); + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvOrBuilder() { + if (prevKvBuilder_ != null) { + return prevKvBuilder_.getMessageOrBuilder(); + } else { + return prevKv_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : prevKv_; + } + } + /** + *
+     * if prev_kv is set in the request, the previous key-value pair will be returned.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> + getPrevKvFieldBuilder() { + if (prevKvBuilder_ == null) { + prevKvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder>( + getPrevKv(), + getParentForChildren(), + isClean()); + prevKv_ = null; + } + return prevKvBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.PutResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.PutResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PutResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponseOrBuilder.java new file mode 100644 index 0000000..a2bc729 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/PutResponseOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface PutResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.PutResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * if prev_kv is set in the request, the previous key-value pair will be returned.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + * @return Whether the prevKv field is set. + */ + boolean hasPrevKv(); + /** + *
+   * if prev_kv is set in the request, the previous key-value pair will be returned.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + * @return The prevKv. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKv(); + /** + *
+   * if prev_kv is set in the request, the previous key-value pair will be returned.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequest.java new file mode 100644 index 0000000..dcd9f87 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequest.java @@ -0,0 +1,1904 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.RangeRequest} + */ +public final class RangeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.RangeRequest) + RangeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RangeRequest.newBuilder() to construct. + private RangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RangeRequest() { + key_ = com.google.protobuf.ByteString.EMPTY; + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + sortOrder_ = 0; + sortTarget_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RangeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RangeRequest( + 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: { + + key_ = input.readBytes(); + break; + } + case 18: { + + rangeEnd_ = input.readBytes(); + break; + } + case 24: { + + limit_ = input.readInt64(); + break; + } + case 32: { + + revision_ = input.readInt64(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + sortOrder_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); + + sortTarget_ = rawValue; + break; + } + case 56: { + + serializable_ = input.readBool(); + break; + } + case 64: { + + keysOnly_ = input.readBool(); + break; + } + case 72: { + + countOnly_ = input.readBool(); + break; + } + case 80: { + + minModRevision_ = input.readInt64(); + break; + } + case 88: { + + maxModRevision_ = input.readInt64(); + break; + } + case 96: { + + minCreateRevision_ = input.readInt64(); + break; + } + case 104: { + + maxCreateRevision_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder.class); + } + + /** + * Protobuf enum {@code etcdserverpb.RangeRequest.SortOrder} + */ + public enum SortOrder + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * default, no sorting
+     * 
+ * + * NONE = 0; + */ + NONE(0), + /** + *
+     * lowest target value first
+     * 
+ * + * ASCEND = 1; + */ + ASCEND(1), + /** + *
+     * highest target value first
+     * 
+ * + * DESCEND = 2; + */ + DESCEND(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * default, no sorting
+     * 
+ * + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + *
+     * lowest target value first
+     * 
+ * + * ASCEND = 1; + */ + public static final int ASCEND_VALUE = 1; + /** + *
+     * highest target value first
+     * 
+ * + * DESCEND = 2; + */ + public static final int DESCEND_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SortOrder valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SortOrder forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return ASCEND; + case 2: return DESCEND; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortOrder> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortOrder findValueByNumber(int number) { + return SortOrder.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final SortOrder[] VALUES = values(); + + public static SortOrder valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SortOrder(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.RangeRequest.SortOrder) + } + + /** + * Protobuf enum {@code etcdserverpb.RangeRequest.SortTarget} + */ + public enum SortTarget + implements com.google.protobuf.ProtocolMessageEnum { + /** + * KEY = 0; + */ + KEY(0), + /** + * VERSION = 1; + */ + VERSION(1), + /** + * CREATE = 2; + */ + CREATE(2), + /** + * MOD = 3; + */ + MOD(3), + /** + * VALUE = 4; + */ + VALUE(4), + UNRECOGNIZED(-1), + ; + + /** + * KEY = 0; + */ + public static final int KEY_VALUE = 0; + /** + * VERSION = 1; + */ + public static final int VERSION_VALUE = 1; + /** + * CREATE = 2; + */ + public static final int CREATE_VALUE = 2; + /** + * MOD = 3; + */ + public static final int MOD_VALUE = 3; + /** + * VALUE = 4; + */ + public static final int VALUE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SortTarget valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SortTarget forNumber(int value) { + switch (value) { + case 0: return KEY; + case 1: return VERSION; + case 2: return CREATE; + case 3: return MOD; + case 4: return VALUE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortTarget> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortTarget findValueByNumber(int number) { + return SortTarget.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDescriptor().getEnumTypes().get(1); + } + + private static final SortTarget[] VALUES = values(); + + public static SortTarget valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SortTarget(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.RangeRequest.SortTarget) + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + /** + *
+   * key is the first key for the range. If range_end is not given, the request only looks up key.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int RANGE_END_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString rangeEnd_; + /** + *
+   * range_end is the upper bound on the requested range [key, range_end).
+   * If range_end is '\0', the range is all keys >= key.
+   * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
+   * then the range request gets all keys prefixed with key.
+   * If both key and range_end are '\0', then the range request returns all keys.
+   * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private long limit_; + /** + *
+   * limit is a limit on the number of keys returned for the request. When limit is set to 0,
+   * it is treated as no limit.
+   * 
+ * + * int64 limit = 3; + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + public static final int REVISION_FIELD_NUMBER = 4; + private long revision_; + /** + *
+   * revision is the point-in-time of the key-value store to use for the range.
+   * If revision is less or equal to zero, the range is over the newest key-value store.
+   * If the revision has been compacted, ErrCompacted is returned as a response.
+   * 
+ * + * int64 revision = 4; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + + public static final int SORT_ORDER_FIELD_NUMBER = 5; + private int sortOrder_; + /** + *
+   * sort_order is the order for returned sorted results.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return The enum numeric value on the wire for sortOrder. + */ + @java.lang.Override public int getSortOrderValue() { + return sortOrder_; + } + /** + *
+   * sort_order is the order for returned sorted results.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return The sortOrder. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder getSortOrder() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder result = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder.valueOf(sortOrder_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder.UNRECOGNIZED : result; + } + + public static final int SORT_TARGET_FIELD_NUMBER = 6; + private int sortTarget_; + /** + *
+   * sort_target is the key-value field to use for sorting.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return The enum numeric value on the wire for sortTarget. + */ + @java.lang.Override public int getSortTargetValue() { + return sortTarget_; + } + /** + *
+   * sort_target is the key-value field to use for sorting.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return The sortTarget. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget getSortTarget() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget result = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget.valueOf(sortTarget_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget.UNRECOGNIZED : result; + } + + public static final int SERIALIZABLE_FIELD_NUMBER = 7; + private boolean serializable_; + /** + *
+   * serializable sets the range request to use serializable member-local reads.
+   * Range requests are linearizable by default; linearizable requests have higher
+   * latency and lower throughput than serializable requests but reflect the current
+   * consensus of the cluster. For better performance, in exchange for possible stale reads,
+   * a serializable range request is served locally without needing to reach consensus
+   * with other nodes in the cluster.
+   * 
+ * + * bool serializable = 7; + * @return The serializable. + */ + @java.lang.Override + public boolean getSerializable() { + return serializable_; + } + + public static final int KEYS_ONLY_FIELD_NUMBER = 8; + private boolean keysOnly_; + /** + *
+   * keys_only when set returns only the keys and not the values.
+   * 
+ * + * bool keys_only = 8; + * @return The keysOnly. + */ + @java.lang.Override + public boolean getKeysOnly() { + return keysOnly_; + } + + public static final int COUNT_ONLY_FIELD_NUMBER = 9; + private boolean countOnly_; + /** + *
+   * count_only when set returns only the count of the keys in the range.
+   * 
+ * + * bool count_only = 9; + * @return The countOnly. + */ + @java.lang.Override + public boolean getCountOnly() { + return countOnly_; + } + + public static final int MIN_MOD_REVISION_FIELD_NUMBER = 10; + private long minModRevision_; + /** + *
+   * min_mod_revision is the lower bound for returned key mod revisions; all keys with
+   * lesser mod revisions will be filtered away.
+   * 
+ * + * int64 min_mod_revision = 10; + * @return The minModRevision. + */ + @java.lang.Override + public long getMinModRevision() { + return minModRevision_; + } + + public static final int MAX_MOD_REVISION_FIELD_NUMBER = 11; + private long maxModRevision_; + /** + *
+   * max_mod_revision is the upper bound for returned key mod revisions; all keys with
+   * greater mod revisions will be filtered away.
+   * 
+ * + * int64 max_mod_revision = 11; + * @return The maxModRevision. + */ + @java.lang.Override + public long getMaxModRevision() { + return maxModRevision_; + } + + public static final int MIN_CREATE_REVISION_FIELD_NUMBER = 12; + private long minCreateRevision_; + /** + *
+   * min_create_revision is the lower bound for returned key create revisions; all keys with
+   * lesser create trevisions will be filtered away.
+   * 
+ * + * int64 min_create_revision = 12; + * @return The minCreateRevision. + */ + @java.lang.Override + public long getMinCreateRevision() { + return minCreateRevision_; + } + + public static final int MAX_CREATE_REVISION_FIELD_NUMBER = 13; + private long maxCreateRevision_; + /** + *
+   * max_create_revision is the upper bound for returned key create revisions; all keys with
+   * greater create revisions will be filtered away.
+   * 
+ * + * int64 max_create_revision = 13; + * @return The maxCreateRevision. + */ + @java.lang.Override + public long getMaxCreateRevision() { + return maxCreateRevision_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (!rangeEnd_.isEmpty()) { + output.writeBytes(2, rangeEnd_); + } + if (limit_ != 0L) { + output.writeInt64(3, limit_); + } + if (revision_ != 0L) { + output.writeInt64(4, revision_); + } + if (sortOrder_ != org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder.NONE.getNumber()) { + output.writeEnum(5, sortOrder_); + } + if (sortTarget_ != org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget.KEY.getNumber()) { + output.writeEnum(6, sortTarget_); + } + if (serializable_ != false) { + output.writeBool(7, serializable_); + } + if (keysOnly_ != false) { + output.writeBool(8, keysOnly_); + } + if (countOnly_ != false) { + output.writeBool(9, countOnly_); + } + if (minModRevision_ != 0L) { + output.writeInt64(10, minModRevision_); + } + if (maxModRevision_ != 0L) { + output.writeInt64(11, maxModRevision_); + } + if (minCreateRevision_ != 0L) { + output.writeInt64(12, minCreateRevision_); + } + if (maxCreateRevision_ != 0L) { + output.writeInt64(13, maxCreateRevision_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); + } + if (!rangeEnd_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, rangeEnd_); + } + if (limit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, limit_); + } + if (revision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, revision_); + } + if (sortOrder_ != org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, sortOrder_); + } + if (sortTarget_ != org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget.KEY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, sortTarget_); + } + if (serializable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, serializable_); + } + if (keysOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, keysOnly_); + } + if (countOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, countOnly_); + } + if (minModRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, minModRevision_); + } + if (maxModRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, maxModRevision_); + } + if (minCreateRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, minCreateRevision_); + } + if (maxCreateRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, maxCreateRevision_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getRangeEnd() + .equals(other.getRangeEnd())) return false; + if (getLimit() + != other.getLimit()) return false; + if (getRevision() + != other.getRevision()) return false; + if (sortOrder_ != other.sortOrder_) return false; + if (sortTarget_ != other.sortTarget_) return false; + if (getSerializable() + != other.getSerializable()) return false; + if (getKeysOnly() + != other.getKeysOnly()) return false; + if (getCountOnly() + != other.getCountOnly()) return false; + if (getMinModRevision() + != other.getMinModRevision()) return false; + if (getMaxModRevision() + != other.getMaxModRevision()) return false; + if (getMinCreateRevision() + != other.getMinCreateRevision()) return false; + if (getMaxCreateRevision() + != other.getMaxCreateRevision()) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + RANGE_END_FIELD_NUMBER; + hash = (53 * hash) + getRangeEnd().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLimit()); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRevision()); + hash = (37 * hash) + SORT_ORDER_FIELD_NUMBER; + hash = (53 * hash) + sortOrder_; + hash = (37 * hash) + SORT_TARGET_FIELD_NUMBER; + hash = (53 * hash) + sortTarget_; + hash = (37 * hash) + SERIALIZABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSerializable()); + hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKeysOnly()); + hash = (37 * hash) + COUNT_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCountOnly()); + hash = (37 * hash) + MIN_MOD_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinModRevision()); + hash = (37 * hash) + MAX_MOD_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxModRevision()); + hash = (37 * hash) + MIN_CREATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinCreateRevision()); + hash = (37 * hash) + MAX_CREATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxCreateRevision()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.RangeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.RangeRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.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(); + key_ = com.google.protobuf.ByteString.EMPTY; + + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + + limit_ = 0L; + + revision_ = 0L; + + sortOrder_ = 0; + + sortTarget_ = 0; + + serializable_ = false; + + keysOnly_ = false; + + countOnly_ = false; + + minModRevision_ = 0L; + + maxModRevision_ = 0L; + + minCreateRevision_ = 0L; + + maxCreateRevision_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest(this); + result.key_ = key_; + result.rangeEnd_ = rangeEnd_; + result.limit_ = limit_; + result.revision_ = revision_; + result.sortOrder_ = sortOrder_; + result.sortTarget_ = sortTarget_; + result.serializable_ = serializable_; + result.keysOnly_ = keysOnly_; + result.countOnly_ = countOnly_; + result.minModRevision_ = minModRevision_; + result.maxModRevision_ = maxModRevision_; + result.minCreateRevision_ = minCreateRevision_; + result.maxCreateRevision_ = maxCreateRevision_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance()) return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { + setRangeEnd(other.getRangeEnd()); + } + if (other.getLimit() != 0L) { + setLimit(other.getLimit()); + } + if (other.getRevision() != 0L) { + setRevision(other.getRevision()); + } + if (other.sortOrder_ != 0) { + setSortOrderValue(other.getSortOrderValue()); + } + if (other.sortTarget_ != 0) { + setSortTargetValue(other.getSortTargetValue()); + } + if (other.getSerializable() != false) { + setSerializable(other.getSerializable()); + } + if (other.getKeysOnly() != false) { + setKeysOnly(other.getKeysOnly()); + } + if (other.getCountOnly() != false) { + setCountOnly(other.getCountOnly()); + } + if (other.getMinModRevision() != 0L) { + setMinModRevision(other.getMinModRevision()); + } + if (other.getMaxModRevision() != 0L) { + setMaxModRevision(other.getMaxModRevision()); + } + if (other.getMinCreateRevision() != 0L) { + setMinCreateRevision(other.getMinCreateRevision()); + } + if (other.getMaxCreateRevision() != 0L) { + setMaxCreateRevision(other.getMaxCreateRevision()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * key is the first key for the range. If range_end is not given, the request only looks up key.
+     * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * key is the first key for the range. If range_end is not given, the request only looks up key.
+     * 
+ * + * bytes key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * key is the first key for the range. If range_end is not given, the request only looks up key.
+     * 
+ * + * bytes key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * range_end is the upper bound on the requested range [key, range_end).
+     * If range_end is '\0', the range is all keys >= key.
+     * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
+     * then the range request gets all keys prefixed with key.
+     * If both key and range_end are '\0', then the range request returns all keys.
+     * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + /** + *
+     * range_end is the upper bound on the requested range [key, range_end).
+     * If range_end is '\0', the range is all keys >= key.
+     * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
+     * then the range request gets all keys prefixed with key.
+     * If both key and range_end are '\0', then the range request returns all keys.
+     * 
+ * + * bytes range_end = 2; + * @param value The rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEnd(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeEnd_ = value; + onChanged(); + return this; + } + /** + *
+     * range_end is the upper bound on the requested range [key, range_end).
+     * If range_end is '\0', the range is all keys >= key.
+     * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
+     * then the range request gets all keys prefixed with key.
+     * If both key and range_end are '\0', then the range request returns all keys.
+     * 
+ * + * bytes range_end = 2; + * @return This builder for chaining. + */ + public Builder clearRangeEnd() { + + rangeEnd_ = getDefaultInstance().getRangeEnd(); + onChanged(); + return this; + } + + private long limit_ ; + /** + *
+     * limit is a limit on the number of keys returned for the request. When limit is set to 0,
+     * it is treated as no limit.
+     * 
+ * + * int64 limit = 3; + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + /** + *
+     * limit is a limit on the number of keys returned for the request. When limit is set to 0,
+     * it is treated as no limit.
+     * 
+ * + * int64 limit = 3; + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+     * limit is a limit on the number of keys returned for the request. When limit is set to 0,
+     * it is treated as no limit.
+     * 
+ * + * int64 limit = 3; + * @return This builder for chaining. + */ + public Builder clearLimit() { + + limit_ = 0L; + onChanged(); + return this; + } + + private long revision_ ; + /** + *
+     * revision is the point-in-time of the key-value store to use for the range.
+     * If revision is less or equal to zero, the range is over the newest key-value store.
+     * If the revision has been compacted, ErrCompacted is returned as a response.
+     * 
+ * + * int64 revision = 4; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + /** + *
+     * revision is the point-in-time of the key-value store to use for the range.
+     * If revision is less or equal to zero, the range is over the newest key-value store.
+     * If the revision has been compacted, ErrCompacted is returned as a response.
+     * 
+ * + * int64 revision = 4; + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(long value) { + + revision_ = value; + onChanged(); + return this; + } + /** + *
+     * revision is the point-in-time of the key-value store to use for the range.
+     * If revision is less or equal to zero, the range is over the newest key-value store.
+     * If the revision has been compacted, ErrCompacted is returned as a response.
+     * 
+ * + * int64 revision = 4; + * @return This builder for chaining. + */ + public Builder clearRevision() { + + revision_ = 0L; + onChanged(); + return this; + } + + private int sortOrder_ = 0; + /** + *
+     * sort_order is the order for returned sorted results.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return The enum numeric value on the wire for sortOrder. + */ + @java.lang.Override public int getSortOrderValue() { + return sortOrder_; + } + /** + *
+     * sort_order is the order for returned sorted results.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @param value The enum numeric value on the wire for sortOrder to set. + * @return This builder for chaining. + */ + public Builder setSortOrderValue(int value) { + + sortOrder_ = value; + onChanged(); + return this; + } + /** + *
+     * sort_order is the order for returned sorted results.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return The sortOrder. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder getSortOrder() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder result = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder.valueOf(sortOrder_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder.UNRECOGNIZED : result; + } + /** + *
+     * sort_order is the order for returned sorted results.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @param value The sortOrder to set. + * @return This builder for chaining. + */ + public Builder setSortOrder(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder value) { + if (value == null) { + throw new NullPointerException(); + } + + sortOrder_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * sort_order is the order for returned sorted results.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return This builder for chaining. + */ + public Builder clearSortOrder() { + + sortOrder_ = 0; + onChanged(); + return this; + } + + private int sortTarget_ = 0; + /** + *
+     * sort_target is the key-value field to use for sorting.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return The enum numeric value on the wire for sortTarget. + */ + @java.lang.Override public int getSortTargetValue() { + return sortTarget_; + } + /** + *
+     * sort_target is the key-value field to use for sorting.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @param value The enum numeric value on the wire for sortTarget to set. + * @return This builder for chaining. + */ + public Builder setSortTargetValue(int value) { + + sortTarget_ = value; + onChanged(); + return this; + } + /** + *
+     * sort_target is the key-value field to use for sorting.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return The sortTarget. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget getSortTarget() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget result = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget.valueOf(sortTarget_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget.UNRECOGNIZED : result; + } + /** + *
+     * sort_target is the key-value field to use for sorting.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @param value The sortTarget to set. + * @return This builder for chaining. + */ + public Builder setSortTarget(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget value) { + if (value == null) { + throw new NullPointerException(); + } + + sortTarget_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * sort_target is the key-value field to use for sorting.
+     * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return This builder for chaining. + */ + public Builder clearSortTarget() { + + sortTarget_ = 0; + onChanged(); + return this; + } + + private boolean serializable_ ; + /** + *
+     * serializable sets the range request to use serializable member-local reads.
+     * Range requests are linearizable by default; linearizable requests have higher
+     * latency and lower throughput than serializable requests but reflect the current
+     * consensus of the cluster. For better performance, in exchange for possible stale reads,
+     * a serializable range request is served locally without needing to reach consensus
+     * with other nodes in the cluster.
+     * 
+ * + * bool serializable = 7; + * @return The serializable. + */ + @java.lang.Override + public boolean getSerializable() { + return serializable_; + } + /** + *
+     * serializable sets the range request to use serializable member-local reads.
+     * Range requests are linearizable by default; linearizable requests have higher
+     * latency and lower throughput than serializable requests but reflect the current
+     * consensus of the cluster. For better performance, in exchange for possible stale reads,
+     * a serializable range request is served locally without needing to reach consensus
+     * with other nodes in the cluster.
+     * 
+ * + * bool serializable = 7; + * @param value The serializable to set. + * @return This builder for chaining. + */ + public Builder setSerializable(boolean value) { + + serializable_ = value; + onChanged(); + return this; + } + /** + *
+     * serializable sets the range request to use serializable member-local reads.
+     * Range requests are linearizable by default; linearizable requests have higher
+     * latency and lower throughput than serializable requests but reflect the current
+     * consensus of the cluster. For better performance, in exchange for possible stale reads,
+     * a serializable range request is served locally without needing to reach consensus
+     * with other nodes in the cluster.
+     * 
+ * + * bool serializable = 7; + * @return This builder for chaining. + */ + public Builder clearSerializable() { + + serializable_ = false; + onChanged(); + return this; + } + + private boolean keysOnly_ ; + /** + *
+     * keys_only when set returns only the keys and not the values.
+     * 
+ * + * bool keys_only = 8; + * @return The keysOnly. + */ + @java.lang.Override + public boolean getKeysOnly() { + return keysOnly_; + } + /** + *
+     * keys_only when set returns only the keys and not the values.
+     * 
+ * + * bool keys_only = 8; + * @param value The keysOnly to set. + * @return This builder for chaining. + */ + public Builder setKeysOnly(boolean value) { + + keysOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * keys_only when set returns only the keys and not the values.
+     * 
+ * + * bool keys_only = 8; + * @return This builder for chaining. + */ + public Builder clearKeysOnly() { + + keysOnly_ = false; + onChanged(); + return this; + } + + private boolean countOnly_ ; + /** + *
+     * count_only when set returns only the count of the keys in the range.
+     * 
+ * + * bool count_only = 9; + * @return The countOnly. + */ + @java.lang.Override + public boolean getCountOnly() { + return countOnly_; + } + /** + *
+     * count_only when set returns only the count of the keys in the range.
+     * 
+ * + * bool count_only = 9; + * @param value The countOnly to set. + * @return This builder for chaining. + */ + public Builder setCountOnly(boolean value) { + + countOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * count_only when set returns only the count of the keys in the range.
+     * 
+ * + * bool count_only = 9; + * @return This builder for chaining. + */ + public Builder clearCountOnly() { + + countOnly_ = false; + onChanged(); + return this; + } + + private long minModRevision_ ; + /** + *
+     * min_mod_revision is the lower bound for returned key mod revisions; all keys with
+     * lesser mod revisions will be filtered away.
+     * 
+ * + * int64 min_mod_revision = 10; + * @return The minModRevision. + */ + @java.lang.Override + public long getMinModRevision() { + return minModRevision_; + } + /** + *
+     * min_mod_revision is the lower bound for returned key mod revisions; all keys with
+     * lesser mod revisions will be filtered away.
+     * 
+ * + * int64 min_mod_revision = 10; + * @param value The minModRevision to set. + * @return This builder for chaining. + */ + public Builder setMinModRevision(long value) { + + minModRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * min_mod_revision is the lower bound for returned key mod revisions; all keys with
+     * lesser mod revisions will be filtered away.
+     * 
+ * + * int64 min_mod_revision = 10; + * @return This builder for chaining. + */ + public Builder clearMinModRevision() { + + minModRevision_ = 0L; + onChanged(); + return this; + } + + private long maxModRevision_ ; + /** + *
+     * max_mod_revision is the upper bound for returned key mod revisions; all keys with
+     * greater mod revisions will be filtered away.
+     * 
+ * + * int64 max_mod_revision = 11; + * @return The maxModRevision. + */ + @java.lang.Override + public long getMaxModRevision() { + return maxModRevision_; + } + /** + *
+     * max_mod_revision is the upper bound for returned key mod revisions; all keys with
+     * greater mod revisions will be filtered away.
+     * 
+ * + * int64 max_mod_revision = 11; + * @param value The maxModRevision to set. + * @return This builder for chaining. + */ + public Builder setMaxModRevision(long value) { + + maxModRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * max_mod_revision is the upper bound for returned key mod revisions; all keys with
+     * greater mod revisions will be filtered away.
+     * 
+ * + * int64 max_mod_revision = 11; + * @return This builder for chaining. + */ + public Builder clearMaxModRevision() { + + maxModRevision_ = 0L; + onChanged(); + return this; + } + + private long minCreateRevision_ ; + /** + *
+     * min_create_revision is the lower bound for returned key create revisions; all keys with
+     * lesser create trevisions will be filtered away.
+     * 
+ * + * int64 min_create_revision = 12; + * @return The minCreateRevision. + */ + @java.lang.Override + public long getMinCreateRevision() { + return minCreateRevision_; + } + /** + *
+     * min_create_revision is the lower bound for returned key create revisions; all keys with
+     * lesser create trevisions will be filtered away.
+     * 
+ * + * int64 min_create_revision = 12; + * @param value The minCreateRevision to set. + * @return This builder for chaining. + */ + public Builder setMinCreateRevision(long value) { + + minCreateRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * min_create_revision is the lower bound for returned key create revisions; all keys with
+     * lesser create trevisions will be filtered away.
+     * 
+ * + * int64 min_create_revision = 12; + * @return This builder for chaining. + */ + public Builder clearMinCreateRevision() { + + minCreateRevision_ = 0L; + onChanged(); + return this; + } + + private long maxCreateRevision_ ; + /** + *
+     * max_create_revision is the upper bound for returned key create revisions; all keys with
+     * greater create revisions will be filtered away.
+     * 
+ * + * int64 max_create_revision = 13; + * @return The maxCreateRevision. + */ + @java.lang.Override + public long getMaxCreateRevision() { + return maxCreateRevision_; + } + /** + *
+     * max_create_revision is the upper bound for returned key create revisions; all keys with
+     * greater create revisions will be filtered away.
+     * 
+ * + * int64 max_create_revision = 13; + * @param value The maxCreateRevision to set. + * @return This builder for chaining. + */ + public Builder setMaxCreateRevision(long value) { + + maxCreateRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * max_create_revision is the upper bound for returned key create revisions; all keys with
+     * greater create revisions will be filtered away.
+     * 
+ * + * int64 max_create_revision = 13; + * @return This builder for chaining. + */ + public Builder clearMaxCreateRevision() { + + maxCreateRevision_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.RangeRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.RangeRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RangeRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequestOrBuilder.java new file mode 100644 index 0000000..949ca06 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeRequestOrBuilder.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface RangeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.RangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * key is the first key for the range. If range_end is not given, the request only looks up key.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * range_end is the upper bound on the requested range [key, range_end).
+   * If range_end is '\0', the range is all keys >= key.
+   * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
+   * then the range request gets all keys prefixed with key.
+   * If both key and range_end are '\0', then the range request returns all keys.
+   * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + com.google.protobuf.ByteString getRangeEnd(); + + /** + *
+   * limit is a limit on the number of keys returned for the request. When limit is set to 0,
+   * it is treated as no limit.
+   * 
+ * + * int64 limit = 3; + * @return The limit. + */ + long getLimit(); + + /** + *
+   * revision is the point-in-time of the key-value store to use for the range.
+   * If revision is less or equal to zero, the range is over the newest key-value store.
+   * If the revision has been compacted, ErrCompacted is returned as a response.
+   * 
+ * + * int64 revision = 4; + * @return The revision. + */ + long getRevision(); + + /** + *
+   * sort_order is the order for returned sorted results.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return The enum numeric value on the wire for sortOrder. + */ + int getSortOrderValue(); + /** + *
+   * sort_order is the order for returned sorted results.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; + * @return The sortOrder. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortOrder getSortOrder(); + + /** + *
+   * sort_target is the key-value field to use for sorting.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return The enum numeric value on the wire for sortTarget. + */ + int getSortTargetValue(); + /** + *
+   * sort_target is the key-value field to use for sorting.
+   * 
+ * + * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; + * @return The sortTarget. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.SortTarget getSortTarget(); + + /** + *
+   * serializable sets the range request to use serializable member-local reads.
+   * Range requests are linearizable by default; linearizable requests have higher
+   * latency and lower throughput than serializable requests but reflect the current
+   * consensus of the cluster. For better performance, in exchange for possible stale reads,
+   * a serializable range request is served locally without needing to reach consensus
+   * with other nodes in the cluster.
+   * 
+ * + * bool serializable = 7; + * @return The serializable. + */ + boolean getSerializable(); + + /** + *
+   * keys_only when set returns only the keys and not the values.
+   * 
+ * + * bool keys_only = 8; + * @return The keysOnly. + */ + boolean getKeysOnly(); + + /** + *
+   * count_only when set returns only the count of the keys in the range.
+   * 
+ * + * bool count_only = 9; + * @return The countOnly. + */ + boolean getCountOnly(); + + /** + *
+   * min_mod_revision is the lower bound for returned key mod revisions; all keys with
+   * lesser mod revisions will be filtered away.
+   * 
+ * + * int64 min_mod_revision = 10; + * @return The minModRevision. + */ + long getMinModRevision(); + + /** + *
+   * max_mod_revision is the upper bound for returned key mod revisions; all keys with
+   * greater mod revisions will be filtered away.
+   * 
+ * + * int64 max_mod_revision = 11; + * @return The maxModRevision. + */ + long getMaxModRevision(); + + /** + *
+   * min_create_revision is the lower bound for returned key create revisions; all keys with
+   * lesser create trevisions will be filtered away.
+   * 
+ * + * int64 min_create_revision = 12; + * @return The minCreateRevision. + */ + long getMinCreateRevision(); + + /** + *
+   * max_create_revision is the upper bound for returned key create revisions; all keys with
+   * greater create revisions will be filtered away.
+   * 
+ * + * int64 max_create_revision = 13; + * @return The maxCreateRevision. + */ + long getMaxCreateRevision(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponse.java new file mode 100644 index 0000000..cfc3072 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponse.java @@ -0,0 +1,1235 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.RangeResponse} + */ +public final class RangeResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.RangeResponse) + RangeResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use RangeResponse.newBuilder() to construct. + private RangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RangeResponse() { + kvs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RangeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RangeResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + kvs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + kvs_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.parser(), extensionRegistry)); + break; + } + case 24: { + + more_ = input.readBool(); + break; + } + case 32: { + + count_ = input.readInt64(); + 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)) { + kvs_ = java.util.Collections.unmodifiableList(kvs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int KVS_FIELD_NUMBER = 2; + private java.util.List kvs_; + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + @java.lang.Override + public java.util.List getKvsList() { + return kvs_; + } + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + @java.lang.Override + public java.util.List + getKvsOrBuilderList() { + return kvs_; + } + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + @java.lang.Override + public int getKvsCount() { + return kvs_.size(); + } + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getKvs(int index) { + return kvs_.get(index); + } + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getKvsOrBuilder( + int index) { + return kvs_.get(index); + } + + public static final int MORE_FIELD_NUMBER = 3; + private boolean more_; + /** + *
+   * more indicates if there are more keys to return in the requested range.
+   * 
+ * + * bool more = 3; + * @return The more. + */ + @java.lang.Override + public boolean getMore() { + return more_; + } + + public static final int COUNT_FIELD_NUMBER = 4; + private long count_; + /** + *
+   * count is set to the number of keys within the range when requested.
+   * 
+ * + * int64 count = 4; + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < kvs_.size(); i++) { + output.writeMessage(2, kvs_.get(i)); + } + if (more_ != false) { + output.writeBool(3, more_); + } + if (count_ != 0L) { + output.writeInt64(4, count_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < kvs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, kvs_.get(i)); + } + if (more_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, more_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, count_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getKvsList() + .equals(other.getKvsList())) return false; + if (getMore() + != other.getMore()) return false; + if (getCount() + != other.getCount()) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getKvsCount() > 0) { + hash = (37 * hash) + KVS_FIELD_NUMBER; + hash = (53 * hash) + getKvsList().hashCode(); + } + hash = (37 * hash) + MORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMore()); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.RangeResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.RangeResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getKvsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (kvsBuilder_ == null) { + kvs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + kvsBuilder_.clear(); + } + more_ = false; + + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RangeResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (kvsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + kvs_ = java.util.Collections.unmodifiableList(kvs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.kvs_ = kvs_; + } else { + result.kvs_ = kvsBuilder_.build(); + } + result.more_ = more_; + result.count_ = count_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (kvsBuilder_ == null) { + if (!other.kvs_.isEmpty()) { + if (kvs_.isEmpty()) { + kvs_ = other.kvs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKvsIsMutable(); + kvs_.addAll(other.kvs_); + } + onChanged(); + } + } else { + if (!other.kvs_.isEmpty()) { + if (kvsBuilder_.isEmpty()) { + kvsBuilder_.dispose(); + kvsBuilder_ = null; + kvs_ = other.kvs_; + bitField0_ = (bitField0_ & ~0x00000001); + kvsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKvsFieldBuilder() : null; + } else { + kvsBuilder_.addAllMessages(other.kvs_); + } + } + } + if (other.getMore() != false) { + setMore(other.getMore()); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List kvs_ = + java.util.Collections.emptyList(); + private void ensureKvsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + kvs_ = new java.util.ArrayList(kvs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> kvsBuilder_; + + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public java.util.List getKvsList() { + if (kvsBuilder_ == null) { + return java.util.Collections.unmodifiableList(kvs_); + } else { + return kvsBuilder_.getMessageList(); + } + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public int getKvsCount() { + if (kvsBuilder_ == null) { + return kvs_.size(); + } else { + return kvsBuilder_.getCount(); + } + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getKvs(int index) { + if (kvsBuilder_ == null) { + return kvs_.get(index); + } else { + return kvsBuilder_.getMessage(index); + } + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder setKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (kvsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKvsIsMutable(); + kvs_.set(index, value); + onChanged(); + } else { + kvsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder setKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (kvsBuilder_ == null) { + ensureKvsIsMutable(); + kvs_.set(index, builderForValue.build()); + onChanged(); + } else { + kvsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder addKvs(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (kvsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKvsIsMutable(); + kvs_.add(value); + onChanged(); + } else { + kvsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder addKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (kvsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKvsIsMutable(); + kvs_.add(index, value); + onChanged(); + } else { + kvsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder addKvs( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (kvsBuilder_ == null) { + ensureKvsIsMutable(); + kvs_.add(builderForValue.build()); + onChanged(); + } else { + kvsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder addKvs( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (kvsBuilder_ == null) { + ensureKvsIsMutable(); + kvs_.add(index, builderForValue.build()); + onChanged(); + } else { + kvsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder addAllKvs( + java.lang.Iterable values) { + if (kvsBuilder_ == null) { + ensureKvsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kvs_); + onChanged(); + } else { + kvsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder clearKvs() { + if (kvsBuilder_ == null) { + kvs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + kvsBuilder_.clear(); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public Builder removeKvs(int index) { + if (kvsBuilder_ == null) { + ensureKvsIsMutable(); + kvs_.remove(index); + onChanged(); + } else { + kvsBuilder_.remove(index); + } + return this; + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder getKvsBuilder( + int index) { + return getKvsFieldBuilder().getBuilder(index); + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getKvsOrBuilder( + int index) { + if (kvsBuilder_ == null) { + return kvs_.get(index); } else { + return kvsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public java.util.List + getKvsOrBuilderList() { + if (kvsBuilder_ != null) { + return kvsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(kvs_); + } + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder addKvsBuilder() { + return getKvsFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance()); + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder addKvsBuilder( + int index) { + return getKvsFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance()); + } + /** + *
+     * kvs is the list of key-value pairs matched by the range request.
+     * kvs is empty when count is requested.
+     * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + public java.util.List + getKvsBuilderList() { + return getKvsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> + getKvsFieldBuilder() { + if (kvsBuilder_ == null) { + kvsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder>( + kvs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + kvs_ = null; + } + return kvsBuilder_; + } + + private boolean more_ ; + /** + *
+     * more indicates if there are more keys to return in the requested range.
+     * 
+ * + * bool more = 3; + * @return The more. + */ + @java.lang.Override + public boolean getMore() { + return more_; + } + /** + *
+     * more indicates if there are more keys to return in the requested range.
+     * 
+ * + * bool more = 3; + * @param value The more to set. + * @return This builder for chaining. + */ + public Builder setMore(boolean value) { + + more_ = value; + onChanged(); + return this; + } + /** + *
+     * more indicates if there are more keys to return in the requested range.
+     * 
+ * + * bool more = 3; + * @return This builder for chaining. + */ + public Builder clearMore() { + + more_ = false; + onChanged(); + return this; + } + + private long count_ ; + /** + *
+     * count is set to the number of keys within the range when requested.
+     * 
+ * + * int64 count = 4; + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + /** + *
+     * count is set to the number of keys within the range when requested.
+     * 
+ * + * int64 count = 4; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + *
+     * count is set to the number of keys within the range when requested.
+     * 
+ * + * int64 count = 4; + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.RangeResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.RangeResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RangeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RangeResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponseOrBuilder.java new file mode 100644 index 0000000..4828bd7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RangeResponseOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface RangeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.RangeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + java.util.List + getKvsList(); + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getKvs(int index); + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + int getKvsCount(); + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + java.util.List + getKvsOrBuilderList(); + /** + *
+   * kvs is the list of key-value pairs matched by the range request.
+   * kvs is empty when count is requested.
+   * 
+ * + * repeated .mvccpb.KeyValue kvs = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getKvsOrBuilder( + int index); + + /** + *
+   * more indicates if there are more keys to return in the requested range.
+   * 
+ * + * bool more = 3; + * @return The more. + */ + boolean getMore(); + + /** + *
+   * count is set to the number of keys within the range when requested.
+   * 
+ * + * int64 count = 4; + * @return The count. + */ + long getCount(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOp.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOp.java new file mode 100644 index 0000000..fb9f62a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOp.java @@ -0,0 +1,1344 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.RequestOp} + */ +public final class RequestOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.RequestOp) + RequestOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use RequestOp.newBuilder() to construct. + private RequestOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RequestOp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RequestOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RequestOp( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder subBuilder = null; + if (requestCase_ == 1) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_).toBuilder(); + } + request_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 1; + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder subBuilder = null; + if (requestCase_ == 2) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_).toBuilder(); + } + request_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 2; + break; + } + case 26: { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder subBuilder = null; + if (requestCase_ == 3) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_).toBuilder(); + } + request_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 3; + break; + } + case 34: { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder subBuilder = null; + if (requestCase_ == 4) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_).toBuilder(); + } + request_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 4; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RequestOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RequestOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.class, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder.class); + } + + private int requestCase_ = 0; + private java.lang.Object request_; + public enum RequestCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + REQUEST_RANGE(1), + REQUEST_PUT(2), + REQUEST_DELETE_RANGE(3), + REQUEST_TXN(4), + REQUEST_NOT_SET(0); + private final int value; + private RequestCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 1: return REQUEST_RANGE; + case 2: return REQUEST_PUT; + case 3: return REQUEST_DELETE_RANGE; + case 4: return REQUEST_TXN; + case 0: return REQUEST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + public static final int REQUEST_RANGE_FIELD_NUMBER = 1; + /** + * .etcdserverpb.RangeRequest request_range = 1; + * @return Whether the requestRange field is set. + */ + @java.lang.Override + public boolean hasRequestRange() { + return requestCase_ == 1; + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + * @return The requestRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest getRequestRange() { + if (requestCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder getRequestRangeOrBuilder() { + if (requestCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } + + public static final int REQUEST_PUT_FIELD_NUMBER = 2; + /** + * .etcdserverpb.PutRequest request_put = 2; + * @return Whether the requestPut field is set. + */ + @java.lang.Override + public boolean hasRequestPut() { + return requestCase_ == 2; + } + /** + * .etcdserverpb.PutRequest request_put = 2; + * @return The requestPut. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest getRequestPut() { + if (requestCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder getRequestPutOrBuilder() { + if (requestCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } + + public static final int REQUEST_DELETE_RANGE_FIELD_NUMBER = 3; + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + * @return Whether the requestDeleteRange field is set. + */ + @java.lang.Override + public boolean hasRequestDeleteRange() { + return requestCase_ == 3; + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + * @return The requestDeleteRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest getRequestDeleteRange() { + if (requestCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder getRequestDeleteRangeOrBuilder() { + if (requestCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } + + public static final int REQUEST_TXN_FIELD_NUMBER = 4; + /** + * .etcdserverpb.TxnRequest request_txn = 4; + * @return Whether the requestTxn field is set. + */ + @java.lang.Override + public boolean hasRequestTxn() { + return requestCase_ == 4; + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + * @return The requestTxn. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest getRequestTxn() { + if (requestCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder getRequestTxnOrBuilder() { + if (requestCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (requestCase_ == 1) { + output.writeMessage(1, (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_); + } + if (requestCase_ == 2) { + output.writeMessage(2, (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_); + } + if (requestCase_ == 3) { + output.writeMessage(3, (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (requestCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_); + } + if (requestCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_); + } + if (requestCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_); + } + if (requestCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp other = (org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp) obj; + + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 1: + if (!getRequestRange() + .equals(other.getRequestRange())) return false; + break; + case 2: + if (!getRequestPut() + .equals(other.getRequestPut())) return false; + break; + case 3: + if (!getRequestDeleteRange() + .equals(other.getRequestDeleteRange())) return false; + break; + case 4: + if (!getRequestTxn() + .equals(other.getRequestTxn())) return false; + break; + case 0: + default: + } + 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(); + switch (requestCase_) { + case 1: + hash = (37 * hash) + REQUEST_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRequestRange().hashCode(); + break; + case 2: + hash = (37 * hash) + REQUEST_PUT_FIELD_NUMBER; + hash = (53 * hash) + getRequestPut().hashCode(); + break; + case 3: + hash = (37 * hash) + REQUEST_DELETE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRequestDeleteRange().hashCode(); + break; + case 4: + hash = (37 * hash) + REQUEST_TXN_FIELD_NUMBER; + hash = (53 * hash) + getRequestTxn().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.RequestOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.RequestOp) + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RequestOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RequestOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.class, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.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(); + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_RequestOp_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp build() { + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp result = new org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp(this); + if (requestCase_ == 1) { + if (requestRangeBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestRangeBuilder_.build(); + } + } + if (requestCase_ == 2) { + if (requestPutBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestPutBuilder_.build(); + } + } + if (requestCase_ == 3) { + if (requestDeleteRangeBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestDeleteRangeBuilder_.build(); + } + } + if (requestCase_ == 4) { + if (requestTxnBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestTxnBuilder_.build(); + } + } + result.requestCase_ = requestCase_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.getDefaultInstance()) return this; + switch (other.getRequestCase()) { + case REQUEST_RANGE: { + mergeRequestRange(other.getRequestRange()); + break; + } + case REQUEST_PUT: { + mergeRequestPut(other.getRequestPut()); + break; + } + case REQUEST_DELETE_RANGE: { + mergeRequestDeleteRange(other.getRequestDeleteRange()); + break; + } + case REQUEST_TXN: { + mergeRequestTxn(other.getRequestTxn()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int requestCase_ = 0; + private java.lang.Object request_; + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder> requestRangeBuilder_; + /** + * .etcdserverpb.RangeRequest request_range = 1; + * @return Whether the requestRange field is set. + */ + @java.lang.Override + public boolean hasRequestRange() { + return requestCase_ == 1; + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + * @return The requestRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest getRequestRange() { + if (requestRangeBuilder_ == null) { + if (requestCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } else { + if (requestCase_ == 1) { + return requestRangeBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + public Builder setRequestRange(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest value) { + if (requestRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestRangeBuilder_.setMessage(value); + } + requestCase_ = 1; + return this; + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + public Builder setRequestRange( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder builderForValue) { + if (requestRangeBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestRangeBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 1; + return this; + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + public Builder mergeRequestRange(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest value) { + if (requestRangeBuilder_ == null) { + if (requestCase_ == 1 && + request_ != org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance()) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 1) { + requestRangeBuilder_.mergeFrom(value); + } + requestRangeBuilder_.setMessage(value); + } + requestCase_ = 1; + return this; + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + public Builder clearRequestRange() { + if (requestRangeBuilder_ == null) { + if (requestCase_ == 1) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 1) { + requestCase_ = 0; + request_ = null; + } + requestRangeBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder getRequestRangeBuilder() { + return getRequestRangeFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder getRequestRangeOrBuilder() { + if ((requestCase_ == 1) && (requestRangeBuilder_ != null)) { + return requestRangeBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder> + getRequestRangeFieldBuilder() { + if (requestRangeBuilder_ == null) { + if (!(requestCase_ == 1)) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.getDefaultInstance(); + } + requestRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 1; + onChanged();; + return requestRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder> requestPutBuilder_; + /** + * .etcdserverpb.PutRequest request_put = 2; + * @return Whether the requestPut field is set. + */ + @java.lang.Override + public boolean hasRequestPut() { + return requestCase_ == 2; + } + /** + * .etcdserverpb.PutRequest request_put = 2; + * @return The requestPut. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest getRequestPut() { + if (requestPutBuilder_ == null) { + if (requestCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } else { + if (requestCase_ == 2) { + return requestPutBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + public Builder setRequestPut(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest value) { + if (requestPutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestPutBuilder_.setMessage(value); + } + requestCase_ = 2; + return this; + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + public Builder setRequestPut( + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder builderForValue) { + if (requestPutBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestPutBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 2; + return this; + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + public Builder mergeRequestPut(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest value) { + if (requestPutBuilder_ == null) { + if (requestCase_ == 2 && + request_ != org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance()) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 2) { + requestPutBuilder_.mergeFrom(value); + } + requestPutBuilder_.setMessage(value); + } + requestCase_ = 2; + return this; + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + public Builder clearRequestPut() { + if (requestPutBuilder_ == null) { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + } + requestPutBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder getRequestPutBuilder() { + return getRequestPutFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder getRequestPutOrBuilder() { + if ((requestCase_ == 2) && (requestPutBuilder_ != null)) { + return requestPutBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder> + getRequestPutFieldBuilder() { + if (requestPutBuilder_ == null) { + if (!(requestCase_ == 2)) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.getDefaultInstance(); + } + requestPutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 2; + onChanged();; + return requestPutBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder> requestDeleteRangeBuilder_; + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + * @return Whether the requestDeleteRange field is set. + */ + @java.lang.Override + public boolean hasRequestDeleteRange() { + return requestCase_ == 3; + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + * @return The requestDeleteRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest getRequestDeleteRange() { + if (requestDeleteRangeBuilder_ == null) { + if (requestCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } else { + if (requestCase_ == 3) { + return requestDeleteRangeBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + public Builder setRequestDeleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest value) { + if (requestDeleteRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestDeleteRangeBuilder_.setMessage(value); + } + requestCase_ = 3; + return this; + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + public Builder setRequestDeleteRange( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder builderForValue) { + if (requestDeleteRangeBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestDeleteRangeBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 3; + return this; + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + public Builder mergeRequestDeleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest value) { + if (requestDeleteRangeBuilder_ == null) { + if (requestCase_ == 3 && + request_ != org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance()) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 3) { + requestDeleteRangeBuilder_.mergeFrom(value); + } + requestDeleteRangeBuilder_.setMessage(value); + } + requestCase_ = 3; + return this; + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + public Builder clearRequestDeleteRange() { + if (requestDeleteRangeBuilder_ == null) { + if (requestCase_ == 3) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 3) { + requestCase_ = 0; + request_ = null; + } + requestDeleteRangeBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder getRequestDeleteRangeBuilder() { + return getRequestDeleteRangeFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder getRequestDeleteRangeOrBuilder() { + if ((requestCase_ == 3) && (requestDeleteRangeBuilder_ != null)) { + return requestDeleteRangeBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder> + getRequestDeleteRangeFieldBuilder() { + if (requestDeleteRangeBuilder_ == null) { + if (!(requestCase_ == 3)) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.getDefaultInstance(); + } + requestDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 3; + onChanged();; + return requestDeleteRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder> requestTxnBuilder_; + /** + * .etcdserverpb.TxnRequest request_txn = 4; + * @return Whether the requestTxn field is set. + */ + @java.lang.Override + public boolean hasRequestTxn() { + return requestCase_ == 4; + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + * @return The requestTxn. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest getRequestTxn() { + if (requestTxnBuilder_ == null) { + if (requestCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return requestTxnBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + public Builder setRequestTxn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest value) { + if (requestTxnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestTxnBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + public Builder setRequestTxn( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder builderForValue) { + if (requestTxnBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestTxnBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + public Builder mergeRequestTxn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest value) { + if (requestTxnBuilder_ == null) { + if (requestCase_ == 4 && + request_ != org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance()) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + requestTxnBuilder_.mergeFrom(value); + } + requestTxnBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + public Builder clearRequestTxn() { + if (requestTxnBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + requestTxnBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder getRequestTxnBuilder() { + return getRequestTxnFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder getRequestTxnOrBuilder() { + if ((requestCase_ == 4) && (requestTxnBuilder_ != null)) { + return requestTxnBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder> + getRequestTxnFieldBuilder() { + if (requestTxnBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } + requestTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged();; + return requestTxnBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.RequestOp) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.RequestOp) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestOp(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 org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOpOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOpOrBuilder.java new file mode 100644 index 0000000..9a1a39a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/RequestOpOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface RequestOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.RequestOp) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.RangeRequest request_range = 1; + * @return Whether the requestRange field is set. + */ + boolean hasRequestRange(); + /** + * .etcdserverpb.RangeRequest request_range = 1; + * @return The requestRange. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest getRequestRange(); + /** + * .etcdserverpb.RangeRequest request_range = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequestOrBuilder getRequestRangeOrBuilder(); + + /** + * .etcdserverpb.PutRequest request_put = 2; + * @return Whether the requestPut field is set. + */ + boolean hasRequestPut(); + /** + * .etcdserverpb.PutRequest request_put = 2; + * @return The requestPut. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest getRequestPut(); + /** + * .etcdserverpb.PutRequest request_put = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequestOrBuilder getRequestPutOrBuilder(); + + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + * @return Whether the requestDeleteRange field is set. + */ + boolean hasRequestDeleteRange(); + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + * @return The requestDeleteRange. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest getRequestDeleteRange(); + /** + * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequestOrBuilder getRequestDeleteRangeOrBuilder(); + + /** + * .etcdserverpb.TxnRequest request_txn = 4; + * @return Whether the requestTxn field is set. + */ + boolean hasRequestTxn(); + /** + * .etcdserverpb.TxnRequest request_txn = 4; + * @return The requestTxn. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest getRequestTxn(); + /** + * .etcdserverpb.TxnRequest request_txn = 4; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder getRequestTxnOrBuilder(); + + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.RequestCase getRequestCase(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeader.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeader.java new file mode 100644 index 0000000..8681f9d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeader.java @@ -0,0 +1,743 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.ResponseHeader} + */ +public final class ResponseHeader extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.ResponseHeader) + ResponseHeaderOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResponseHeader.newBuilder() to construct. + private ResponseHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResponseHeader() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResponseHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResponseHeader( + 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 8: { + + clusterId_ = input.readUInt64(); + break; + } + case 16: { + + memberId_ = input.readUInt64(); + break; + } + case 24: { + + revision_ = input.readInt64(); + break; + } + case 32: { + + raftTerm_ = input.readUInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.class, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder.class); + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 1; + private long clusterId_; + /** + *
+   * cluster_id is the ID of the cluster which sent the response.
+   * 
+ * + * uint64 cluster_id = 1; + * @return The clusterId. + */ + @java.lang.Override + public long getClusterId() { + return clusterId_; + } + + public static final int MEMBER_ID_FIELD_NUMBER = 2; + private long memberId_; + /** + *
+   * member_id is the ID of the member which sent the response.
+   * 
+ * + * uint64 member_id = 2; + * @return The memberId. + */ + @java.lang.Override + public long getMemberId() { + return memberId_; + } + + public static final int REVISION_FIELD_NUMBER = 3; + private long revision_; + /** + *
+   * revision is the key-value store revision when the request was applied.
+   * 
+ * + * int64 revision = 3; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + + public static final int RAFT_TERM_FIELD_NUMBER = 4; + private long raftTerm_; + /** + *
+   * raft_term is the raft term when the request was applied.
+   * 
+ * + * uint64 raft_term = 4; + * @return The raftTerm. + */ + @java.lang.Override + public long getRaftTerm() { + return raftTerm_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (clusterId_ != 0L) { + output.writeUInt64(1, clusterId_); + } + if (memberId_ != 0L) { + output.writeUInt64(2, memberId_); + } + if (revision_ != 0L) { + output.writeInt64(3, revision_); + } + if (raftTerm_ != 0L) { + output.writeUInt64(4, raftTerm_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, clusterId_); + } + if (memberId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, memberId_); + } + if (revision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, revision_); + } + if (raftTerm_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, raftTerm_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader other = (org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader) obj; + + if (getClusterId() + != other.getClusterId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (getRevision() + != other.getRevision()) return false; + if (getRaftTerm() + != other.getRaftTerm()) 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) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClusterId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRevision()); + hash = (37 * hash) + RAFT_TERM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRaftTerm()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.ResponseHeader} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.ResponseHeader) + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.class, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.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(); + clusterId_ = 0L; + + memberId_ = 0L; + + revision_ = 0L; + + raftTerm_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseHeader_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader build() { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader result = new org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader(this); + result.clusterId_ = clusterId_; + result.memberId_ = memberId_; + result.revision_ = revision_; + result.raftTerm_ = raftTerm_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance()) return this; + if (other.getClusterId() != 0L) { + setClusterId(other.getClusterId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + if (other.getRevision() != 0L) { + setRevision(other.getRevision()); + } + if (other.getRaftTerm() != 0L) { + setRaftTerm(other.getRaftTerm()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long clusterId_ ; + /** + *
+     * cluster_id is the ID of the cluster which sent the response.
+     * 
+ * + * uint64 cluster_id = 1; + * @return The clusterId. + */ + @java.lang.Override + public long getClusterId() { + return clusterId_; + } + /** + *
+     * cluster_id is the ID of the cluster which sent the response.
+     * 
+ * + * uint64 cluster_id = 1; + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(long value) { + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * cluster_id is the ID of the cluster which sent the response.
+     * 
+ * + * uint64 cluster_id = 1; + * @return This builder for chaining. + */ + public Builder clearClusterId() { + + clusterId_ = 0L; + onChanged(); + return this; + } + + private long memberId_ ; + /** + *
+     * member_id is the ID of the member which sent the response.
+     * 
+ * + * uint64 member_id = 2; + * @return The memberId. + */ + @java.lang.Override + public long getMemberId() { + return memberId_; + } + /** + *
+     * member_id is the ID of the member which sent the response.
+     * 
+ * + * uint64 member_id = 2; + * @param value The memberId to set. + * @return This builder for chaining. + */ + public Builder setMemberId(long value) { + + memberId_ = value; + onChanged(); + return this; + } + /** + *
+     * member_id is the ID of the member which sent the response.
+     * 
+ * + * uint64 member_id = 2; + * @return This builder for chaining. + */ + public Builder clearMemberId() { + + memberId_ = 0L; + onChanged(); + return this; + } + + private long revision_ ; + /** + *
+     * revision is the key-value store revision when the request was applied.
+     * 
+ * + * int64 revision = 3; + * @return The revision. + */ + @java.lang.Override + public long getRevision() { + return revision_; + } + /** + *
+     * revision is the key-value store revision when the request was applied.
+     * 
+ * + * int64 revision = 3; + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(long value) { + + revision_ = value; + onChanged(); + return this; + } + /** + *
+     * revision is the key-value store revision when the request was applied.
+     * 
+ * + * int64 revision = 3; + * @return This builder for chaining. + */ + public Builder clearRevision() { + + revision_ = 0L; + onChanged(); + return this; + } + + private long raftTerm_ ; + /** + *
+     * raft_term is the raft term when the request was applied.
+     * 
+ * + * uint64 raft_term = 4; + * @return The raftTerm. + */ + @java.lang.Override + public long getRaftTerm() { + return raftTerm_; + } + /** + *
+     * raft_term is the raft term when the request was applied.
+     * 
+ * + * uint64 raft_term = 4; + * @param value The raftTerm to set. + * @return This builder for chaining. + */ + public Builder setRaftTerm(long value) { + + raftTerm_ = value; + onChanged(); + return this; + } + /** + *
+     * raft_term is the raft term when the request was applied.
+     * 
+ * + * uint64 raft_term = 4; + * @return This builder for chaining. + */ + public Builder clearRaftTerm() { + + raftTerm_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.ResponseHeader) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.ResponseHeader) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResponseHeader(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 org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeaderOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeaderOrBuilder.java new file mode 100644 index 0000000..61979a0 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseHeaderOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface ResponseHeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.ResponseHeader) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * cluster_id is the ID of the cluster which sent the response.
+   * 
+ * + * uint64 cluster_id = 1; + * @return The clusterId. + */ + long getClusterId(); + + /** + *
+   * member_id is the ID of the member which sent the response.
+   * 
+ * + * uint64 member_id = 2; + * @return The memberId. + */ + long getMemberId(); + + /** + *
+   * revision is the key-value store revision when the request was applied.
+   * 
+ * + * int64 revision = 3; + * @return The revision. + */ + long getRevision(); + + /** + *
+   * raft_term is the raft term when the request was applied.
+   * 
+ * + * uint64 raft_term = 4; + * @return The raftTerm. + */ + long getRaftTerm(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOp.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOp.java new file mode 100644 index 0000000..9d35a1d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOp.java @@ -0,0 +1,1344 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.ResponseOp} + */ +public final class ResponseOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.ResponseOp) + ResponseOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResponseOp.newBuilder() to construct. + private ResponseOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResponseOp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResponseOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResponseOp( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder subBuilder = null; + if (responseCase_ == 1) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_).toBuilder(); + } + response_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 1; + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder subBuilder = null; + if (responseCase_ == 2) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_).toBuilder(); + } + response_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 2; + break; + } + case 26: { + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder subBuilder = null; + if (responseCase_ == 3) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_).toBuilder(); + } + response_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 3; + break; + } + case 34: { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder subBuilder = null; + if (responseCase_ == 4) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_).toBuilder(); + } + response_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 4; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.class, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder.class); + } + + private int responseCase_ = 0; + private java.lang.Object response_; + public enum ResponseCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RESPONSE_RANGE(1), + RESPONSE_PUT(2), + RESPONSE_DELETE_RANGE(3), + RESPONSE_TXN(4), + RESPONSE_NOT_SET(0); + private final int value; + private ResponseCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: return RESPONSE_RANGE; + case 2: return RESPONSE_PUT; + case 3: return RESPONSE_DELETE_RANGE; + case 4: return RESPONSE_TXN; + case 0: return RESPONSE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public static final int RESPONSE_RANGE_FIELD_NUMBER = 1; + /** + * .etcdserverpb.RangeResponse response_range = 1; + * @return Whether the responseRange field is set. + */ + @java.lang.Override + public boolean hasResponseRange() { + return responseCase_ == 1; + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + * @return The responseRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse getResponseRange() { + if (responseCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder getResponseRangeOrBuilder() { + if (responseCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } + + public static final int RESPONSE_PUT_FIELD_NUMBER = 2; + /** + * .etcdserverpb.PutResponse response_put = 2; + * @return Whether the responsePut field is set. + */ + @java.lang.Override + public boolean hasResponsePut() { + return responseCase_ == 2; + } + /** + * .etcdserverpb.PutResponse response_put = 2; + * @return The responsePut. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse getResponsePut() { + if (responseCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder getResponsePutOrBuilder() { + if (responseCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } + + public static final int RESPONSE_DELETE_RANGE_FIELD_NUMBER = 3; + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + * @return Whether the responseDeleteRange field is set. + */ + @java.lang.Override + public boolean hasResponseDeleteRange() { + return responseCase_ == 3; + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + * @return The responseDeleteRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse getResponseDeleteRange() { + if (responseCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder getResponseDeleteRangeOrBuilder() { + if (responseCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } + + public static final int RESPONSE_TXN_FIELD_NUMBER = 4; + /** + * .etcdserverpb.TxnResponse response_txn = 4; + * @return Whether the responseTxn field is set. + */ + @java.lang.Override + public boolean hasResponseTxn() { + return responseCase_ == 4; + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + * @return The responseTxn. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse getResponseTxn() { + if (responseCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder getResponseTxnOrBuilder() { + if (responseCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (responseCase_ == 1) { + output.writeMessage(1, (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_); + } + if (responseCase_ == 2) { + output.writeMessage(2, (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_); + } + if (responseCase_ == 3) { + output.writeMessage(3, (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_); + } + if (responseCase_ == 4) { + output.writeMessage(4, (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_); + } + if (responseCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_); + } + if (responseCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_); + } + if (responseCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp other = (org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp) obj; + + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 1: + if (!getResponseRange() + .equals(other.getResponseRange())) return false; + break; + case 2: + if (!getResponsePut() + .equals(other.getResponsePut())) return false; + break; + case 3: + if (!getResponseDeleteRange() + .equals(other.getResponseDeleteRange())) return false; + break; + case 4: + if (!getResponseTxn() + .equals(other.getResponseTxn())) return false; + break; + case 0: + default: + } + 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(); + switch (responseCase_) { + case 1: + hash = (37 * hash) + RESPONSE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getResponseRange().hashCode(); + break; + case 2: + hash = (37 * hash) + RESPONSE_PUT_FIELD_NUMBER; + hash = (53 * hash) + getResponsePut().hashCode(); + break; + case 3: + hash = (37 * hash) + RESPONSE_DELETE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getResponseDeleteRange().hashCode(); + break; + case 4: + hash = (37 * hash) + RESPONSE_TXN_FIELD_NUMBER; + hash = (53 * hash) + getResponseTxn().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.ResponseOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.ResponseOp) + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.class, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.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(); + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_ResponseOp_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp build() { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp result = new org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp(this); + if (responseCase_ == 1) { + if (responseRangeBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseRangeBuilder_.build(); + } + } + if (responseCase_ == 2) { + if (responsePutBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responsePutBuilder_.build(); + } + } + if (responseCase_ == 3) { + if (responseDeleteRangeBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseDeleteRangeBuilder_.build(); + } + } + if (responseCase_ == 4) { + if (responseTxnBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseTxnBuilder_.build(); + } + } + result.responseCase_ = responseCase_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.getDefaultInstance()) return this; + switch (other.getResponseCase()) { + case RESPONSE_RANGE: { + mergeResponseRange(other.getResponseRange()); + break; + } + case RESPONSE_PUT: { + mergeResponsePut(other.getResponsePut()); + break; + } + case RESPONSE_DELETE_RANGE: { + mergeResponseDeleteRange(other.getResponseDeleteRange()); + break; + } + case RESPONSE_TXN: { + mergeResponseTxn(other.getResponseTxn()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int responseCase_ = 0; + private java.lang.Object response_; + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder> responseRangeBuilder_; + /** + * .etcdserverpb.RangeResponse response_range = 1; + * @return Whether the responseRange field is set. + */ + @java.lang.Override + public boolean hasResponseRange() { + return responseCase_ == 1; + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + * @return The responseRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse getResponseRange() { + if (responseRangeBuilder_ == null) { + if (responseCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } else { + if (responseCase_ == 1) { + return responseRangeBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + public Builder setResponseRange(org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse value) { + if (responseRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseRangeBuilder_.setMessage(value); + } + responseCase_ = 1; + return this; + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + public Builder setResponseRange( + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder builderForValue) { + if (responseRangeBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseRangeBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 1; + return this; + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + public Builder mergeResponseRange(org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse value) { + if (responseRangeBuilder_ == null) { + if (responseCase_ == 1 && + response_ != org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance()) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 1) { + responseRangeBuilder_.mergeFrom(value); + } + responseRangeBuilder_.setMessage(value); + } + responseCase_ = 1; + return this; + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + public Builder clearResponseRange() { + if (responseRangeBuilder_ == null) { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + } + responseRangeBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder getResponseRangeBuilder() { + return getResponseRangeFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder getResponseRangeOrBuilder() { + if ((responseCase_ == 1) && (responseRangeBuilder_ != null)) { + return responseRangeBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder> + getResponseRangeFieldBuilder() { + if (responseRangeBuilder_ == null) { + if (!(responseCase_ == 1)) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.getDefaultInstance(); + } + responseRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 1; + onChanged();; + return responseRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder> responsePutBuilder_; + /** + * .etcdserverpb.PutResponse response_put = 2; + * @return Whether the responsePut field is set. + */ + @java.lang.Override + public boolean hasResponsePut() { + return responseCase_ == 2; + } + /** + * .etcdserverpb.PutResponse response_put = 2; + * @return The responsePut. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse getResponsePut() { + if (responsePutBuilder_ == null) { + if (responseCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } else { + if (responseCase_ == 2) { + return responsePutBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + public Builder setResponsePut(org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse value) { + if (responsePutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responsePutBuilder_.setMessage(value); + } + responseCase_ = 2; + return this; + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + public Builder setResponsePut( + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder builderForValue) { + if (responsePutBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responsePutBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 2; + return this; + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + public Builder mergeResponsePut(org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse value) { + if (responsePutBuilder_ == null) { + if (responseCase_ == 2 && + response_ != org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance()) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 2) { + responsePutBuilder_.mergeFrom(value); + } + responsePutBuilder_.setMessage(value); + } + responseCase_ = 2; + return this; + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + public Builder clearResponsePut() { + if (responsePutBuilder_ == null) { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + responsePutBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder getResponsePutBuilder() { + return getResponsePutFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder getResponsePutOrBuilder() { + if ((responseCase_ == 2) && (responsePutBuilder_ != null)) { + return responsePutBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder> + getResponsePutFieldBuilder() { + if (responsePutBuilder_ == null) { + if (!(responseCase_ == 2)) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.getDefaultInstance(); + } + responsePutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 2; + onChanged();; + return responsePutBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder> responseDeleteRangeBuilder_; + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + * @return Whether the responseDeleteRange field is set. + */ + @java.lang.Override + public boolean hasResponseDeleteRange() { + return responseCase_ == 3; + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + * @return The responseDeleteRange. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse getResponseDeleteRange() { + if (responseDeleteRangeBuilder_ == null) { + if (responseCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } else { + if (responseCase_ == 3) { + return responseDeleteRangeBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + public Builder setResponseDeleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse value) { + if (responseDeleteRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseDeleteRangeBuilder_.setMessage(value); + } + responseCase_ = 3; + return this; + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + public Builder setResponseDeleteRange( + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder builderForValue) { + if (responseDeleteRangeBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseDeleteRangeBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 3; + return this; + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + public Builder mergeResponseDeleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse value) { + if (responseDeleteRangeBuilder_ == null) { + if (responseCase_ == 3 && + response_ != org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance()) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 3) { + responseDeleteRangeBuilder_.mergeFrom(value); + } + responseDeleteRangeBuilder_.setMessage(value); + } + responseCase_ = 3; + return this; + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + public Builder clearResponseDeleteRange() { + if (responseDeleteRangeBuilder_ == null) { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + } + responseDeleteRangeBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder getResponseDeleteRangeBuilder() { + return getResponseDeleteRangeFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder getResponseDeleteRangeOrBuilder() { + if ((responseCase_ == 3) && (responseDeleteRangeBuilder_ != null)) { + return responseDeleteRangeBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 3) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder> + getResponseDeleteRangeFieldBuilder() { + if (responseDeleteRangeBuilder_ == null) { + if (!(responseCase_ == 3)) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.getDefaultInstance(); + } + responseDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 3; + onChanged();; + return responseDeleteRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder> responseTxnBuilder_; + /** + * .etcdserverpb.TxnResponse response_txn = 4; + * @return Whether the responseTxn field is set. + */ + @java.lang.Override + public boolean hasResponseTxn() { + return responseCase_ == 4; + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + * @return The responseTxn. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse getResponseTxn() { + if (responseTxnBuilder_ == null) { + if (responseCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } else { + if (responseCase_ == 4) { + return responseTxnBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + public Builder setResponseTxn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse value) { + if (responseTxnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseTxnBuilder_.setMessage(value); + } + responseCase_ = 4; + return this; + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + public Builder setResponseTxn( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder builderForValue) { + if (responseTxnBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseTxnBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 4; + return this; + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + public Builder mergeResponseTxn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse value) { + if (responseTxnBuilder_ == null) { + if (responseCase_ == 4 && + response_ != org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance()) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 4) { + responseTxnBuilder_.mergeFrom(value); + } + responseTxnBuilder_.setMessage(value); + } + responseCase_ = 4; + return this; + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + public Builder clearResponseTxn() { + if (responseTxnBuilder_ == null) { + if (responseCase_ == 4) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 4) { + responseCase_ = 0; + response_ = null; + } + responseTxnBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder getResponseTxnBuilder() { + return getResponseTxnFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder getResponseTxnOrBuilder() { + if ((responseCase_ == 4) && (responseTxnBuilder_ != null)) { + return responseTxnBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 4) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } + } + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder> + getResponseTxnFieldBuilder() { + if (responseTxnBuilder_ == null) { + if (!(responseCase_ == 4)) { + response_ = org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } + responseTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 4; + onChanged();; + return responseTxnBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.ResponseOp) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.ResponseOp) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResponseOp(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 org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOpOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOpOrBuilder.java new file mode 100644 index 0000000..396c93d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/ResponseOpOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface ResponseOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.ResponseOp) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.RangeResponse response_range = 1; + * @return Whether the responseRange field is set. + */ + boolean hasResponseRange(); + /** + * .etcdserverpb.RangeResponse response_range = 1; + * @return The responseRange. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse getResponseRange(); + /** + * .etcdserverpb.RangeResponse response_range = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponseOrBuilder getResponseRangeOrBuilder(); + + /** + * .etcdserverpb.PutResponse response_put = 2; + * @return Whether the responsePut field is set. + */ + boolean hasResponsePut(); + /** + * .etcdserverpb.PutResponse response_put = 2; + * @return The responsePut. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse getResponsePut(); + /** + * .etcdserverpb.PutResponse response_put = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponseOrBuilder getResponsePutOrBuilder(); + + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + * @return Whether the responseDeleteRange field is set. + */ + boolean hasResponseDeleteRange(); + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + * @return The responseDeleteRange. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse getResponseDeleteRange(); + /** + * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponseOrBuilder getResponseDeleteRangeOrBuilder(); + + /** + * .etcdserverpb.TxnResponse response_txn = 4; + * @return Whether the responseTxn field is set. + */ + boolean hasResponseTxn(); + /** + * .etcdserverpb.TxnResponse response_txn = 4; + * @return The responseTxn. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse getResponseTxn(); + /** + * .etcdserverpb.TxnResponse response_txn = 4; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder getResponseTxnOrBuilder(); + + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.ResponseCase getResponseCase(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3AuthGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3AuthGrpc.java new file mode 100644 index 0000000..a6de70d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3AuthGrpc.java @@ -0,0 +1,1025 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getServiceDescriptor; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + + +@javax.annotation.Generated( +value = "by RxGrpc generator", +comments = "Source: rpc.proto") +public final class Rx3AuthGrpc { + private Rx3AuthGrpc() {} + + public static RxAuthStub newRxStub(io.grpc.Channel channel) { + return new RxAuthStub(channel); + } + + public static final class RxAuthStub extends io.grpc.stub.AbstractStub { + private AuthGrpc.AuthStub delegateStub; + + private RxAuthStub(io.grpc.Channel channel) { + super(channel); + delegateStub = AuthGrpc.newStub(channel); + } + + private RxAuthStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + delegateStub = AuthGrpc.newStub(channel).build(channel, callOptions); + } + + @java.lang.Override + protected RxAuthStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RxAuthStub(channel, callOptions); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authEnable(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.authEnable(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authDisable(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.authDisable(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authenticate(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.authenticate(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userAdd(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userAdd(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userGet(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userGet(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userList(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userList(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  MoveLeader requests current leader node to transfer its leadership to transferee.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userDelete(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userDelete(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  UserChangePassword changes the password of a specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userChangePassword(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userChangePassword(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  UserGrant grants a role to a specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userGrantRole(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userGrantRole(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  UserRevokeRole revokes a role of specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userRevokeRole(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userRevokeRole(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleAdd adds a new role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleAdd(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleAdd(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleGet gets detailed role information.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleGet(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleGet(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleList gets lists of all roles.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleList(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleList(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleDelete deletes a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleDelete(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleDelete(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleGrantPermission grants a permission of a specified key or range to a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleGrantPermission(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleGrantPermission(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleRevokePermission revokes a key or range permission of a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleRevokePermission(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleRevokePermission(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.authEnable(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.authDisable(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.authenticate(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userAdd(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userGet(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userList(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  MoveLeader requests current leader node to transfer its leadership to transferee.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userDelete(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  UserChangePassword changes the password of a specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userChangePassword(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  UserGrant grants a role to a specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userGrantRole(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  UserRevokeRole revokes a role of specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.userRevokeRole(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleAdd adds a new role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleAdd(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleGet gets detailed role information.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleGet(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleList gets lists of all roles.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleList(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleDelete deletes a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleDelete(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleGrantPermission grants a permission of a specified key or range to a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleGrantPermission(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  RoleRevokePermission revokes a key or range permission of a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.roleRevokePermission(request, observer); + } + }, getCallOptions()); + } + + } + + public static abstract class AuthImplBase implements io.grpc.BindableService { + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authEnable(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authDisable(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single authenticate(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userAdd(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userGet(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userList(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  MoveLeader requests current leader node to transfer its leadership to transferee.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userDelete(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  UserChangePassword changes the password of a specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userChangePassword(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  UserGrant grants a role to a specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userGrantRole(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  UserRevokeRole revokes a role of specified user.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single userRevokeRole(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  RoleAdd adds a new role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleAdd(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  RoleGet gets detailed role information.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleGet(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  RoleList gets lists of all roles.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleList(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  RoleDelete deletes a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleDelete(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  RoleGrantPermission grants a permission of a specified key or range to a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleGrantPermission(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  RoleRevokePermission revokes a key or range permission of a specified role.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single roleRevokePermission(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getAuthEnableMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse>( + this, METHODID_AUTH_ENABLE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getAuthDisableMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse>( + this, METHODID_AUTH_DISABLE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getAuthenticateMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse>( + this, METHODID_AUTHENTICATE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserAddMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse>( + this, METHODID_USER_ADD))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserGetMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse>( + this, METHODID_USER_GET))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse>( + this, METHODID_USER_LIST))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserDeleteMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse>( + this, METHODID_USER_DELETE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserChangePasswordMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse>( + this, METHODID_USER_CHANGE_PASSWORD))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserGrantRoleMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse>( + this, METHODID_USER_GRANT_ROLE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getUserRevokeRoleMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse>( + this, METHODID_USER_REVOKE_ROLE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getRoleAddMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse>( + this, METHODID_ROLE_ADD))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getRoleGetMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse>( + this, METHODID_ROLE_GET))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getRoleListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse>( + this, METHODID_ROLE_LIST))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getRoleDeleteMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse>( + this, METHODID_ROLE_DELETE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getRoleGrantPermissionMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse>( + this, METHODID_ROLE_GRANT_PERMISSION))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.AuthGrpc.getRoleRevokePermissionMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse>( + this, METHODID_ROLE_REVOKE_PERMISSION))) + .build(); + } + + protected io.grpc.CallOptions getCallOptions(int methodId) { + return null; + } + + } + + public static final int METHODID_AUTH_ENABLE = 0; + public static final int METHODID_AUTH_DISABLE = 1; + public static final int METHODID_AUTHENTICATE = 2; + public static final int METHODID_USER_ADD = 3; + public static final int METHODID_USER_GET = 4; + public static final int METHODID_USER_LIST = 5; + public static final int METHODID_USER_DELETE = 6; + public static final int METHODID_USER_CHANGE_PASSWORD = 7; + public static final int METHODID_USER_GRANT_ROLE = 8; + public static final int METHODID_USER_REVOKE_ROLE = 9; + public static final int METHODID_ROLE_ADD = 10; + public static final int METHODID_ROLE_GET = 11; + public static final int METHODID_ROLE_LIST = 12; + public static final int METHODID_ROLE_DELETE = 13; + public static final int METHODID_ROLE_GRANT_PERMISSION = 14; + public static final int METHODID_ROLE_REVOKE_PERMISSION = 15; + + 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 AuthImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AuthImplBase 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_AUTH_ENABLE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.authEnable(single); + } + }); + break; + case METHODID_AUTH_DISABLE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.authDisable(single); + } + }); + break; + case METHODID_AUTHENTICATE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.authenticate(single); + } + }); + break; + case METHODID_USER_ADD: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userAdd(single); + } + }); + break; + case METHODID_USER_GET: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userGet(single); + } + }); + break; + case METHODID_USER_LIST: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userList(single); + } + }); + break; + case METHODID_USER_DELETE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userDelete(single); + } + }); + break; + case METHODID_USER_CHANGE_PASSWORD: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userChangePassword(single); + } + }); + break; + case METHODID_USER_GRANT_ROLE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userGrantRole(single); + } + }); + break; + case METHODID_USER_REVOKE_ROLE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.userRevokeRole(single); + } + }); + break; + case METHODID_ROLE_ADD: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.roleAdd(single); + } + }); + break; + case METHODID_ROLE_GET: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.roleGet(single); + } + }); + break; + case METHODID_ROLE_LIST: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.roleList(single); + } + }); + break; + case METHODID_ROLE_DELETE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.roleDelete(single); + } + }); + break; + case METHODID_ROLE_GRANT_PERMISSION: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.roleGrantPermission(single); + } + }); + break; + case METHODID_ROLE_REVOKE_PERMISSION: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.roleRevokePermission(single); + } + }); + break; + default: + throw new java.lang.AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new java.lang.AssertionError(); + } + } + } + +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3ClusterGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3ClusterGrpc.java new file mode 100644 index 0000000..c755fe3 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3ClusterGrpc.java @@ -0,0 +1,335 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static org.eclipse.ecf.provider.etcd3.grpc.api.ClusterGrpc.getServiceDescriptor; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + + +@javax.annotation.Generated( +value = "by RxGrpc generator", +comments = "Source: rpc.proto") +public final class Rx3ClusterGrpc { + private Rx3ClusterGrpc() {} + + public static RxClusterStub newRxStub(io.grpc.Channel channel) { + return new RxClusterStub(channel); + } + + public static final class RxClusterStub extends io.grpc.stub.AbstractStub { + private ClusterGrpc.ClusterStub delegateStub; + + private RxClusterStub(io.grpc.Channel channel) { + super(channel); + delegateStub = ClusterGrpc.newStub(channel); + } + + private RxClusterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + delegateStub = ClusterGrpc.newStub(channel).build(channel, callOptions); + } + + @java.lang.Override + protected RxClusterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RxClusterStub(channel, callOptions); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberAdd(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberAdd(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberRemove(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberRemove(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberUpdate(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberUpdate(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberList(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberList(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberAdd(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberAdd(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberRemove(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberRemove(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberUpdate(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberUpdate(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberList(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.memberList(request, observer); + } + }, getCallOptions()); + } + + } + + public static abstract class ClusterImplBase implements io.grpc.BindableService { + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberAdd(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberRemove(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberUpdate(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single memberList(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.ClusterGrpc.getMemberAddMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddResponse>( + this, METHODID_MEMBER_ADD))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.ClusterGrpc.getMemberRemoveMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveResponse>( + this, METHODID_MEMBER_REMOVE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.ClusterGrpc.getMemberUpdateMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateResponse>( + this, METHODID_MEMBER_UPDATE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.ClusterGrpc.getMemberListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MemberListResponse>( + this, METHODID_MEMBER_LIST))) + .build(); + } + + protected io.grpc.CallOptions getCallOptions(int methodId) { + return null; + } + + } + + public static final int METHODID_MEMBER_ADD = 0; + public static final int METHODID_MEMBER_REMOVE = 1; + public static final int METHODID_MEMBER_UPDATE = 2; + public static final int METHODID_MEMBER_LIST = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterImplBase 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_MEMBER_ADD: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.MemberAddRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.memberAdd(single); + } + }); + break; + case METHODID_MEMBER_REMOVE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.MemberRemoveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.memberRemove(single); + } + }); + break; + case METHODID_MEMBER_UPDATE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.MemberUpdateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.memberUpdate(single); + } + }); + break; + case METHODID_MEMBER_LIST: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.MemberListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.memberList(single); + } + }); + break; + default: + throw new java.lang.AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new java.lang.AssertionError(); + } + } + } + +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3KVGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3KVGrpc.java new file mode 100644 index 0000000..bb9a455 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3KVGrpc.java @@ -0,0 +1,398 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static org.eclipse.ecf.provider.etcd3.grpc.api.KVGrpc.getServiceDescriptor; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + + +@javax.annotation.Generated( +value = "by RxGrpc generator", +comments = "Source: rpc.proto") +public final class Rx3KVGrpc { + private Rx3KVGrpc() {} + + public static RxKVStub newRxStub(io.grpc.Channel channel) { + return new RxKVStub(channel); + } + + public static final class RxKVStub extends io.grpc.stub.AbstractStub { + private KVGrpc.KVStub delegateStub; + + private RxKVStub(io.grpc.Channel channel) { + super(channel); + delegateStub = KVGrpc.newStub(channel); + } + + private RxKVStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + delegateStub = KVGrpc.newStub(channel).build(channel, callOptions); + } + + @java.lang.Override + protected RxKVStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RxKVStub(channel, callOptions); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single range(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.range(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single put(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.put(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single deleteRange(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.deleteRange(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single txn(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.txn(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single compact(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.compact(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single range(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.range(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single put(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.put(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single deleteRange(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.deleteRange(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single txn(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.txn(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single compact(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.compact(request, observer); + } + }, getCallOptions()); + } + + } + + public static abstract class KVImplBase implements io.grpc.BindableService { + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single range(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single put(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single deleteRange(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single txn(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single compact(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.KVGrpc.getRangeMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.RangeResponse>( + this, METHODID_RANGE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.KVGrpc.getPutMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.PutResponse>( + this, METHODID_PUT))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.KVGrpc.getDeleteRangeMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeResponse>( + this, METHODID_DELETE_RANGE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.KVGrpc.getTxnMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse>( + this, METHODID_TXN))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.KVGrpc.getCompactMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.CompactionResponse>( + this, METHODID_COMPACT))) + .build(); + } + + protected io.grpc.CallOptions getCallOptions(int methodId) { + return null; + } + + } + + public static final int METHODID_RANGE = 0; + public static final int METHODID_PUT = 1; + public static final int METHODID_DELETE_RANGE = 2; + public static final int METHODID_TXN = 3; + public static final int METHODID_COMPACT = 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 KVImplBase serviceImpl; + private final int methodId; + + MethodHandlers(KVImplBase 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_RANGE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.RangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.range(single); + } + }); + break; + case METHODID_PUT: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.PutRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.put(single); + } + }); + break; + case METHODID_DELETE_RANGE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.DeleteRangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.deleteRange(single); + } + }); + break; + case METHODID_TXN: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.txn(single); + } + }); + break; + case METHODID_COMPACT: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.CompactionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.compact(single); + } + }); + break; + default: + throw new java.lang.AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new java.lang.AssertionError(); + } + } + } + +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3LeaseGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3LeaseGrpc.java new file mode 100644 index 0000000..b2d16e8 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3LeaseGrpc.java @@ -0,0 +1,312 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrpc.getServiceDescriptor; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + + +@javax.annotation.Generated( +value = "by RxGrpc generator", +comments = "Source: rpc.proto") +public final class Rx3LeaseGrpc { + private Rx3LeaseGrpc() {} + + public static RxLeaseStub newRxStub(io.grpc.Channel channel) { + return new RxLeaseStub(channel); + } + + public static final class RxLeaseStub extends io.grpc.stub.AbstractStub { + private LeaseGrpc.LeaseStub delegateStub; + + private RxLeaseStub(io.grpc.Channel channel) { + super(channel); + delegateStub = LeaseGrpc.newStub(channel); + } + + private RxLeaseStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + delegateStub = LeaseGrpc.newStub(channel).build(channel, callOptions); + } + + @java.lang.Override + protected RxLeaseStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RxLeaseStub(channel, callOptions); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseGrant(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.leaseGrant(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseRevoke(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.leaseRevoke(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable leaseKeepAlive(io.reactivex.rxjava3.core.Flowable rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.manyToMany(rxRequest, + new com.salesforce.reactivegrpc.common.Function, io.grpc.stub.StreamObserver>() { + @java.lang.Override + public io.grpc.stub.StreamObserver apply(io.grpc.stub.StreamObserver observer) { + return delegateStub.leaseKeepAlive(observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseTimeToLive(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.leaseTimeToLive(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseGrant(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.leaseGrant(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseRevoke(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.leaseRevoke(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseTimeToLive(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.leaseTimeToLive(request, observer); + } + }, getCallOptions()); + } + + } + + public static abstract class LeaseImplBase implements io.grpc.BindableService { + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseGrant(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseRevoke(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable leaseKeepAlive(io.reactivex.rxjava3.core.Flowable request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single leaseTimeToLive(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrpc.getLeaseGrantMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantResponse>( + this, METHODID_LEASE_GRANT))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrpc.getLeaseRevokeMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeResponse>( + this, METHODID_LEASE_REVOKE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrpc.getLeaseKeepAliveMethod(), + asyncBidiStreamingCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseKeepAliveResponse>( + this, METHODID_LEASE_KEEP_ALIVE))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrpc.getLeaseTimeToLiveMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveResponse>( + this, METHODID_LEASE_TIME_TO_LIVE))) + .build(); + } + + protected io.grpc.CallOptions getCallOptions(int methodId) { + return null; + } + + } + + public static final int METHODID_LEASE_GRANT = 0; + public static final int METHODID_LEASE_REVOKE = 1; + public static final int METHODID_LEASE_KEEP_ALIVE = 2; + public static final int METHODID_LEASE_TIME_TO_LIVE = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final LeaseImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LeaseImplBase 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_LEASE_GRANT: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseGrantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.leaseGrant(single); + } + }); + break; + case METHODID_LEASE_REVOKE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseRevokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.leaseRevoke(single); + } + }); + break; + case METHODID_LEASE_TIME_TO_LIVE: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.LeaseTimeToLiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.leaseTimeToLive(single); + } + }); + break; + default: + throw new java.lang.AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LEASE_KEEP_ALIVE: + return (io.grpc.stub.StreamObserver) com.salesforce.rx3grpc.stub.ServerCalls.manyToMany( + (io.grpc.stub.StreamObserver) responseObserver, + serviceImpl::leaseKeepAlive, serviceImpl.getCallOptions(methodId)); + default: + throw new java.lang.AssertionError(); + } + } + } + +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3MaintenanceGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3MaintenanceGrpc.java new file mode 100644 index 0000000..0219fb3 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3MaintenanceGrpc.java @@ -0,0 +1,512 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getServiceDescriptor; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + + +@javax.annotation.Generated( +value = "by RxGrpc generator", +comments = "Source: rpc.proto") +public final class Rx3MaintenanceGrpc { + private Rx3MaintenanceGrpc() {} + + public static RxMaintenanceStub newRxStub(io.grpc.Channel channel) { + return new RxMaintenanceStub(channel); + } + + public static final class RxMaintenanceStub extends io.grpc.stub.AbstractStub { + private MaintenanceGrpc.MaintenanceStub delegateStub; + + private RxMaintenanceStub(io.grpc.Channel channel) { + super(channel); + delegateStub = MaintenanceGrpc.newStub(channel); + } + + private RxMaintenanceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + delegateStub = MaintenanceGrpc.newStub(channel).build(channel, callOptions); + } + + @java.lang.Override + protected RxMaintenanceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RxMaintenanceStub(channel, callOptions); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single alarm(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.alarm(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single status(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.status(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single defragment(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.defragment(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single hash(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.hash(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single hashKV(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.hashKV(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable snapshot(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToMany(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.snapshot(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  MoveLeader requests current leader node to transfer its leadership to transferee.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single moveLeader(io.reactivex.rxjava3.core.Single rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(rxRequest, + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.moveLeader(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single alarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.alarm(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single status(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.status(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single defragment(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.defragment(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single hash(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.hash(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single hashKV(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.hashKV(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable snapshot(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToMany(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.snapshot(request, observer); + } + }, getCallOptions()); + } + + /** + *
+         *  MoveLeader requests current leader node to transfer its leadership to transferee.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single moveLeader(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.oneToOne(io.reactivex.rxjava3.core.Single.just(rxRequest), + new com.salesforce.reactivegrpc.common.BiConsumer>() { + @java.lang.Override + public void accept(org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest request, io.grpc.stub.StreamObserver observer) { + delegateStub.moveLeader(request, observer); + } + }, getCallOptions()); + } + + } + + public static abstract class MaintenanceImplBase implements io.grpc.BindableService { + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single alarm(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Put puts the given key into the key-value store.
+         *  A put request increments the revision of the key-value store
+         *  and generates one event in the event history.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single status(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  DeleteRange deletes the given range from the key-value store.
+         *  A delete request increments the revision of the key-value store
+         *  and generates a delete event in the event history for every deleted key.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single defragment(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Txn processes multiple requests in a single transaction.
+         *  A txn request increments the revision of the key-value store
+         *  and generates events with the same revision for every completed request.
+         *  It is not allowed to modify the same key several times within one txn.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single hash(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Compact compacts the event history in the etcd key-value store. The key-value
+         *  store should be periodically compacted or the event history will continue to grow
+         *  indefinitely.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single hashKV(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable snapshot(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + /** + *
+         *  MoveLeader requests current leader node to transfer its leadership to transferee.
+         * 
+ */ + public io.reactivex.rxjava3.core.Single moveLeader(io.reactivex.rxjava3.core.Single request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getAlarmMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse>( + this, METHODID_ALARM))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getStatusMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse>( + this, METHODID_STATUS))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getDefragmentMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentResponse>( + this, METHODID_DEFRAGMENT))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getHashMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.HashResponse>( + this, METHODID_HASH))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getHashKVMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.HashKVResponse>( + this, METHODID_HASH_KV))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getSnapshotMethod(), + asyncServerStreamingCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse>( + this, METHODID_SNAPSHOT))) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.MaintenanceGrpc.getMoveLeaderMethod(), + asyncUnaryCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderResponse>( + this, METHODID_MOVE_LEADER))) + .build(); + } + + protected io.grpc.CallOptions getCallOptions(int methodId) { + return null; + } + + } + + public static final int METHODID_ALARM = 0; + public static final int METHODID_STATUS = 1; + public static final int METHODID_DEFRAGMENT = 2; + public static final int METHODID_HASH = 3; + public static final int METHODID_HASH_KV = 4; + public static final int METHODID_SNAPSHOT = 5; + public static final int METHODID_MOVE_LEADER = 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 MaintenanceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MaintenanceImplBase 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_ALARM: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.alarm(single); + } + }); + break; + case METHODID_STATUS: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.status(single); + } + }); + break; + case METHODID_DEFRAGMENT: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.DefragmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.defragment(single); + } + }); + break; + case METHODID_HASH: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.HashRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.hash(single); + } + }); + break; + case METHODID_HASH_KV: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.HashKVRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.hashKV(single); + } + }); + break; + case METHODID_SNAPSHOT: + com.salesforce.rx3grpc.stub.ServerCalls.oneToMany((org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Flowable>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Flowable apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.snapshot(single); + } + }); + break; + case METHODID_MOVE_LEADER: + com.salesforce.rx3grpc.stub.ServerCalls.oneToOne((org.eclipse.ecf.provider.etcd3.grpc.api.MoveLeaderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver, + new com.salesforce.reactivegrpc.common.Function, io.reactivex.rxjava3.core.Single>() { + @java.lang.Override + public io.reactivex.rxjava3.core.Single apply(io.reactivex.rxjava3.core.Single single) { + return serviceImpl.moveLeader(single); + } + }); + break; + default: + throw new java.lang.AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new java.lang.AssertionError(); + } + } + } + +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3WatchGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3WatchGrpc.java new file mode 100644 index 0000000..c25b747 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/Rx3WatchGrpc.java @@ -0,0 +1,122 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static org.eclipse.ecf.provider.etcd3.grpc.api.WatchGrpc.getServiceDescriptor; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; + + +@javax.annotation.Generated( +value = "by RxGrpc generator", +comments = "Source: rpc.proto") +public final class Rx3WatchGrpc { + private Rx3WatchGrpc() {} + + public static RxWatchStub newRxStub(io.grpc.Channel channel) { + return new RxWatchStub(channel); + } + + public static final class RxWatchStub extends io.grpc.stub.AbstractStub { + private WatchGrpc.WatchStub delegateStub; + + private RxWatchStub(io.grpc.Channel channel) { + super(channel); + delegateStub = WatchGrpc.newStub(channel); + } + + private RxWatchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + delegateStub = WatchGrpc.newStub(channel).build(channel, callOptions); + } + + @java.lang.Override + protected RxWatchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RxWatchStub(channel, callOptions); + } + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable watch(io.reactivex.rxjava3.core.Flowable rxRequest) { + return com.salesforce.rx3grpc.stub.ClientCalls.manyToMany(rxRequest, + new com.salesforce.reactivegrpc.common.Function, io.grpc.stub.StreamObserver>() { + @java.lang.Override + public io.grpc.stub.StreamObserver apply(io.grpc.stub.StreamObserver observer) { + return delegateStub.watch(observer); + } + }, getCallOptions()); + } + + } + + public static abstract class WatchImplBase implements io.grpc.BindableService { + + /** + *
+         *  Range gets the keys in the range from the key-value store.
+         * 
+ */ + public io.reactivex.rxjava3.core.Flowable watch(io.reactivex.rxjava3.core.Flowable request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchGrpc.getWatchMethod(), + asyncBidiStreamingCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse>( + this, METHODID_WATCH))) + .build(); + } + + protected io.grpc.CallOptions getCallOptions(int methodId) { + return null; + } + + } + + public static final int METHODID_WATCH = 0; + + 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 WatchImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WatchImplBase 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) { + default: + throw new java.lang.AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_WATCH: + return (io.grpc.stub.StreamObserver) com.salesforce.rx3grpc.stub.ServerCalls.manyToMany( + (io.grpc.stub.StreamObserver) responseObserver, + serviceImpl::watch, serviceImpl.getCallOptions(methodId)); + default: + throw new java.lang.AssertionError(); + } + } + } + +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequest.java new file mode 100644 index 0000000..2c67f96 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.SnapshotRequest} + */ +public final class SnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.SnapshotRequest) + SnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SnapshotRequest.newBuilder() to construct. + private SnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnapshotRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnapshotRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SnapshotRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.SnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.SnapshotRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.SnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.SnapshotRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequestOrBuilder.java new file mode 100644 index 0000000..0bde0d2 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface SnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.SnapshotRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponse.java new file mode 100644 index 0000000..18b753d --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponse.java @@ -0,0 +1,832 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.SnapshotResponse} + */ +public final class SnapshotResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.SnapshotResponse) + SnapshotResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SnapshotResponse.newBuilder() to construct. + private SnapshotResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnapshotResponse() { + blob_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnapshotResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SnapshotResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + remainingBytes_ = input.readUInt64(); + break; + } + case 26: { + + blob_ = 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + *
+   * header has the current key-value store information. The first header in the snapshot
+   * stream indicates the point in time of the snapshot.
+   * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + *
+   * header has the current key-value store information. The first header in the snapshot
+   * stream indicates the point in time of the snapshot.
+   * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + *
+   * header has the current key-value store information. The first header in the snapshot
+   * stream indicates the point in time of the snapshot.
+   * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int REMAINING_BYTES_FIELD_NUMBER = 2; + private long remainingBytes_; + /** + *
+   * remaining_bytes is the number of blob bytes to be sent after this message
+   * 
+ * + * uint64 remaining_bytes = 2; + * @return The remainingBytes. + */ + @java.lang.Override + public long getRemainingBytes() { + return remainingBytes_; + } + + public static final int BLOB_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString blob_; + /** + *
+   * blob contains the next chunk of the snapshot in the snapshot stream.
+   * 
+ * + * bytes blob = 3; + * @return The blob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlob() { + return blob_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (remainingBytes_ != 0L) { + output.writeUInt64(2, remainingBytes_); + } + if (!blob_.isEmpty()) { + output.writeBytes(3, blob_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (remainingBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, remainingBytes_); + } + if (!blob_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, blob_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getRemainingBytes() + != other.getRemainingBytes()) return false; + if (!getBlob() + .equals(other.getBlob())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + REMAINING_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRemainingBytes()); + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.SnapshotResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.SnapshotResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + remainingBytes_ = 0L; + + blob_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_SnapshotResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.remainingBytes_ = remainingBytes_; + result.blob_ = blob_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getRemainingBytes() != 0L) { + setRemainingBytes(other.getRemainingBytes()); + } + if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { + setBlob(other.getBlob()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + *
+     * header has the current key-value store information. The first header in the snapshot
+     * stream indicates the point in time of the snapshot.
+     * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long remainingBytes_ ; + /** + *
+     * remaining_bytes is the number of blob bytes to be sent after this message
+     * 
+ * + * uint64 remaining_bytes = 2; + * @return The remainingBytes. + */ + @java.lang.Override + public long getRemainingBytes() { + return remainingBytes_; + } + /** + *
+     * remaining_bytes is the number of blob bytes to be sent after this message
+     * 
+ * + * uint64 remaining_bytes = 2; + * @param value The remainingBytes to set. + * @return This builder for chaining. + */ + public Builder setRemainingBytes(long value) { + + remainingBytes_ = value; + onChanged(); + return this; + } + /** + *
+     * remaining_bytes is the number of blob bytes to be sent after this message
+     * 
+ * + * uint64 remaining_bytes = 2; + * @return This builder for chaining. + */ + public Builder clearRemainingBytes() { + + remainingBytes_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * blob contains the next chunk of the snapshot in the snapshot stream.
+     * 
+ * + * bytes blob = 3; + * @return The blob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlob() { + return blob_; + } + /** + *
+     * blob contains the next chunk of the snapshot in the snapshot stream.
+     * 
+ * + * bytes blob = 3; + * @param value The blob to set. + * @return This builder for chaining. + */ + public Builder setBlob(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blob_ = value; + onChanged(); + return this; + } + /** + *
+     * blob contains the next chunk of the snapshot in the snapshot stream.
+     * 
+ * + * bytes blob = 3; + * @return This builder for chaining. + */ + public Builder clearBlob() { + + blob_ = getDefaultInstance().getBlob(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.SnapshotResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.SnapshotResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.SnapshotResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponseOrBuilder.java new file mode 100644 index 0000000..03aa801 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/SnapshotResponseOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface SnapshotResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.SnapshotResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * header has the current key-value store information. The first header in the snapshot
+   * stream indicates the point in time of the snapshot.
+   * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + *
+   * header has the current key-value store information. The first header in the snapshot
+   * stream indicates the point in time of the snapshot.
+   * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + *
+   * header has the current key-value store information. The first header in the snapshot
+   * stream indicates the point in time of the snapshot.
+   * 
+ * + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * remaining_bytes is the number of blob bytes to be sent after this message
+   * 
+ * + * uint64 remaining_bytes = 2; + * @return The remainingBytes. + */ + long getRemainingBytes(); + + /** + *
+   * blob contains the next chunk of the snapshot in the snapshot stream.
+   * 
+ * + * bytes blob = 3; + * @return The blob. + */ + com.google.protobuf.ByteString getBlob(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequest.java new file mode 100644 index 0000000..c408f49 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequest.java @@ -0,0 +1,419 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.StatusRequest} + */ +public final class StatusRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.StatusRequest) + StatusRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatusRequest.newBuilder() to construct. + private StatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatusRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StatusRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StatusRequest( + 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; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.StatusRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.StatusRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest.getDefaultInstance()) return this; + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.StatusRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.StatusRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StatusRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.StatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequestOrBuilder.java new file mode 100644 index 0000000..f550243 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusRequestOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface StatusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.StatusRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponse.java new file mode 100644 index 0000000..0efccfe --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponse.java @@ -0,0 +1,1097 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.StatusResponse} + */ +public final class StatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.StatusResponse) + StatusResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatusResponse.newBuilder() to construct. + private StatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatusResponse() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StatusResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StatusResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 24: { + + dbSize_ = input.readInt64(); + break; + } + case 32: { + + leader_ = input.readUInt64(); + break; + } + case 40: { + + raftIndex_ = input.readUInt64(); + break; + } + case 48: { + + raftTerm_ = input.readUInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + *
+   * version is the cluster protocol version used by the responding member.
+   * 
+ * + * string version = 2; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+   * version is the cluster protocol version used by the responding member.
+   * 
+ * + * string version = 2; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DBSIZE_FIELD_NUMBER = 3; + private long dbSize_; + /** + *
+   * dbSize is the size of the backend database, in bytes, of the responding member.
+   * 
+ * + * int64 dbSize = 3; + * @return The dbSize. + */ + @java.lang.Override + public long getDbSize() { + return dbSize_; + } + + public static final int LEADER_FIELD_NUMBER = 4; + private long leader_; + /** + *
+   * leader is the member ID which the responding member believes is the current leader.
+   * 
+ * + * uint64 leader = 4; + * @return The leader. + */ + @java.lang.Override + public long getLeader() { + return leader_; + } + + public static final int RAFTINDEX_FIELD_NUMBER = 5; + private long raftIndex_; + /** + *
+   * raftIndex is the current raft index of the responding member.
+   * 
+ * + * uint64 raftIndex = 5; + * @return The raftIndex. + */ + @java.lang.Override + public long getRaftIndex() { + return raftIndex_; + } + + public static final int RAFTTERM_FIELD_NUMBER = 6; + private long raftTerm_; + /** + *
+   * raftTerm is the current raft term of the responding member.
+   * 
+ * + * uint64 raftTerm = 6; + * @return The raftTerm. + */ + @java.lang.Override + public long getRaftTerm() { + return raftTerm_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (dbSize_ != 0L) { + output.writeInt64(3, dbSize_); + } + if (leader_ != 0L) { + output.writeUInt64(4, leader_); + } + if (raftIndex_ != 0L) { + output.writeUInt64(5, raftIndex_); + } + if (raftTerm_ != 0L) { + output.writeUInt64(6, raftTerm_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (dbSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, dbSize_); + } + if (leader_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, leader_); + } + if (raftIndex_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, raftIndex_); + } + if (raftTerm_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, raftTerm_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getVersion() + .equals(other.getVersion())) return false; + if (getDbSize() + != other.getDbSize()) return false; + if (getLeader() + != other.getLeader()) return false; + if (getRaftIndex() + != other.getRaftIndex()) return false; + if (getRaftTerm() + != other.getRaftTerm()) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + DBSIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDbSize()); + hash = (37 * hash) + LEADER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLeader()); + hash = (37 * hash) + RAFTINDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRaftIndex()); + hash = (37 * hash) + RAFTTERM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRaftTerm()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.StatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.StatusResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + version_ = ""; + + dbSize_ = 0L; + + leader_ = 0L; + + raftIndex_ = 0L; + + raftTerm_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_StatusResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.version_ = version_; + result.dbSize_ = dbSize_; + result.leader_ = leader_; + result.raftIndex_ = raftIndex_; + result.raftTerm_ = raftTerm_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.getDbSize() != 0L) { + setDbSize(other.getDbSize()); + } + if (other.getLeader() != 0L) { + setLeader(other.getLeader()); + } + if (other.getRaftIndex() != 0L) { + setRaftIndex(other.getRaftIndex()); + } + if (other.getRaftTerm() != 0L) { + setRaftTerm(other.getRaftTerm()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.lang.Object version_ = ""; + /** + *
+     * version is the cluster protocol version used by the responding member.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * version is the cluster protocol version used by the responding member.
+     * 
+ * + * string version = 2; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * version is the cluster protocol version used by the responding member.
+     * 
+ * + * string version = 2; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * version is the cluster protocol version used by the responding member.
+     * 
+ * + * string version = 2; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+     * version is the cluster protocol version used by the responding member.
+     * 
+ * + * string version = 2; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private long dbSize_ ; + /** + *
+     * dbSize is the size of the backend database, in bytes, of the responding member.
+     * 
+ * + * int64 dbSize = 3; + * @return The dbSize. + */ + @java.lang.Override + public long getDbSize() { + return dbSize_; + } + /** + *
+     * dbSize is the size of the backend database, in bytes, of the responding member.
+     * 
+ * + * int64 dbSize = 3; + * @param value The dbSize to set. + * @return This builder for chaining. + */ + public Builder setDbSize(long value) { + + dbSize_ = value; + onChanged(); + return this; + } + /** + *
+     * dbSize is the size of the backend database, in bytes, of the responding member.
+     * 
+ * + * int64 dbSize = 3; + * @return This builder for chaining. + */ + public Builder clearDbSize() { + + dbSize_ = 0L; + onChanged(); + return this; + } + + private long leader_ ; + /** + *
+     * leader is the member ID which the responding member believes is the current leader.
+     * 
+ * + * uint64 leader = 4; + * @return The leader. + */ + @java.lang.Override + public long getLeader() { + return leader_; + } + /** + *
+     * leader is the member ID which the responding member believes is the current leader.
+     * 
+ * + * uint64 leader = 4; + * @param value The leader to set. + * @return This builder for chaining. + */ + public Builder setLeader(long value) { + + leader_ = value; + onChanged(); + return this; + } + /** + *
+     * leader is the member ID which the responding member believes is the current leader.
+     * 
+ * + * uint64 leader = 4; + * @return This builder for chaining. + */ + public Builder clearLeader() { + + leader_ = 0L; + onChanged(); + return this; + } + + private long raftIndex_ ; + /** + *
+     * raftIndex is the current raft index of the responding member.
+     * 
+ * + * uint64 raftIndex = 5; + * @return The raftIndex. + */ + @java.lang.Override + public long getRaftIndex() { + return raftIndex_; + } + /** + *
+     * raftIndex is the current raft index of the responding member.
+     * 
+ * + * uint64 raftIndex = 5; + * @param value The raftIndex to set. + * @return This builder for chaining. + */ + public Builder setRaftIndex(long value) { + + raftIndex_ = value; + onChanged(); + return this; + } + /** + *
+     * raftIndex is the current raft index of the responding member.
+     * 
+ * + * uint64 raftIndex = 5; + * @return This builder for chaining. + */ + public Builder clearRaftIndex() { + + raftIndex_ = 0L; + onChanged(); + return this; + } + + private long raftTerm_ ; + /** + *
+     * raftTerm is the current raft term of the responding member.
+     * 
+ * + * uint64 raftTerm = 6; + * @return The raftTerm. + */ + @java.lang.Override + public long getRaftTerm() { + return raftTerm_; + } + /** + *
+     * raftTerm is the current raft term of the responding member.
+     * 
+ * + * uint64 raftTerm = 6; + * @param value The raftTerm to set. + * @return This builder for chaining. + */ + public Builder setRaftTerm(long value) { + + raftTerm_ = value; + onChanged(); + return this; + } + /** + *
+     * raftTerm is the current raft term of the responding member.
+     * 
+ * + * uint64 raftTerm = 6; + * @return This builder for chaining. + */ + public Builder clearRaftTerm() { + + raftTerm_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.StatusResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.StatusResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StatusResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.StatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponseOrBuilder.java new file mode 100644 index 0000000..e184e28 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/StatusResponseOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface StatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.StatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * version is the cluster protocol version used by the responding member.
+   * 
+ * + * string version = 2; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+   * version is the cluster protocol version used by the responding member.
+   * 
+ * + * string version = 2; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+   * dbSize is the size of the backend database, in bytes, of the responding member.
+   * 
+ * + * int64 dbSize = 3; + * @return The dbSize. + */ + long getDbSize(); + + /** + *
+   * leader is the member ID which the responding member believes is the current leader.
+   * 
+ * + * uint64 leader = 4; + * @return The leader. + */ + long getLeader(); + + /** + *
+   * raftIndex is the current raft index of the responding member.
+   * 
+ * + * uint64 raftIndex = 5; + * @return The raftIndex. + */ + long getRaftIndex(); + + /** + *
+   * raftTerm is the current raft term of the responding member.
+   * 
+ * + * uint64 raftTerm = 6; + * @return The raftTerm. + */ + long getRaftTerm(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequest.java new file mode 100644 index 0000000..70d6631 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequest.java @@ -0,0 +1,1870 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + *
+ * From google paxosdb paper:
+ * Our implementation hinges around a powerful primitive which we call MultiOp. All other database
+ * operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
+ * and consists of three components:
+ * 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
+ * for the absence or presence of a value, or compare with a given value. Two different tests in the guard
+ * may apply to the same or different entries in the database. All tests in the guard are applied and
+ * MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
+ * it executes f op (see item 3 below).
+ * 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
+ * lookup operation, and applies to a single database entry. Two different operations in the list may apply
+ * to the same or different entries in the database. These operations are executed
+ * if guard evaluates to
+ * true.
+ * 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
+ * 
+ * + * Protobuf type {@code etcdserverpb.TxnRequest} + */ +public final class TxnRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.TxnRequest) + TxnRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use TxnRequest.newBuilder() to construct. + private TxnRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TxnRequest() { + compare_ = java.util.Collections.emptyList(); + success_ = java.util.Collections.emptyList(); + failure_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TxnRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TxnRequest( + 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: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + compare_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + compare_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.Compare.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + success_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + success_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + failure_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + failure_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + compare_ = java.util.Collections.unmodifiableList(compare_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + success_ = java.util.Collections.unmodifiableList(success_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + failure_ = java.util.Collections.unmodifiableList(failure_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder.class); + } + + public static final int COMPARE_FIELD_NUMBER = 1; + private java.util.List compare_; + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + @java.lang.Override + public java.util.List getCompareList() { + return compare_; + } + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + @java.lang.Override + public java.util.List + getCompareOrBuilderList() { + return compare_; + } + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + @java.lang.Override + public int getCompareCount() { + return compare_.size(); + } + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare getCompare(int index) { + return compare_.get(index); + } + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder getCompareOrBuilder( + int index) { + return compare_.get(index); + } + + public static final int SUCCESS_FIELD_NUMBER = 2; + private java.util.List success_; + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + @java.lang.Override + public java.util.List getSuccessList() { + return success_; + } + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + @java.lang.Override + public java.util.List + getSuccessOrBuilderList() { + return success_; + } + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + @java.lang.Override + public int getSuccessCount() { + return success_.size(); + } + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getSuccess(int index) { + return success_.get(index); + } + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder getSuccessOrBuilder( + int index) { + return success_.get(index); + } + + public static final int FAILURE_FIELD_NUMBER = 3; + private java.util.List failure_; + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + @java.lang.Override + public java.util.List getFailureList() { + return failure_; + } + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + @java.lang.Override + public java.util.List + getFailureOrBuilderList() { + return failure_; + } + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + @java.lang.Override + public int getFailureCount() { + return failure_.size(); + } + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getFailure(int index) { + return failure_.get(index); + } + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder getFailureOrBuilder( + int index) { + return failure_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < compare_.size(); i++) { + output.writeMessage(1, compare_.get(i)); + } + for (int i = 0; i < success_.size(); i++) { + output.writeMessage(2, success_.get(i)); + } + for (int i = 0; i < failure_.size(); i++) { + output.writeMessage(3, failure_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < compare_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, compare_.get(i)); + } + for (int i = 0; i < success_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, success_.get(i)); + } + for (int i = 0; i < failure_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, failure_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) obj; + + if (!getCompareList() + .equals(other.getCompareList())) return false; + if (!getSuccessList() + .equals(other.getSuccessList())) return false; + if (!getFailureList() + .equals(other.getFailureList())) 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 (getCompareCount() > 0) { + hash = (37 * hash) + COMPARE_FIELD_NUMBER; + hash = (53 * hash) + getCompareList().hashCode(); + } + if (getSuccessCount() > 0) { + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + getSuccessList().hashCode(); + } + if (getFailureCount() > 0) { + hash = (37 * hash) + FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getFailureList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * From google paxosdb paper:
+   * Our implementation hinges around a powerful primitive which we call MultiOp. All other database
+   * operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
+   * and consists of three components:
+   * 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
+   * for the absence or presence of a value, or compare with a given value. Two different tests in the guard
+   * may apply to the same or different entries in the database. All tests in the guard are applied and
+   * MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
+   * it executes f op (see item 3 below).
+   * 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
+   * lookup operation, and applies to a single database entry. Two different operations in the list may apply
+   * to the same or different entries in the database. These operations are executed
+   * if guard evaluates to
+   * true.
+   * 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
+   * 
+ * + * Protobuf type {@code etcdserverpb.TxnRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.TxnRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCompareFieldBuilder(); + getSuccessFieldBuilder(); + getFailureFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (compareBuilder_ == null) { + compare_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + compareBuilder_.clear(); + } + if (successBuilder_ == null) { + success_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + successBuilder_.clear(); + } + if (failureBuilder_ == null) { + failure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + failureBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest(this); + int from_bitField0_ = bitField0_; + if (compareBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + compare_ = java.util.Collections.unmodifiableList(compare_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.compare_ = compare_; + } else { + result.compare_ = compareBuilder_.build(); + } + if (successBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + success_ = java.util.Collections.unmodifiableList(success_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.success_ = success_; + } else { + result.success_ = successBuilder_.build(); + } + if (failureBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + failure_ = java.util.Collections.unmodifiableList(failure_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.failure_ = failure_; + } else { + result.failure_ = failureBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest.getDefaultInstance()) return this; + if (compareBuilder_ == null) { + if (!other.compare_.isEmpty()) { + if (compare_.isEmpty()) { + compare_ = other.compare_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompareIsMutable(); + compare_.addAll(other.compare_); + } + onChanged(); + } + } else { + if (!other.compare_.isEmpty()) { + if (compareBuilder_.isEmpty()) { + compareBuilder_.dispose(); + compareBuilder_ = null; + compare_ = other.compare_; + bitField0_ = (bitField0_ & ~0x00000001); + compareBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCompareFieldBuilder() : null; + } else { + compareBuilder_.addAllMessages(other.compare_); + } + } + } + if (successBuilder_ == null) { + if (!other.success_.isEmpty()) { + if (success_.isEmpty()) { + success_ = other.success_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSuccessIsMutable(); + success_.addAll(other.success_); + } + onChanged(); + } + } else { + if (!other.success_.isEmpty()) { + if (successBuilder_.isEmpty()) { + successBuilder_.dispose(); + successBuilder_ = null; + success_ = other.success_; + bitField0_ = (bitField0_ & ~0x00000002); + successBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSuccessFieldBuilder() : null; + } else { + successBuilder_.addAllMessages(other.success_); + } + } + } + if (failureBuilder_ == null) { + if (!other.failure_.isEmpty()) { + if (failure_.isEmpty()) { + failure_ = other.failure_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFailureIsMutable(); + failure_.addAll(other.failure_); + } + onChanged(); + } + } else { + if (!other.failure_.isEmpty()) { + if (failureBuilder_.isEmpty()) { + failureBuilder_.dispose(); + failureBuilder_ = null; + failure_ = other.failure_; + bitField0_ = (bitField0_ & ~0x00000004); + failureBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFailureFieldBuilder() : null; + } else { + failureBuilder_.addAllMessages(other.failure_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List compare_ = + java.util.Collections.emptyList(); + private void ensureCompareIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + compare_ = new java.util.ArrayList(compare_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Compare, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder> compareBuilder_; + + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public java.util.List getCompareList() { + if (compareBuilder_ == null) { + return java.util.Collections.unmodifiableList(compare_); + } else { + return compareBuilder_.getMessageList(); + } + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public int getCompareCount() { + if (compareBuilder_ == null) { + return compare_.size(); + } else { + return compareBuilder_.getCount(); + } + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare getCompare(int index) { + if (compareBuilder_ == null) { + return compare_.get(index); + } else { + return compareBuilder_.getMessage(index); + } + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder setCompare( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Compare value) { + if (compareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompareIsMutable(); + compare_.set(index, value); + onChanged(); + } else { + compareBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder setCompare( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder builderForValue) { + if (compareBuilder_ == null) { + ensureCompareIsMutable(); + compare_.set(index, builderForValue.build()); + onChanged(); + } else { + compareBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder addCompare(org.eclipse.ecf.provider.etcd3.grpc.api.Compare value) { + if (compareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompareIsMutable(); + compare_.add(value); + onChanged(); + } else { + compareBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder addCompare( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Compare value) { + if (compareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompareIsMutable(); + compare_.add(index, value); + onChanged(); + } else { + compareBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder addCompare( + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder builderForValue) { + if (compareBuilder_ == null) { + ensureCompareIsMutable(); + compare_.add(builderForValue.build()); + onChanged(); + } else { + compareBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder addCompare( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder builderForValue) { + if (compareBuilder_ == null) { + ensureCompareIsMutable(); + compare_.add(index, builderForValue.build()); + onChanged(); + } else { + compareBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder addAllCompare( + java.lang.Iterable values) { + if (compareBuilder_ == null) { + ensureCompareIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, compare_); + onChanged(); + } else { + compareBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder clearCompare() { + if (compareBuilder_ == null) { + compare_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + compareBuilder_.clear(); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public Builder removeCompare(int index) { + if (compareBuilder_ == null) { + ensureCompareIsMutable(); + compare_.remove(index); + onChanged(); + } else { + compareBuilder_.remove(index); + } + return this; + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder getCompareBuilder( + int index) { + return getCompareFieldBuilder().getBuilder(index); + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder getCompareOrBuilder( + int index) { + if (compareBuilder_ == null) { + return compare_.get(index); } else { + return compareBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public java.util.List + getCompareOrBuilderList() { + if (compareBuilder_ != null) { + return compareBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(compare_); + } + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder addCompareBuilder() { + return getCompareFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.Compare.getDefaultInstance()); + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder addCompareBuilder( + int index) { + return getCompareFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.getDefaultInstance()); + } + /** + *
+     * compare is a list of predicates representing a conjunction of terms.
+     * If the comparisons succeed, then the success requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * If the comparisons fail, then the failure requests will be processed in order,
+     * and the response will contain their respective responses in order.
+     * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + public java.util.List + getCompareBuilderList() { + return getCompareFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Compare, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder> + getCompareFieldBuilder() { + if (compareBuilder_ == null) { + compareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.Compare, org.eclipse.ecf.provider.etcd3.grpc.api.Compare.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder>( + compare_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + compare_ = null; + } + return compareBuilder_; + } + + private java.util.List success_ = + java.util.Collections.emptyList(); + private void ensureSuccessIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + success_ = new java.util.ArrayList(success_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder> successBuilder_; + + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public java.util.List getSuccessList() { + if (successBuilder_ == null) { + return java.util.Collections.unmodifiableList(success_); + } else { + return successBuilder_.getMessageList(); + } + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public int getSuccessCount() { + if (successBuilder_ == null) { + return success_.size(); + } else { + return successBuilder_.getCount(); + } + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getSuccess(int index) { + if (successBuilder_ == null) { + return success_.get(index); + } else { + return successBuilder_.getMessage(index); + } + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder setSuccess( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp value) { + if (successBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuccessIsMutable(); + success_.set(index, value); + onChanged(); + } else { + successBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder setSuccess( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder builderForValue) { + if (successBuilder_ == null) { + ensureSuccessIsMutable(); + success_.set(index, builderForValue.build()); + onChanged(); + } else { + successBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder addSuccess(org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp value) { + if (successBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuccessIsMutable(); + success_.add(value); + onChanged(); + } else { + successBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder addSuccess( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp value) { + if (successBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuccessIsMutable(); + success_.add(index, value); + onChanged(); + } else { + successBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder addSuccess( + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder builderForValue) { + if (successBuilder_ == null) { + ensureSuccessIsMutable(); + success_.add(builderForValue.build()); + onChanged(); + } else { + successBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder addSuccess( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder builderForValue) { + if (successBuilder_ == null) { + ensureSuccessIsMutable(); + success_.add(index, builderForValue.build()); + onChanged(); + } else { + successBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder addAllSuccess( + java.lang.Iterable values) { + if (successBuilder_ == null) { + ensureSuccessIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, success_); + onChanged(); + } else { + successBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder clearSuccess() { + if (successBuilder_ == null) { + success_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + successBuilder_.clear(); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public Builder removeSuccess(int index) { + if (successBuilder_ == null) { + ensureSuccessIsMutable(); + success_.remove(index); + onChanged(); + } else { + successBuilder_.remove(index); + } + return this; + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder getSuccessBuilder( + int index) { + return getSuccessFieldBuilder().getBuilder(index); + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder getSuccessOrBuilder( + int index) { + if (successBuilder_ == null) { + return success_.get(index); } else { + return successBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public java.util.List + getSuccessOrBuilderList() { + if (successBuilder_ != null) { + return successBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(success_); + } + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder addSuccessBuilder() { + return getSuccessFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.getDefaultInstance()); + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder addSuccessBuilder( + int index) { + return getSuccessFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.getDefaultInstance()); + } + /** + *
+     * success is a list of requests which will be applied when compare evaluates to true.
+     * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + public java.util.List + getSuccessBuilderList() { + return getSuccessFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder> + getSuccessFieldBuilder() { + if (successBuilder_ == null) { + successBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder>( + success_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + success_ = null; + } + return successBuilder_; + } + + private java.util.List failure_ = + java.util.Collections.emptyList(); + private void ensureFailureIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + failure_ = new java.util.ArrayList(failure_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder> failureBuilder_; + + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public java.util.List getFailureList() { + if (failureBuilder_ == null) { + return java.util.Collections.unmodifiableList(failure_); + } else { + return failureBuilder_.getMessageList(); + } + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public int getFailureCount() { + if (failureBuilder_ == null) { + return failure_.size(); + } else { + return failureBuilder_.getCount(); + } + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getFailure(int index) { + if (failureBuilder_ == null) { + return failure_.get(index); + } else { + return failureBuilder_.getMessage(index); + } + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder setFailure( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp value) { + if (failureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureIsMutable(); + failure_.set(index, value); + onChanged(); + } else { + failureBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder setFailure( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder builderForValue) { + if (failureBuilder_ == null) { + ensureFailureIsMutable(); + failure_.set(index, builderForValue.build()); + onChanged(); + } else { + failureBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder addFailure(org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp value) { + if (failureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureIsMutable(); + failure_.add(value); + onChanged(); + } else { + failureBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder addFailure( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp value) { + if (failureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureIsMutable(); + failure_.add(index, value); + onChanged(); + } else { + failureBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder addFailure( + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder builderForValue) { + if (failureBuilder_ == null) { + ensureFailureIsMutable(); + failure_.add(builderForValue.build()); + onChanged(); + } else { + failureBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder addFailure( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder builderForValue) { + if (failureBuilder_ == null) { + ensureFailureIsMutable(); + failure_.add(index, builderForValue.build()); + onChanged(); + } else { + failureBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder addAllFailure( + java.lang.Iterable values) { + if (failureBuilder_ == null) { + ensureFailureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failure_); + onChanged(); + } else { + failureBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder clearFailure() { + if (failureBuilder_ == null) { + failure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + failureBuilder_.clear(); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public Builder removeFailure(int index) { + if (failureBuilder_ == null) { + ensureFailureIsMutable(); + failure_.remove(index); + onChanged(); + } else { + failureBuilder_.remove(index); + } + return this; + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder getFailureBuilder( + int index) { + return getFailureFieldBuilder().getBuilder(index); + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder getFailureOrBuilder( + int index) { + if (failureBuilder_ == null) { + return failure_.get(index); } else { + return failureBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public java.util.List + getFailureOrBuilderList() { + if (failureBuilder_ != null) { + return failureBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(failure_); + } + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder addFailureBuilder() { + return getFailureFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.getDefaultInstance()); + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder addFailureBuilder( + int index) { + return getFailureFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.getDefaultInstance()); + } + /** + *
+     * failure is a list of requests which will be applied when compare evaluates to false.
+     * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + public java.util.List + getFailureBuilderList() { + return getFailureFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder> + getFailureFieldBuilder() { + if (failureBuilder_ == null) { + failureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder>( + failure_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + failure_ = null; + } + return failureBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.TxnRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.TxnRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxnRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxnRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.TxnRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequestOrBuilder.java new file mode 100644 index 0000000..297bcd7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnRequestOrBuilder.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface TxnRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.TxnRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + java.util.List + getCompareList(); + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.Compare getCompare(int index); + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + int getCompareCount(); + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + java.util.List + getCompareOrBuilderList(); + /** + *
+   * compare is a list of predicates representing a conjunction of terms.
+   * If the comparisons succeed, then the success requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * If the comparisons fail, then the failure requests will be processed in order,
+   * and the response will contain their respective responses in order.
+   * 
+ * + * repeated .etcdserverpb.Compare compare = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.CompareOrBuilder getCompareOrBuilder( + int index); + + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + java.util.List + getSuccessList(); + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getSuccess(int index); + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + int getSuccessCount(); + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + java.util.List + getSuccessOrBuilderList(); + /** + *
+   * success is a list of requests which will be applied when compare evaluates to true.
+   * 
+ * + * repeated .etcdserverpb.RequestOp success = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder getSuccessOrBuilder( + int index); + + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + java.util.List + getFailureList(); + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOp getFailure(int index); + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + int getFailureCount(); + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + java.util.List + getFailureOrBuilderList(); + /** + *
+   * failure is a list of requests which will be applied when compare evaluates to false.
+   * 
+ * + * repeated .etcdserverpb.RequestOp failure = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.RequestOpOrBuilder getFailureOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponse.java new file mode 100644 index 0000000..0341b01 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponse.java @@ -0,0 +1,1154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.TxnResponse} + */ +public final class TxnResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.TxnResponse) + TxnResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use TxnResponse.newBuilder() to construct. + private TxnResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TxnResponse() { + responses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TxnResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TxnResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + succeeded_ = input.readBool(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int SUCCEEDED_FIELD_NUMBER = 2; + private boolean succeeded_; + /** + *
+   * succeeded is set to true if the compare evaluated to true or false otherwise.
+   * 
+ * + * bool succeeded = 2; + * @return The succeeded. + */ + @java.lang.Override + public boolean getSucceeded() { + return succeeded_; + } + + public static final int RESPONSES_FIELD_NUMBER = 3; + private java.util.List responses_; + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + @java.lang.Override + public java.util.List getResponsesList() { + return responses_; + } + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + @java.lang.Override + public java.util.List + getResponsesOrBuilderList() { + return responses_; + } + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + @java.lang.Override + public int getResponsesCount() { + return responses_.size(); + } + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp getResponses(int index) { + return responses_.get(index); + } + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder getResponsesOrBuilder( + int index) { + return responses_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (succeeded_ != false) { + output.writeBool(2, succeeded_); + } + for (int i = 0; i < responses_.size(); i++) { + output.writeMessage(3, responses_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (succeeded_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, succeeded_); + } + for (int i = 0; i < responses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, responses_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getSucceeded() + != other.getSucceeded()) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + SUCCEEDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSucceeded()); + if (getResponsesCount() > 0) { + hash = (37 * hash) + RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getResponsesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.TxnResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.TxnResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponsesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + succeeded_ = false; + + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + responsesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_TxnResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.succeeded_ = succeeded_; + if (responsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responses_ = responses_; + } else { + result.responses_ = responsesBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getSucceeded() != false) { + setSucceeded(other.getSucceeded()); + } + if (responsesBuilder_ == null) { + if (!other.responses_.isEmpty()) { + if (responses_.isEmpty()) { + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponsesIsMutable(); + responses_.addAll(other.responses_); + } + onChanged(); + } + } else { + if (!other.responses_.isEmpty()) { + if (responsesBuilder_.isEmpty()) { + responsesBuilder_.dispose(); + responsesBuilder_ = null; + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; + } else { + responsesBuilder_.addAllMessages(other.responses_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private boolean succeeded_ ; + /** + *
+     * succeeded is set to true if the compare evaluated to true or false otherwise.
+     * 
+ * + * bool succeeded = 2; + * @return The succeeded. + */ + @java.lang.Override + public boolean getSucceeded() { + return succeeded_; + } + /** + *
+     * succeeded is set to true if the compare evaluated to true or false otherwise.
+     * 
+ * + * bool succeeded = 2; + * @param value The succeeded to set. + * @return This builder for chaining. + */ + public Builder setSucceeded(boolean value) { + + succeeded_ = value; + onChanged(); + return this; + } + /** + *
+     * succeeded is set to true if the compare evaluated to true or false otherwise.
+     * 
+ * + * bool succeeded = 2; + * @return This builder for chaining. + */ + public Builder clearSucceeded() { + + succeeded_ = false; + onChanged(); + return this; + } + + private java.util.List responses_ = + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(responses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder> responsesBuilder_; + + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public java.util.List getResponsesList() { + if (responsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responses_); + } else { + return responsesBuilder_.getMessageList(); + } + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public int getResponsesCount() { + if (responsesBuilder_ == null) { + return responses_.size(); + } else { + return responsesBuilder_.getCount(); + } + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp getResponses(int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); + } else { + return responsesBuilder_.getMessage(index); + } + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder setResponses( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.set(index, value); + onChanged(); + } else { + responsesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder setResponses( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.set(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder addResponses(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(value); + onChanged(); + } else { + responsesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder addResponses( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(index, value); + onChanged(); + } else { + responsesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder addResponses( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder addResponses( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder addAllResponses( + java.lang.Iterable values) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); + onChanged(); + } else { + responsesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder clearResponses() { + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + responsesBuilder_.clear(); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public Builder removeResponses(int index) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.remove(index); + onChanged(); + } else { + responsesBuilder_.remove(index); + } + return this; + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder getResponsesBuilder( + int index) { + return getResponsesFieldBuilder().getBuilder(index); + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder getResponsesOrBuilder( + int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); } else { + return responsesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public java.util.List + getResponsesOrBuilderList() { + if (responsesBuilder_ != null) { + return responsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responses_); + } + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder addResponsesBuilder() { + return getResponsesFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.getDefaultInstance()); + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder addResponsesBuilder( + int index) { + return getResponsesFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.getDefaultInstance()); + } + /** + *
+     * responses is a list of responses corresponding to the results from applying
+     * success if succeeded is true or failure if succeeded is false.
+     * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + public java.util.List + getResponsesBuilderList() { + return getResponsesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder> + getResponsesFieldBuilder() { + if (responsesBuilder_ == null) { + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + responses_ = null; + } + return responsesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.TxnResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.TxnResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxnResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxnResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.TxnResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponseOrBuilder.java new file mode 100644 index 0000000..6076121 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/TxnResponseOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface TxnResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.TxnResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * succeeded is set to true if the compare evaluated to true or false otherwise.
+   * 
+ * + * bool succeeded = 2; + * @return The succeeded. + */ + boolean getSucceeded(); + + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + java.util.List + getResponsesList(); + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOp getResponses(int index); + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + int getResponsesCount(); + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + java.util.List + getResponsesOrBuilderList(); + /** + *
+   * responses is a list of responses corresponding to the results from applying
+   * success if succeeded is true or failure if succeeded is false.
+   * 
+ * + * repeated .etcdserverpb.ResponseOp responses = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseOpOrBuilder getResponsesOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequest.java new file mode 100644 index 0000000..96f4070 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequest.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.WatchCancelRequest} + */ +public final class WatchCancelRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.WatchCancelRequest) + WatchCancelRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use WatchCancelRequest.newBuilder() to construct. + private WatchCancelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WatchCancelRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WatchCancelRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WatchCancelRequest( + 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 8: { + + watchId_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCancelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder.class); + } + + public static final int WATCH_ID_FIELD_NUMBER = 1; + private long watchId_; + /** + *
+   * watch_id is the watcher id to cancel so that no more events are transmitted.
+   * 
+ * + * int64 watch_id = 1; + * @return The watchId. + */ + @java.lang.Override + public long getWatchId() { + return watchId_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (watchId_ != 0L) { + output.writeInt64(1, watchId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (watchId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, watchId_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) obj; + + if (getWatchId() + != other.getWatchId()) 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) + WATCH_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWatchId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.WatchCancelRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchCancelRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCancelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.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(); + watchId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCancelRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest(this); + result.watchId_ = watchId_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance()) return this; + if (other.getWatchId() != 0L) { + setWatchId(other.getWatchId()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long watchId_ ; + /** + *
+     * watch_id is the watcher id to cancel so that no more events are transmitted.
+     * 
+ * + * int64 watch_id = 1; + * @return The watchId. + */ + @java.lang.Override + public long getWatchId() { + return watchId_; + } + /** + *
+     * watch_id is the watcher id to cancel so that no more events are transmitted.
+     * 
+ * + * int64 watch_id = 1; + * @param value The watchId to set. + * @return This builder for chaining. + */ + public Builder setWatchId(long value) { + + watchId_ = value; + onChanged(); + return this; + } + /** + *
+     * watch_id is the watcher id to cancel so that no more events are transmitted.
+     * 
+ * + * int64 watch_id = 1; + * @return This builder for chaining. + */ + public Builder clearWatchId() { + + watchId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchCancelRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.WatchCancelRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchCancelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WatchCancelRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequestOrBuilder.java new file mode 100644 index 0000000..ca68651 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCancelRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface WatchCancelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchCancelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * watch_id is the watcher id to cancel so that no more events are transmitted.
+   * 
+ * + * int64 watch_id = 1; + * @return The watchId. + */ + long getWatchId(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequest.java new file mode 100644 index 0000000..6578172 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequest.java @@ -0,0 +1,1324 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.WatchCreateRequest} + */ +public final class WatchCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.WatchCreateRequest) + WatchCreateRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use WatchCreateRequest.newBuilder() to construct. + private WatchCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WatchCreateRequest() { + key_ = com.google.protobuf.ByteString.EMPTY; + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + filters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WatchCreateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WatchCreateRequest( + 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: { + + key_ = input.readBytes(); + break; + } + case 18: { + + rangeEnd_ = input.readBytes(); + break; + } + case 24: { + + startRevision_ = input.readInt64(); + break; + } + case 32: { + + progressNotify_ = input.readBool(); + break; + } + case 40: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + filters_.add(rawValue); + break; + } + case 42: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + filters_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 48: { + + prevKv_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder.class); + } + + /** + * Protobuf enum {@code etcdserverpb.WatchCreateRequest.FilterType} + */ + public enum FilterType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * filter out put event.
+     * 
+ * + * NOPUT = 0; + */ + NOPUT(0), + /** + *
+     * filter out delete event.
+     * 
+ * + * NODELETE = 1; + */ + NODELETE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * filter out put event.
+     * 
+ * + * NOPUT = 0; + */ + public static final int NOPUT_VALUE = 0; + /** + *
+     * filter out delete event.
+     * 
+ * + * NODELETE = 1; + */ + public static final int NODELETE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FilterType forNumber(int value) { + switch (value) { + case 0: return NOPUT; + case 1: return NODELETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FilterType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final FilterType[] VALUES = values(); + + public static FilterType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:etcdserverpb.WatchCreateRequest.FilterType) + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + /** + *
+   * key is the key to register for watching.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int RANGE_END_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString rangeEnd_; + /** + *
+   * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
+   * only the key argument is watched. If range_end is equal to '\0', all keys greater than
+   * or equal to the key argument are watched.
+   * If the range_end is one bit larger than the given key,
+   * then all keys with the prefix (the given key) will be watched.
+   * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + + public static final int START_REVISION_FIELD_NUMBER = 3; + private long startRevision_; + /** + *
+   * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
+   * 
+ * + * int64 start_revision = 3; + * @return The startRevision. + */ + @java.lang.Override + public long getStartRevision() { + return startRevision_; + } + + public static final int PROGRESS_NOTIFY_FIELD_NUMBER = 4; + private boolean progressNotify_; + /** + *
+   * progress_notify is set so that the etcd server will periodically send a WatchResponse with
+   * no events to the new watcher if there are no recent events. It is useful when clients
+   * wish to recover a disconnected watcher starting from a recent known revision.
+   * The etcd server may decide how often it will send notifications based on current load.
+   * 
+ * + * bool progress_notify = 4; + * @return The progressNotify. + */ + @java.lang.Override + public boolean getProgressNotify() { + return progressNotify_; + } + + public static final int FILTERS_FIELD_NUMBER = 5; + private java.util.List filters_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType> filters_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType>() { + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType result = org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType.valueOf(from); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType.UNRECOGNIZED : result; + } + }; + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return A list containing the filters. + */ + @java.lang.Override + public java.util.List getFiltersList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType>(filters_, filters_converter_); + } + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return The count of filters. + */ + @java.lang.Override + public int getFiltersCount() { + return filters_.size(); + } + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the element to return. + * @return The filters at the given index. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType getFilters(int index) { + return filters_converter_.convert(filters_.get(index)); + } + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return A list containing the enum numeric values on the wire for filters. + */ + @java.lang.Override + public java.util.List + getFiltersValueList() { + return filters_; + } + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filters at the given index. + */ + @java.lang.Override + public int getFiltersValue(int index) { + return filters_.get(index); + } + private int filtersMemoizedSerializedSize; + + public static final int PREV_KV_FIELD_NUMBER = 6; + private boolean prevKv_; + /** + *
+   * If prev_kv is set, created watcher gets the previous KV before the event happens.
+   * If the previous KV is already compacted, nothing will be returned.
+   * 
+ * + * bool prev_kv = 6; + * @return The prevKv. + */ + @java.lang.Override + public boolean getPrevKv() { + return prevKv_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (!rangeEnd_.isEmpty()) { + output.writeBytes(2, rangeEnd_); + } + if (startRevision_ != 0L) { + output.writeInt64(3, startRevision_); + } + if (progressNotify_ != false) { + output.writeBool(4, progressNotify_); + } + if (getFiltersList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(filtersMemoizedSerializedSize); + } + for (int i = 0; i < filters_.size(); i++) { + output.writeEnumNoTag(filters_.get(i)); + } + if (prevKv_ != false) { + output.writeBool(6, prevKv_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); + } + if (!rangeEnd_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, rangeEnd_); + } + if (startRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, startRevision_); + } + if (progressNotify_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, progressNotify_); + } + { + int dataSize = 0; + for (int i = 0; i < filters_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(filters_.get(i)); + } + size += dataSize; + if (!getFiltersList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }filtersMemoizedSerializedSize = dataSize; + } + if (prevKv_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, prevKv_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getRangeEnd() + .equals(other.getRangeEnd())) return false; + if (getStartRevision() + != other.getStartRevision()) return false; + if (getProgressNotify() + != other.getProgressNotify()) return false; + if (!filters_.equals(other.filters_)) return false; + if (getPrevKv() + != other.getPrevKv()) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + RANGE_END_FIELD_NUMBER; + hash = (53 * hash) + getRangeEnd().hashCode(); + hash = (37 * hash) + START_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartRevision()); + hash = (37 * hash) + PROGRESS_NOTIFY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProgressNotify()); + if (getFiltersCount() > 0) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + filters_.hashCode(); + } + hash = (37 * hash) + PREV_KV_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrevKv()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.WatchCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchCreateRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.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(); + key_ = com.google.protobuf.ByteString.EMPTY; + + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + + startRevision_ = 0L; + + progressNotify_ = false; + + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + prevKv_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchCreateRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest(this); + int from_bitField0_ = bitField0_; + result.key_ = key_; + result.rangeEnd_ = rangeEnd_; + result.startRevision_ = startRevision_; + result.progressNotify_ = progressNotify_; + if (((bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filters_ = filters_; + result.prevKv_ = prevKv_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance()) return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { + setRangeEnd(other.getRangeEnd()); + } + if (other.getStartRevision() != 0L) { + setStartRevision(other.getStartRevision()); + } + if (other.getProgressNotify() != false) { + setProgressNotify(other.getProgressNotify()); + } + if (!other.filters_.isEmpty()) { + if (filters_.isEmpty()) { + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFiltersIsMutable(); + filters_.addAll(other.filters_); + } + onChanged(); + } + if (other.getPrevKv() != false) { + setPrevKv(other.getPrevKv()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * key is the key to register for watching.
+     * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * key is the key to register for watching.
+     * 
+ * + * bytes key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * key is the key to register for watching.
+     * 
+ * + * bytes key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
+     * only the key argument is watched. If range_end is equal to '\0', all keys greater than
+     * or equal to the key argument are watched.
+     * If the range_end is one bit larger than the given key,
+     * then all keys with the prefix (the given key) will be watched.
+     * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + /** + *
+     * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
+     * only the key argument is watched. If range_end is equal to '\0', all keys greater than
+     * or equal to the key argument are watched.
+     * If the range_end is one bit larger than the given key,
+     * then all keys with the prefix (the given key) will be watched.
+     * 
+ * + * bytes range_end = 2; + * @param value The rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEnd(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeEnd_ = value; + onChanged(); + return this; + } + /** + *
+     * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
+     * only the key argument is watched. If range_end is equal to '\0', all keys greater than
+     * or equal to the key argument are watched.
+     * If the range_end is one bit larger than the given key,
+     * then all keys with the prefix (the given key) will be watched.
+     * 
+ * + * bytes range_end = 2; + * @return This builder for chaining. + */ + public Builder clearRangeEnd() { + + rangeEnd_ = getDefaultInstance().getRangeEnd(); + onChanged(); + return this; + } + + private long startRevision_ ; + /** + *
+     * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
+     * 
+ * + * int64 start_revision = 3; + * @return The startRevision. + */ + @java.lang.Override + public long getStartRevision() { + return startRevision_; + } + /** + *
+     * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
+     * 
+ * + * int64 start_revision = 3; + * @param value The startRevision to set. + * @return This builder for chaining. + */ + public Builder setStartRevision(long value) { + + startRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
+     * 
+ * + * int64 start_revision = 3; + * @return This builder for chaining. + */ + public Builder clearStartRevision() { + + startRevision_ = 0L; + onChanged(); + return this; + } + + private boolean progressNotify_ ; + /** + *
+     * progress_notify is set so that the etcd server will periodically send a WatchResponse with
+     * no events to the new watcher if there are no recent events. It is useful when clients
+     * wish to recover a disconnected watcher starting from a recent known revision.
+     * The etcd server may decide how often it will send notifications based on current load.
+     * 
+ * + * bool progress_notify = 4; + * @return The progressNotify. + */ + @java.lang.Override + public boolean getProgressNotify() { + return progressNotify_; + } + /** + *
+     * progress_notify is set so that the etcd server will periodically send a WatchResponse with
+     * no events to the new watcher if there are no recent events. It is useful when clients
+     * wish to recover a disconnected watcher starting from a recent known revision.
+     * The etcd server may decide how often it will send notifications based on current load.
+     * 
+ * + * bool progress_notify = 4; + * @param value The progressNotify to set. + * @return This builder for chaining. + */ + public Builder setProgressNotify(boolean value) { + + progressNotify_ = value; + onChanged(); + return this; + } + /** + *
+     * progress_notify is set so that the etcd server will periodically send a WatchResponse with
+     * no events to the new watcher if there are no recent events. It is useful when clients
+     * wish to recover a disconnected watcher starting from a recent known revision.
+     * The etcd server may decide how often it will send notifications based on current load.
+     * 
+ * + * bool progress_notify = 4; + * @return This builder for chaining. + */ + public Builder clearProgressNotify() { + + progressNotify_ = false; + onChanged(); + return this; + } + + private java.util.List filters_ = + java.util.Collections.emptyList(); + private void ensureFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(filters_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return A list containing the filters. + */ + public java.util.List getFiltersList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType>(filters_, filters_converter_); + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return The count of filters. + */ + public int getFiltersCount() { + return filters_.size(); + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the element to return. + * @return The filters at the given index. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType getFilters(int index) { + return filters_converter_.convert(filters_.get(index)); + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index to set the value at. + * @param value The filters to set. + * @return This builder for chaining. + */ + public Builder setFilters( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param value The filters to add. + * @return This builder for chaining. + */ + public Builder addFilters(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param values The filters to add. + * @return This builder for chaining. + */ + public Builder addAllFilters( + java.lang.Iterable values) { + ensureFiltersIsMutable(); + for (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType value : values) { + filters_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return This builder for chaining. + */ + public Builder clearFilters() { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return A list containing the enum numeric values on the wire for filters. + */ + public java.util.List + getFiltersValueList() { + return java.util.Collections.unmodifiableList(filters_); + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filters at the given index. + */ + public int getFiltersValue(int index) { + return filters_.get(index); + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filters at the given index. + * @return This builder for chaining. + */ + public Builder setFiltersValue( + int index, int value) { + ensureFiltersIsMutable(); + filters_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param value The enum numeric value on the wire for filters to add. + * @return This builder for chaining. + */ + public Builder addFiltersValue(int value) { + ensureFiltersIsMutable(); + filters_.add(value); + onChanged(); + return this; + } + /** + *
+     * filters filter the events at server side before it sends back to the watcher.
+     * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param values The enum numeric values on the wire for filters to add. + * @return This builder for chaining. + */ + public Builder addAllFiltersValue( + java.lang.Iterable values) { + ensureFiltersIsMutable(); + for (int value : values) { + filters_.add(value); + } + onChanged(); + return this; + } + + private boolean prevKv_ ; + /** + *
+     * If prev_kv is set, created watcher gets the previous KV before the event happens.
+     * If the previous KV is already compacted, nothing will be returned.
+     * 
+ * + * bool prev_kv = 6; + * @return The prevKv. + */ + @java.lang.Override + public boolean getPrevKv() { + return prevKv_; + } + /** + *
+     * If prev_kv is set, created watcher gets the previous KV before the event happens.
+     * If the previous KV is already compacted, nothing will be returned.
+     * 
+ * + * bool prev_kv = 6; + * @param value The prevKv to set. + * @return This builder for chaining. + */ + public Builder setPrevKv(boolean value) { + + prevKv_ = value; + onChanged(); + return this; + } + /** + *
+     * If prev_kv is set, created watcher gets the previous KV before the event happens.
+     * If the previous KV is already compacted, nothing will be returned.
+     * 
+ * + * bool prev_kv = 6; + * @return This builder for chaining. + */ + public Builder clearPrevKv() { + + prevKv_ = 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:etcdserverpb.WatchCreateRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.WatchCreateRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WatchCreateRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequestOrBuilder.java new file mode 100644 index 0000000..d71f7d7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchCreateRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface WatchCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * key is the key to register for watching.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
+   * only the key argument is watched. If range_end is equal to '\0', all keys greater than
+   * or equal to the key argument are watched.
+   * If the range_end is one bit larger than the given key,
+   * then all keys with the prefix (the given key) will be watched.
+   * 
+ * + * bytes range_end = 2; + * @return The rangeEnd. + */ + com.google.protobuf.ByteString getRangeEnd(); + + /** + *
+   * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
+   * 
+ * + * int64 start_revision = 3; + * @return The startRevision. + */ + long getStartRevision(); + + /** + *
+   * progress_notify is set so that the etcd server will periodically send a WatchResponse with
+   * no events to the new watcher if there are no recent events. It is useful when clients
+   * wish to recover a disconnected watcher starting from a recent known revision.
+   * The etcd server may decide how often it will send notifications based on current load.
+   * 
+ * + * bool progress_notify = 4; + * @return The progressNotify. + */ + boolean getProgressNotify(); + + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return A list containing the filters. + */ + java.util.List getFiltersList(); + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return The count of filters. + */ + int getFiltersCount(); + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the element to return. + * @return The filters at the given index. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.FilterType getFilters(int index); + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @return A list containing the enum numeric values on the wire for filters. + */ + java.util.List + getFiltersValueList(); + /** + *
+   * filters filter the events at server side before it sends back to the watcher.
+   * 
+ * + * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filters at the given index. + */ + int getFiltersValue(int index); + + /** + *
+   * If prev_kv is set, created watcher gets the previous KV before the event happens.
+   * If the previous KV is already compacted, nothing will be returned.
+   * 
+ * + * bool prev_kv = 6; + * @return The prevKv. + */ + boolean getPrevKv(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchGrpc.java new file mode 100644 index 0000000..b6fe377 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchGrpc.java @@ -0,0 +1,273 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.39.0)", + comments = "Source: rpc.proto") +public final class WatchGrpc { + + private WatchGrpc() {} + + public static final String SERVICE_NAME = "etcdserverpb.Watch"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getWatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Watch", + requestType = org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.class, + responseType = org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getWatchMethod() { + io.grpc.MethodDescriptor getWatchMethod; + if ((getWatchMethod = WatchGrpc.getWatchMethod) == null) { + synchronized (WatchGrpc.class) { + if ((getWatchMethod = WatchGrpc.getWatchMethod) == null) { + WatchGrpc.getWatchMethod = getWatchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Watch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.getDefaultInstance())) + .setSchemaDescriptor(new WatchMethodDescriptorSupplier("Watch")) + .build(); + } + } + } + return getWatchMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WatchStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WatchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WatchStub(channel, callOptions); + } + }; + return WatchStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WatchBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WatchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WatchBlockingStub(channel, callOptions); + } + }; + return WatchBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WatchFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WatchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WatchFutureStub(channel, callOptions); + } + }; + return WatchFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class WatchImplBase implements io.grpc.BindableService { + + /** + *
+     * Watch watches for events happening or that have happened. Both input and output
+     * are streams; the input stream is for creating and canceling watchers and the output
+     * stream sends events. One watch RPC can watch on multiple key ranges, streaming events
+     * for several watches at once. The entire event history can be watched starting from the
+     * last compaction revision.
+     * 
+ */ + public io.grpc.stub.StreamObserver watch( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getWatchMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getWatchMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest, + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse>( + this, METHODID_WATCH))) + .build(); + } + } + + /** + */ + public static final class WatchStub extends io.grpc.stub.AbstractAsyncStub { + private WatchStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WatchStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WatchStub(channel, callOptions); + } + + /** + *
+     * Watch watches for events happening or that have happened. Both input and output
+     * are streams; the input stream is for creating and canceling watchers and the output
+     * stream sends events. One watch RPC can watch on multiple key ranges, streaming events
+     * for several watches at once. The entire event history can be watched starting from the
+     * last compaction revision.
+     * 
+ */ + public io.grpc.stub.StreamObserver watch( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getWatchMethod(), getCallOptions()), responseObserver); + } + } + + /** + */ + public static final class WatchBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WatchBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WatchBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WatchBlockingStub(channel, callOptions); + } + } + + /** + */ + public static final class WatchFutureStub extends io.grpc.stub.AbstractFutureStub { + private WatchFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WatchFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WatchFutureStub(channel, callOptions); + } + } + + private static final int METHODID_WATCH = 0; + + 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 WatchImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WatchImplBase 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) { + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_WATCH: + return (io.grpc.stub.StreamObserver) serviceImpl.watch( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class WatchBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WatchBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Watch"); + } + } + + private static final class WatchFileDescriptorSupplier + extends WatchBaseDescriptorSupplier { + WatchFileDescriptorSupplier() {} + } + + private static final class WatchMethodDescriptorSupplier + extends WatchBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WatchMethodDescriptorSupplier(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 (WatchGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WatchFileDescriptorSupplier()) + .addMethod(getWatchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequest.java new file mode 100644 index 0000000..4eb2378 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequest.java @@ -0,0 +1,916 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.WatchRequest} + */ +public final class WatchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.WatchRequest) + WatchRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use WatchRequest.newBuilder() to construct. + private WatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WatchRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WatchRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WatchRequest( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder subBuilder = null; + if (requestUnionCase_ == 1) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_).toBuilder(); + } + requestUnion_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_); + requestUnion_ = subBuilder.buildPartial(); + } + requestUnionCase_ = 1; + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder subBuilder = null; + if (requestUnionCase_ == 2) { + subBuilder = ((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_).toBuilder(); + } + requestUnion_ = + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_); + requestUnion_ = subBuilder.buildPartial(); + } + requestUnionCase_ = 2; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.Builder.class); + } + + private int requestUnionCase_ = 0; + private java.lang.Object requestUnion_; + public enum RequestUnionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_REQUEST(1), + CANCEL_REQUEST(2), + REQUESTUNION_NOT_SET(0); + private final int value; + private RequestUnionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestUnionCase valueOf(int value) { + return forNumber(value); + } + + public static RequestUnionCase forNumber(int value) { + switch (value) { + case 1: return CREATE_REQUEST; + case 2: return CANCEL_REQUEST; + case 0: return REQUESTUNION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RequestUnionCase + getRequestUnionCase() { + return RequestUnionCase.forNumber( + requestUnionCase_); + } + + public static final int CREATE_REQUEST_FIELD_NUMBER = 1; + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + * @return Whether the createRequest field is set. + */ + @java.lang.Override + public boolean hasCreateRequest() { + return requestUnionCase_ == 1; + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + * @return The createRequest. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest getCreateRequest() { + if (requestUnionCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder getCreateRequestOrBuilder() { + if (requestUnionCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } + + public static final int CANCEL_REQUEST_FIELD_NUMBER = 2; + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + * @return Whether the cancelRequest field is set. + */ + @java.lang.Override + public boolean hasCancelRequest() { + return requestUnionCase_ == 2; + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + * @return The cancelRequest. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest getCancelRequest() { + if (requestUnionCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder getCancelRequestOrBuilder() { + if (requestUnionCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (requestUnionCase_ == 1) { + output.writeMessage(1, (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_); + } + if (requestUnionCase_ == 2) { + output.writeMessage(2, (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (requestUnionCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_); + } + if (requestUnionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest) obj; + + if (!getRequestUnionCase().equals(other.getRequestUnionCase())) return false; + switch (requestUnionCase_) { + case 1: + if (!getCreateRequest() + .equals(other.getCreateRequest())) return false; + break; + case 2: + if (!getCancelRequest() + .equals(other.getCancelRequest())) return false; + break; + case 0: + default: + } + 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(); + switch (requestUnionCase_) { + case 1: + hash = (37 * hash) + CREATE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateRequest().hashCode(); + break; + case 2: + hash = (37 * hash) + CANCEL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCancelRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.WatchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchRequest) + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.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(); + requestUnionCase_ = 0; + requestUnion_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchRequest_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest build() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest result = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest(this); + if (requestUnionCase_ == 1) { + if (createRequestBuilder_ == null) { + result.requestUnion_ = requestUnion_; + } else { + result.requestUnion_ = createRequestBuilder_.build(); + } + } + if (requestUnionCase_ == 2) { + if (cancelRequestBuilder_ == null) { + result.requestUnion_ = requestUnion_; + } else { + result.requestUnion_ = cancelRequestBuilder_.build(); + } + } + result.requestUnionCase_ = requestUnionCase_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.getDefaultInstance()) return this; + switch (other.getRequestUnionCase()) { + case CREATE_REQUEST: { + mergeCreateRequest(other.getCreateRequest()); + break; + } + case CANCEL_REQUEST: { + mergeCancelRequest(other.getCancelRequest()); + break; + } + case REQUESTUNION_NOT_SET: { + break; + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int requestUnionCase_ = 0; + private java.lang.Object requestUnion_; + public RequestUnionCase + getRequestUnionCase() { + return RequestUnionCase.forNumber( + requestUnionCase_); + } + + public Builder clearRequestUnion() { + requestUnionCase_ = 0; + requestUnion_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder> createRequestBuilder_; + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + * @return Whether the createRequest field is set. + */ + @java.lang.Override + public boolean hasCreateRequest() { + return requestUnionCase_ == 1; + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + * @return The createRequest. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest getCreateRequest() { + if (createRequestBuilder_ == null) { + if (requestUnionCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } else { + if (requestUnionCase_ == 1) { + return createRequestBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + public Builder setCreateRequest(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest value) { + if (createRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestUnion_ = value; + onChanged(); + } else { + createRequestBuilder_.setMessage(value); + } + requestUnionCase_ = 1; + return this; + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + public Builder setCreateRequest( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder builderForValue) { + if (createRequestBuilder_ == null) { + requestUnion_ = builderForValue.build(); + onChanged(); + } else { + createRequestBuilder_.setMessage(builderForValue.build()); + } + requestUnionCase_ = 1; + return this; + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + public Builder mergeCreateRequest(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest value) { + if (createRequestBuilder_ == null) { + if (requestUnionCase_ == 1 && + requestUnion_ != org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance()) { + requestUnion_ = org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_) + .mergeFrom(value).buildPartial(); + } else { + requestUnion_ = value; + } + onChanged(); + } else { + if (requestUnionCase_ == 1) { + createRequestBuilder_.mergeFrom(value); + } + createRequestBuilder_.setMessage(value); + } + requestUnionCase_ = 1; + return this; + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + public Builder clearCreateRequest() { + if (createRequestBuilder_ == null) { + if (requestUnionCase_ == 1) { + requestUnionCase_ = 0; + requestUnion_ = null; + onChanged(); + } + } else { + if (requestUnionCase_ == 1) { + requestUnionCase_ = 0; + requestUnion_ = null; + } + createRequestBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder getCreateRequestBuilder() { + return getCreateRequestFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder getCreateRequestOrBuilder() { + if ((requestUnionCase_ == 1) && (createRequestBuilder_ != null)) { + return createRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestUnionCase_ == 1) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder> + getCreateRequestFieldBuilder() { + if (createRequestBuilder_ == null) { + if (!(requestUnionCase_ == 1)) { + requestUnion_ = org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.getDefaultInstance(); + } + createRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest) requestUnion_, + getParentForChildren(), + isClean()); + requestUnion_ = null; + } + requestUnionCase_ = 1; + onChanged();; + return createRequestBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder> cancelRequestBuilder_; + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + * @return Whether the cancelRequest field is set. + */ + @java.lang.Override + public boolean hasCancelRequest() { + return requestUnionCase_ == 2; + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + * @return The cancelRequest. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest getCancelRequest() { + if (cancelRequestBuilder_ == null) { + if (requestUnionCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } else { + if (requestUnionCase_ == 2) { + return cancelRequestBuilder_.getMessage(); + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + public Builder setCancelRequest(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest value) { + if (cancelRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestUnion_ = value; + onChanged(); + } else { + cancelRequestBuilder_.setMessage(value); + } + requestUnionCase_ = 2; + return this; + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + public Builder setCancelRequest( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder builderForValue) { + if (cancelRequestBuilder_ == null) { + requestUnion_ = builderForValue.build(); + onChanged(); + } else { + cancelRequestBuilder_.setMessage(builderForValue.build()); + } + requestUnionCase_ = 2; + return this; + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + public Builder mergeCancelRequest(org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest value) { + if (cancelRequestBuilder_ == null) { + if (requestUnionCase_ == 2 && + requestUnion_ != org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance()) { + requestUnion_ = org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.newBuilder((org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_) + .mergeFrom(value).buildPartial(); + } else { + requestUnion_ = value; + } + onChanged(); + } else { + if (requestUnionCase_ == 2) { + cancelRequestBuilder_.mergeFrom(value); + } + cancelRequestBuilder_.setMessage(value); + } + requestUnionCase_ = 2; + return this; + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + public Builder clearCancelRequest() { + if (cancelRequestBuilder_ == null) { + if (requestUnionCase_ == 2) { + requestUnionCase_ = 0; + requestUnion_ = null; + onChanged(); + } + } else { + if (requestUnionCase_ == 2) { + requestUnionCase_ = 0; + requestUnion_ = null; + } + cancelRequestBuilder_.clear(); + } + return this; + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder getCancelRequestBuilder() { + return getCancelRequestFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder getCancelRequestOrBuilder() { + if ((requestUnionCase_ == 2) && (cancelRequestBuilder_ != null)) { + return cancelRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestUnionCase_ == 2) { + return (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_; + } + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } + } + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder> + getCancelRequestFieldBuilder() { + if (cancelRequestBuilder_ == null) { + if (!(requestUnionCase_ == 2)) { + requestUnion_ = org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.getDefaultInstance(); + } + cancelRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder>( + (org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest) requestUnion_, + getParentForChildren(), + isClean()); + requestUnion_ = null; + } + requestUnionCase_ = 2; + onChanged();; + return cancelRequestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchRequest) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.WatchRequest) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WatchRequest(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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequestOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequestOrBuilder.java new file mode 100644 index 0000000..c03c207 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface WatchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + * @return Whether the createRequest field is set. + */ + boolean hasCreateRequest(); + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + * @return The createRequest. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequest getCreateRequest(); + /** + * .etcdserverpb.WatchCreateRequest create_request = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCreateRequestOrBuilder getCreateRequestOrBuilder(); + + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + * @return Whether the cancelRequest field is set. + */ + boolean hasCancelRequest(); + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + * @return The cancelRequest. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequest getCancelRequest(); + /** + * .etcdserverpb.WatchCancelRequest cancel_request = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.WatchCancelRequestOrBuilder getCancelRequestOrBuilder(); + + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchRequest.RequestUnionCase getRequestUnionCase(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponse.java new file mode 100644 index 0000000..e02ec31 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponse.java @@ -0,0 +1,1484 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +/** + * Protobuf type {@code etcdserverpb.WatchResponse} + */ +public final class WatchResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:etcdserverpb.WatchResponse) + WatchResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use WatchResponse.newBuilder() to construct. + private WatchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WatchResponse() { + cancelReason_ = ""; + events_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WatchResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WatchResponse( + 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: { + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + watchId_ = input.readInt64(); + break; + } + case 24: { + + created_ = input.readBool(); + break; + } + case 32: { + + canceled_ = input.readBool(); + break; + } + case 40: { + + compactRevision_ = input.readInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + cancelReason_ = s; + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int WATCH_ID_FIELD_NUMBER = 2; + private long watchId_; + /** + *
+   * watch_id is the ID of the watcher that corresponds to the response.
+   * 
+ * + * int64 watch_id = 2; + * @return The watchId. + */ + @java.lang.Override + public long getWatchId() { + return watchId_; + } + + public static final int CREATED_FIELD_NUMBER = 3; + private boolean created_; + /** + *
+   * created is set to true if the response is for a create watch request.
+   * The client should record the watch_id and expect to receive events for
+   * the created watcher from the same stream.
+   * All events sent to the created watcher will attach with the same watch_id.
+   * 
+ * + * bool created = 3; + * @return The created. + */ + @java.lang.Override + public boolean getCreated() { + return created_; + } + + public static final int CANCELED_FIELD_NUMBER = 4; + private boolean canceled_; + /** + *
+   * canceled is set to true if the response is for a cancel watch request.
+   * No further events will be sent to the canceled watcher.
+   * 
+ * + * bool canceled = 4; + * @return The canceled. + */ + @java.lang.Override + public boolean getCanceled() { + return canceled_; + } + + public static final int COMPACT_REVISION_FIELD_NUMBER = 5; + private long compactRevision_; + /** + *
+   * compact_revision is set to the minimum index if a watcher tries to watch
+   * at a compacted index.
+   * This happens when creating a watcher at a compacted revision or the watcher cannot
+   * catch up with the progress of the key-value store.
+   * The client should treat the watcher as canceled and should not try to create any
+   * watcher with the same start_revision again.
+   * 
+ * + * int64 compact_revision = 5; + * @return The compactRevision. + */ + @java.lang.Override + public long getCompactRevision() { + return compactRevision_; + } + + public static final int CANCEL_REASON_FIELD_NUMBER = 6; + private volatile java.lang.Object cancelReason_; + /** + *
+   * cancel_reason indicates the reason for canceling the watcher.
+   * 
+ * + * string cancel_reason = 6; + * @return The cancelReason. + */ + @java.lang.Override + public java.lang.String getCancelReason() { + java.lang.Object ref = cancelReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cancelReason_ = s; + return s; + } + } + /** + *
+   * cancel_reason indicates the reason for canceling the watcher.
+   * 
+ * + * string cancel_reason = 6; + * @return The bytes for cancelReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCancelReasonBytes() { + java.lang.Object ref = cancelReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cancelReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENTS_FIELD_NUMBER = 11; + private java.util.List events_; + /** + * repeated .mvccpb.Event events = 11; + */ + @java.lang.Override + public java.util.List getEventsList() { + return events_; + } + /** + * repeated .mvccpb.Event events = 11; + */ + @java.lang.Override + public java.util.List + getEventsOrBuilderList() { + return events_; + } + /** + * repeated .mvccpb.Event events = 11; + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + /** + * repeated .mvccpb.Event events = 11; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event getEvents(int index) { + return events_.get(index); + } + /** + * repeated .mvccpb.Event events = 11; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder getEventsOrBuilder( + int index) { + return events_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (watchId_ != 0L) { + output.writeInt64(2, watchId_); + } + if (created_ != false) { + output.writeBool(3, created_); + } + if (canceled_ != false) { + output.writeBool(4, canceled_); + } + if (compactRevision_ != 0L) { + output.writeInt64(5, compactRevision_); + } + if (!getCancelReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cancelReason_); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(11, events_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (watchId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, watchId_); + } + if (created_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, created_); + } + if (canceled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, canceled_); + } + if (compactRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, compactRevision_); + } + if (!getCancelReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cancelReason_); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, events_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getWatchId() + != other.getWatchId()) return false; + if (getCreated() + != other.getCreated()) return false; + if (getCanceled() + != other.getCanceled()) return false; + if (getCompactRevision() + != other.getCompactRevision()) return false; + if (!getCancelReason() + .equals(other.getCancelReason())) return false; + if (!getEventsList() + .equals(other.getEventsList())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + WATCH_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWatchId()); + hash = (37 * hash) + CREATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreated()); + hash = (37 * hash) + CANCELED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanceled()); + hash = (37 * hash) + COMPACT_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompactRevision()); + hash = (37 * hash) + CANCEL_REASON_FIELD_NUMBER; + hash = (53 * hash) + getCancelReason().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code etcdserverpb.WatchResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchResponse) + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEventsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + watchId_ = 0L; + + created_ = false; + + canceled_ = false; + + compactRevision_ = 0L; + + cancelReason_ = ""; + + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + eventsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_WatchResponse_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse build() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse result = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.watchId_ = watchId_; + result.created_ = created_; + result.canceled_ = canceled_; + result.compactRevision_ = compactRevision_; + result.cancelReason_ = cancelReason_; + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getWatchId() != 0L) { + setWatchId(other.getWatchId()); + } + if (other.getCreated() != false) { + setCreated(other.getCreated()); + } + if (other.getCanceled() != false) { + setCanceled(other.getCanceled()); + } + if (other.getCompactRevision() != 0L) { + setCompactRevision(other.getCompactRevision()); + } + if (!other.getCancelReason().isEmpty()) { + cancelReason_ = other.cancelReason_; + onChanged(); + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder setHeader( + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long watchId_ ; + /** + *
+     * watch_id is the ID of the watcher that corresponds to the response.
+     * 
+ * + * int64 watch_id = 2; + * @return The watchId. + */ + @java.lang.Override + public long getWatchId() { + return watchId_; + } + /** + *
+     * watch_id is the ID of the watcher that corresponds to the response.
+     * 
+ * + * int64 watch_id = 2; + * @param value The watchId to set. + * @return This builder for chaining. + */ + public Builder setWatchId(long value) { + + watchId_ = value; + onChanged(); + return this; + } + /** + *
+     * watch_id is the ID of the watcher that corresponds to the response.
+     * 
+ * + * int64 watch_id = 2; + * @return This builder for chaining. + */ + public Builder clearWatchId() { + + watchId_ = 0L; + onChanged(); + return this; + } + + private boolean created_ ; + /** + *
+     * created is set to true if the response is for a create watch request.
+     * The client should record the watch_id and expect to receive events for
+     * the created watcher from the same stream.
+     * All events sent to the created watcher will attach with the same watch_id.
+     * 
+ * + * bool created = 3; + * @return The created. + */ + @java.lang.Override + public boolean getCreated() { + return created_; + } + /** + *
+     * created is set to true if the response is for a create watch request.
+     * The client should record the watch_id and expect to receive events for
+     * the created watcher from the same stream.
+     * All events sent to the created watcher will attach with the same watch_id.
+     * 
+ * + * bool created = 3; + * @param value The created to set. + * @return This builder for chaining. + */ + public Builder setCreated(boolean value) { + + created_ = value; + onChanged(); + return this; + } + /** + *
+     * created is set to true if the response is for a create watch request.
+     * The client should record the watch_id and expect to receive events for
+     * the created watcher from the same stream.
+     * All events sent to the created watcher will attach with the same watch_id.
+     * 
+ * + * bool created = 3; + * @return This builder for chaining. + */ + public Builder clearCreated() { + + created_ = false; + onChanged(); + return this; + } + + private boolean canceled_ ; + /** + *
+     * canceled is set to true if the response is for a cancel watch request.
+     * No further events will be sent to the canceled watcher.
+     * 
+ * + * bool canceled = 4; + * @return The canceled. + */ + @java.lang.Override + public boolean getCanceled() { + return canceled_; + } + /** + *
+     * canceled is set to true if the response is for a cancel watch request.
+     * No further events will be sent to the canceled watcher.
+     * 
+ * + * bool canceled = 4; + * @param value The canceled to set. + * @return This builder for chaining. + */ + public Builder setCanceled(boolean value) { + + canceled_ = value; + onChanged(); + return this; + } + /** + *
+     * canceled is set to true if the response is for a cancel watch request.
+     * No further events will be sent to the canceled watcher.
+     * 
+ * + * bool canceled = 4; + * @return This builder for chaining. + */ + public Builder clearCanceled() { + + canceled_ = false; + onChanged(); + return this; + } + + private long compactRevision_ ; + /** + *
+     * compact_revision is set to the minimum index if a watcher tries to watch
+     * at a compacted index.
+     * This happens when creating a watcher at a compacted revision or the watcher cannot
+     * catch up with the progress of the key-value store.
+     * The client should treat the watcher as canceled and should not try to create any
+     * watcher with the same start_revision again.
+     * 
+ * + * int64 compact_revision = 5; + * @return The compactRevision. + */ + @java.lang.Override + public long getCompactRevision() { + return compactRevision_; + } + /** + *
+     * compact_revision is set to the minimum index if a watcher tries to watch
+     * at a compacted index.
+     * This happens when creating a watcher at a compacted revision or the watcher cannot
+     * catch up with the progress of the key-value store.
+     * The client should treat the watcher as canceled and should not try to create any
+     * watcher with the same start_revision again.
+     * 
+ * + * int64 compact_revision = 5; + * @param value The compactRevision to set. + * @return This builder for chaining. + */ + public Builder setCompactRevision(long value) { + + compactRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * compact_revision is set to the minimum index if a watcher tries to watch
+     * at a compacted index.
+     * This happens when creating a watcher at a compacted revision or the watcher cannot
+     * catch up with the progress of the key-value store.
+     * The client should treat the watcher as canceled and should not try to create any
+     * watcher with the same start_revision again.
+     * 
+ * + * int64 compact_revision = 5; + * @return This builder for chaining. + */ + public Builder clearCompactRevision() { + + compactRevision_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object cancelReason_ = ""; + /** + *
+     * cancel_reason indicates the reason for canceling the watcher.
+     * 
+ * + * string cancel_reason = 6; + * @return The cancelReason. + */ + public java.lang.String getCancelReason() { + java.lang.Object ref = cancelReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cancelReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * cancel_reason indicates the reason for canceling the watcher.
+     * 
+ * + * string cancel_reason = 6; + * @return The bytes for cancelReason. + */ + public com.google.protobuf.ByteString + getCancelReasonBytes() { + java.lang.Object ref = cancelReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cancelReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * cancel_reason indicates the reason for canceling the watcher.
+     * 
+ * + * string cancel_reason = 6; + * @param value The cancelReason to set. + * @return This builder for chaining. + */ + public Builder setCancelReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cancelReason_ = value; + onChanged(); + return this; + } + /** + *
+     * cancel_reason indicates the reason for canceling the watcher.
+     * 
+ * + * string cancel_reason = 6; + * @return This builder for chaining. + */ + public Builder clearCancelReason() { + + cancelReason_ = getDefaultInstance().getCancelReason(); + onChanged(); + return this; + } + /** + *
+     * cancel_reason indicates the reason for canceling the watcher.
+     * 
+ * + * string cancel_reason = 6; + * @param value The bytes for cancelReason to set. + * @return This builder for chaining. + */ + public Builder setCancelReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cancelReason_ = value; + onChanged(); + return this; + } + + private java.util.List events_ = + java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder> eventsBuilder_; + + /** + * repeated .mvccpb.Event events = 11; + */ + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + /** + * repeated .mvccpb.Event events = 11; + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + /** + * repeated .mvccpb.Event events = 11; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder setEvents( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder setEvents( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder addEvents(org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder addEvents( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder addEvents( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder addEvents( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + /** + * repeated .mvccpb.Event events = 11; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder getEventsBuilder( + int index) { + return getEventsFieldBuilder().getBuilder(index); + } + /** + * repeated .mvccpb.Event events = 11; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder getEventsOrBuilder( + int index) { + if (eventsBuilder_ == null) { + return events_.get(index); } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .mvccpb.Event events = 11; + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + /** + * repeated .mvccpb.Event events = 11; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder addEventsBuilder() { + return getEventsFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.getDefaultInstance()); + } + /** + * repeated .mvccpb.Event events = 11; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.getDefaultInstance()); + } + /** + * repeated .mvccpb.Event events = 11; + */ + public java.util.List + getEventsBuilderList() { + return getEventsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder> + getEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder>( + events_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + events_ = null; + } + return eventsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchResponse) + } + + // @@protoc_insertion_point(class_scope:etcdserverpb.WatchResponse) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WatchResponse(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 org.eclipse.ecf.provider.etcd3.grpc.api.WatchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponseOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponseOrBuilder.java new file mode 100644 index 0000000..f804767 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api; + +public interface WatchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + * @return The header. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader(); + /** + * .etcdserverpb.ResponseHeader header = 1; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + *
+   * watch_id is the ID of the watcher that corresponds to the response.
+   * 
+ * + * int64 watch_id = 2; + * @return The watchId. + */ + long getWatchId(); + + /** + *
+   * created is set to true if the response is for a create watch request.
+   * The client should record the watch_id and expect to receive events for
+   * the created watcher from the same stream.
+   * All events sent to the created watcher will attach with the same watch_id.
+   * 
+ * + * bool created = 3; + * @return The created. + */ + boolean getCreated(); + + /** + *
+   * canceled is set to true if the response is for a cancel watch request.
+   * No further events will be sent to the canceled watcher.
+   * 
+ * + * bool canceled = 4; + * @return The canceled. + */ + boolean getCanceled(); + + /** + *
+   * compact_revision is set to the minimum index if a watcher tries to watch
+   * at a compacted index.
+   * This happens when creating a watcher at a compacted revision or the watcher cannot
+   * catch up with the progress of the key-value store.
+   * The client should treat the watcher as canceled and should not try to create any
+   * watcher with the same start_revision again.
+   * 
+ * + * int64 compact_revision = 5; + * @return The compactRevision. + */ + long getCompactRevision(); + + /** + *
+   * cancel_reason indicates the reason for canceling the watcher.
+   * 
+ * + * string cancel_reason = 6; + * @return The cancelReason. + */ + java.lang.String getCancelReason(); + /** + *
+   * cancel_reason indicates the reason for canceling the watcher.
+   * 
+ * + * string cancel_reason = 6; + * @return The bytes for cancelReason. + */ + com.google.protobuf.ByteString + getCancelReasonBytes(); + + /** + * repeated .mvccpb.Event events = 11; + */ + java.util.List + getEventsList(); + /** + * repeated .mvccpb.Event events = 11; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event getEvents(int index); + /** + * repeated .mvccpb.Event events = 11; + */ + int getEventsCount(); + /** + * repeated .mvccpb.Event events = 11; + */ + java.util.List + getEventsOrBuilderList(); + /** + * repeated .mvccpb.Event events = 11; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder getEventsOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchService.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchService.java new file mode 100644 index 0000000..245b118 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/WatchService.java @@ -0,0 +1,23 @@ +package org.eclipse.ecf.provider.etcd3.grpc.api; + +import io.reactivex.rxjava3.core.Flowable; + +@javax.annotation.Generated( +value = "by grpc-osgi-generator (REACTIVEX) - A protoc plugin for ECF's grpc remote services distribution provider at https://github.com/ECF/grpc-RemoteServiceSProvider ", +comments = "Source: rpc.proto. ") +public interface WatchService { + + + /** + *
+     *  Watch watches for events happening or that have happened. Both input and output
+     *  are streams; the input stream is for creating and canceling watchers and the output
+     *  stream sends events. One watch RPC can watch on multiple key ranges, streaming events
+     *  for several watches at once. The entire event history can be watched starting from the
+     *  last compaction revision.
+     * 
+ */ + default Flowable watch(Flowable requests) { + return null; + } +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Auth.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Auth.java new file mode 100644 index 0000000..4df7168 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Auth.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +public final class Auth { + private Auth() {} + 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_authpb_User_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_authpb_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_authpb_Permission_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_authpb_Permission_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_authpb_Role_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_authpb_Role_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\nauth.proto\022\006authpb\"5\n\004User\022\014\n\004name\030\001 \001" + + "(\014\022\020\n\010password\030\002 \001(\014\022\r\n\005roles\030\003 \003(\t\"\203\001\n\n" + + "Permission\022)\n\010permType\030\001 \001(\0162\027.authpb.Pe" + + "rmission.Type\022\013\n\003key\030\002 \001(\014\022\021\n\trange_end\030" + + "\003 \001(\014\"*\n\004Type\022\010\n\004READ\020\000\022\t\n\005WRITE\020\001\022\r\n\tRE" + + "ADWRITE\020\002\"?\n\004Role\022\014\n\004name\030\001 \001(\014\022)\n\rkeyPe" + + "rmission\030\002 \003(\0132\022.authpb.PermissionB0\n,or" + + "g.eclipse.ecf.provider.etcd3.grpc.api.au" + + "thP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_authpb_User_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_authpb_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_authpb_User_descriptor, + new java.lang.String[] { "Name", "Password", "Roles", }); + internal_static_authpb_Permission_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_authpb_Permission_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_authpb_Permission_descriptor, + new java.lang.String[] { "PermType", "Key", "RangeEnd", }); + internal_static_authpb_Role_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_authpb_Role_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_authpb_Role_descriptor, + new java.lang.String[] { "Name", "KeyPermission", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Permission.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Permission.java new file mode 100644 index 0000000..13b9d46 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Permission.java @@ -0,0 +1,776 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +/** + *
+ * Permission is a single entity
+ * 
+ * + * Protobuf type {@code authpb.Permission} + */ +public final class Permission extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:authpb.Permission) + PermissionOrBuilder { +private static final long serialVersionUID = 0L; + // Use Permission.newBuilder() to construct. + private Permission(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Permission() { + permType_ = 0; + key_ = com.google.protobuf.ByteString.EMPTY; + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Permission(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Permission( + 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 8: { + int rawValue = input.readEnum(); + + permType_ = rawValue; + break; + } + case 18: { + + key_ = input.readBytes(); + break; + } + case 26: { + + rangeEnd_ = 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Permission_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Permission_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.class, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder.class); + } + + /** + * Protobuf enum {@code authpb.Permission.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * READ = 0; + */ + READ(0), + /** + * WRITE = 1; + */ + WRITE(1), + /** + * READWRITE = 2; + */ + READWRITE(2), + UNRECOGNIZED(-1), + ; + + /** + * READ = 0; + */ + public static final int READ_VALUE = 0; + /** + * WRITE = 1; + */ + public static final int WRITE_VALUE = 1; + /** + * READWRITE = 2; + */ + public static final int READWRITE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return READ; + case 1: return WRITE; + case 2: return READWRITE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:authpb.Permission.Type) + } + + public static final int PERMTYPE_FIELD_NUMBER = 1; + private int permType_; + /** + * .authpb.Permission.Type permType = 1; + * @return The enum numeric value on the wire for permType. + */ + @java.lang.Override public int getPermTypeValue() { + return permType_; + } + /** + * .authpb.Permission.Type permType = 1; + * @return The permType. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type getPermType() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type result = org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type.valueOf(permType_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type.UNRECOGNIZED : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString key_; + /** + * bytes key = 2; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int RANGE_END_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString rangeEnd_; + /** + * bytes range_end = 3; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (permType_ != org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type.READ.getNumber()) { + output.writeEnum(1, permType_); + } + if (!key_.isEmpty()) { + output.writeBytes(2, key_); + } + if (!rangeEnd_.isEmpty()) { + output.writeBytes(3, rangeEnd_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (permType_ != org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type.READ.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, permType_); + } + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, key_); + } + if (!rangeEnd_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, rangeEnd_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission other = (org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission) obj; + + if (permType_ != other.permType_) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getRangeEnd() + .equals(other.getRangeEnd())) 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) + PERMTYPE_FIELD_NUMBER; + hash = (53 * hash) + permType_; + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + RANGE_END_FIELD_NUMBER; + hash = (53 * hash) + getRangeEnd().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Permission is a single entity
+   * 
+ * + * Protobuf type {@code authpb.Permission} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:authpb.Permission) + org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Permission_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Permission_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.class, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.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(); + permType_ = 0; + + key_ = com.google.protobuf.ByteString.EMPTY; + + rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Permission_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission build() { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission result = new org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission(this); + result.permType_ = permType_; + result.key_ = key_; + result.rangeEnd_ = rangeEnd_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance()) return this; + if (other.permType_ != 0) { + setPermTypeValue(other.getPermTypeValue()); + } + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { + setRangeEnd(other.getRangeEnd()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int permType_ = 0; + /** + * .authpb.Permission.Type permType = 1; + * @return The enum numeric value on the wire for permType. + */ + @java.lang.Override public int getPermTypeValue() { + return permType_; + } + /** + * .authpb.Permission.Type permType = 1; + * @param value The enum numeric value on the wire for permType to set. + * @return This builder for chaining. + */ + public Builder setPermTypeValue(int value) { + + permType_ = value; + onChanged(); + return this; + } + /** + * .authpb.Permission.Type permType = 1; + * @return The permType. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type getPermType() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type result = org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type.valueOf(permType_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type.UNRECOGNIZED : result; + } + /** + * .authpb.Permission.Type permType = 1; + * @param value The permType to set. + * @return This builder for chaining. + */ + public Builder setPermType(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + permType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .authpb.Permission.Type permType = 1; + * @return This builder for chaining. + */ + public Builder clearPermType() { + + permType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes key = 2; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + * bytes key = 2; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * bytes key = 2; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes range_end = 3; + * @return The rangeEnd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeEnd() { + return rangeEnd_; + } + /** + * bytes range_end = 3; + * @param value The rangeEnd to set. + * @return This builder for chaining. + */ + public Builder setRangeEnd(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeEnd_ = value; + onChanged(); + return this; + } + /** + * bytes range_end = 3; + * @return This builder for chaining. + */ + public Builder clearRangeEnd() { + + rangeEnd_ = getDefaultInstance().getRangeEnd(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:authpb.Permission) + } + + // @@protoc_insertion_point(class_scope:authpb.Permission) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Permission parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Permission(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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/PermissionOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/PermissionOrBuilder.java new file mode 100644 index 0000000..dbc6d2b --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/PermissionOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +public interface PermissionOrBuilder extends + // @@protoc_insertion_point(interface_extends:authpb.Permission) + com.google.protobuf.MessageOrBuilder { + + /** + * .authpb.Permission.Type permType = 1; + * @return The enum numeric value on the wire for permType. + */ + int getPermTypeValue(); + /** + * .authpb.Permission.Type permType = 1; + * @return The permType. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Type getPermType(); + + /** + * bytes key = 2; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + * bytes range_end = 3; + * @return The rangeEnd. + */ + com.google.protobuf.ByteString getRangeEnd(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Role.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Role.java new file mode 100644 index 0000000..f42143f --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/Role.java @@ -0,0 +1,846 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +/** + *
+ * Role is a single entry in the bucket authRoles
+ * 
+ * + * Protobuf type {@code authpb.Role} + */ +public final class Role extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:authpb.Role) + RoleOrBuilder { +private static final long serialVersionUID = 0L; + // Use Role.newBuilder() to construct. + private Role(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Role() { + name_ = com.google.protobuf.ByteString.EMPTY; + keyPermission_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Role(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Role( + 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: { + + name_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keyPermission_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keyPermission_.add( + input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + keyPermission_ = java.util.Collections.unmodifiableList(keyPermission_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Role_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Role_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.class, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString name_; + /** + * bytes name = 1; + * @return The name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getName() { + return name_; + } + + public static final int KEYPERMISSION_FIELD_NUMBER = 2; + private java.util.List keyPermission_; + /** + * repeated .authpb.Permission keyPermission = 2; + */ + @java.lang.Override + public java.util.List getKeyPermissionList() { + return keyPermission_; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + @java.lang.Override + public java.util.List + getKeyPermissionOrBuilderList() { + return keyPermission_; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + @java.lang.Override + public int getKeyPermissionCount() { + return keyPermission_.size(); + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getKeyPermission(int index) { + return keyPermission_.get(index); + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getKeyPermissionOrBuilder( + int index) { + return keyPermission_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!name_.isEmpty()) { + output.writeBytes(1, name_); + } + for (int i = 0; i < keyPermission_.size(); i++) { + output.writeMessage(2, keyPermission_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, name_); + } + for (int i = 0; i < keyPermission_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, keyPermission_.get(i)); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role other = (org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getKeyPermissionList() + .equals(other.getKeyPermissionList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getKeyPermissionCount() > 0) { + hash = (37 * hash) + KEYPERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getKeyPermissionList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Role is a single entry in the bucket authRoles
+   * 
+ * + * Protobuf type {@code authpb.Role} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:authpb.Role) + org.eclipse.ecf.provider.etcd3.grpc.api.auth.RoleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Role_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Role_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.class, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getKeyPermissionFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = com.google.protobuf.ByteString.EMPTY; + + if (keyPermissionBuilder_ == null) { + keyPermission_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + keyPermissionBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_Role_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role build() { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role result = new org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (keyPermissionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keyPermission_ = java.util.Collections.unmodifiableList(keyPermission_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keyPermission_ = keyPermission_; + } else { + result.keyPermission_ = keyPermissionBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role.getDefaultInstance()) return this; + if (other.getName() != com.google.protobuf.ByteString.EMPTY) { + setName(other.getName()); + } + if (keyPermissionBuilder_ == null) { + if (!other.keyPermission_.isEmpty()) { + if (keyPermission_.isEmpty()) { + keyPermission_ = other.keyPermission_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeyPermissionIsMutable(); + keyPermission_.addAll(other.keyPermission_); + } + onChanged(); + } + } else { + if (!other.keyPermission_.isEmpty()) { + if (keyPermissionBuilder_.isEmpty()) { + keyPermissionBuilder_.dispose(); + keyPermissionBuilder_ = null; + keyPermission_ = other.keyPermission_; + bitField0_ = (bitField0_ & ~0x00000001); + keyPermissionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeyPermissionFieldBuilder() : null; + } else { + keyPermissionBuilder_.addAllMessages(other.keyPermission_); + } + } + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes name = 1; + * @return The name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getName() { + return name_; + } + /** + * bytes name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * bytes name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + private java.util.List keyPermission_ = + java.util.Collections.emptyList(); + private void ensureKeyPermissionIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keyPermission_ = new java.util.ArrayList(keyPermission_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> keyPermissionBuilder_; + + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public java.util.List getKeyPermissionList() { + if (keyPermissionBuilder_ == null) { + return java.util.Collections.unmodifiableList(keyPermission_); + } else { + return keyPermissionBuilder_.getMessageList(); + } + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public int getKeyPermissionCount() { + if (keyPermissionBuilder_ == null) { + return keyPermission_.size(); + } else { + return keyPermissionBuilder_.getCount(); + } + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getKeyPermission(int index) { + if (keyPermissionBuilder_ == null) { + return keyPermission_.get(index); + } else { + return keyPermissionBuilder_.getMessage(index); + } + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder setKeyPermission( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (keyPermissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyPermissionIsMutable(); + keyPermission_.set(index, value); + onChanged(); + } else { + keyPermissionBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder setKeyPermission( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (keyPermissionBuilder_ == null) { + ensureKeyPermissionIsMutable(); + keyPermission_.set(index, builderForValue.build()); + onChanged(); + } else { + keyPermissionBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder addKeyPermission(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (keyPermissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyPermissionIsMutable(); + keyPermission_.add(value); + onChanged(); + } else { + keyPermissionBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder addKeyPermission( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) { + if (keyPermissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyPermissionIsMutable(); + keyPermission_.add(index, value); + onChanged(); + } else { + keyPermissionBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder addKeyPermission( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (keyPermissionBuilder_ == null) { + ensureKeyPermissionIsMutable(); + keyPermission_.add(builderForValue.build()); + onChanged(); + } else { + keyPermissionBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder addKeyPermission( + int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) { + if (keyPermissionBuilder_ == null) { + ensureKeyPermissionIsMutable(); + keyPermission_.add(index, builderForValue.build()); + onChanged(); + } else { + keyPermissionBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder addAllKeyPermission( + java.lang.Iterable values) { + if (keyPermissionBuilder_ == null) { + ensureKeyPermissionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keyPermission_); + onChanged(); + } else { + keyPermissionBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder clearKeyPermission() { + if (keyPermissionBuilder_ == null) { + keyPermission_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keyPermissionBuilder_.clear(); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public Builder removeKeyPermission(int index) { + if (keyPermissionBuilder_ == null) { + ensureKeyPermissionIsMutable(); + keyPermission_.remove(index); + onChanged(); + } else { + keyPermissionBuilder_.remove(index); + } + return this; + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder getKeyPermissionBuilder( + int index) { + return getKeyPermissionFieldBuilder().getBuilder(index); + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getKeyPermissionOrBuilder( + int index) { + if (keyPermissionBuilder_ == null) { + return keyPermission_.get(index); } else { + return keyPermissionBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public java.util.List + getKeyPermissionOrBuilderList() { + if (keyPermissionBuilder_ != null) { + return keyPermissionBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keyPermission_); + } + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder addKeyPermissionBuilder() { + return getKeyPermissionFieldBuilder().addBuilder( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance()); + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder addKeyPermissionBuilder( + int index) { + return getKeyPermissionFieldBuilder().addBuilder( + index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance()); + } + /** + * repeated .authpb.Permission keyPermission = 2; + */ + public java.util.List + getKeyPermissionBuilderList() { + return getKeyPermissionFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> + getKeyPermissionFieldBuilder() { + if (keyPermissionBuilder_ == null) { + keyPermissionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>( + keyPermission_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + keyPermission_ = null; + } + return keyPermissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:authpb.Role) + } + + // @@protoc_insertion_point(class_scope:authpb.Role) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Role parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Role(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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.Role getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/RoleOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/RoleOrBuilder.java new file mode 100644 index 0000000..7055c14 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/RoleOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +public interface RoleOrBuilder extends + // @@protoc_insertion_point(interface_extends:authpb.Role) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes name = 1; + * @return The name. + */ + com.google.protobuf.ByteString getName(); + + /** + * repeated .authpb.Permission keyPermission = 2; + */ + java.util.List + getKeyPermissionList(); + /** + * repeated .authpb.Permission keyPermission = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getKeyPermission(int index); + /** + * repeated .authpb.Permission keyPermission = 2; + */ + int getKeyPermissionCount(); + /** + * repeated .authpb.Permission keyPermission = 2; + */ + java.util.List + getKeyPermissionOrBuilderList(); + /** + * repeated .authpb.Permission keyPermission = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getKeyPermissionOrBuilder( + int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/User.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/User.java new file mode 100644 index 0000000..20bde3a --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/User.java @@ -0,0 +1,758 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +/** + *
+ * User is a single entry in the bucket authUsers
+ * 
+ * + * Protobuf type {@code authpb.User} + */ +public final class User extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:authpb.User) + UserOrBuilder { +private static final long serialVersionUID = 0L; + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private User() { + name_ = com.google.protobuf.ByteString.EMPTY; + password_ = com.google.protobuf.ByteString.EMPTY; + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new User(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private User( + 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: { + + name_ = input.readBytes(); + break; + } + case 18: { + + password_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + roles_.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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = roles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.class, org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString name_; + /** + * bytes name = 1; + * @return The name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getName() { + return name_; + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString password_; + /** + * bytes password = 2; + * @return The password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPassword() { + return password_; + } + + public static final int ROLES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList roles_; + /** + * repeated string roles = 3; + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_; + } + /** + * repeated string roles = 3; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 3; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 3; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!name_.isEmpty()) { + output.writeBytes(1, name_); + } + if (!password_.isEmpty()) { + output.writeBytes(2, password_); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, roles_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, name_); + } + if (!password_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, password_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.User)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.auth.User other = (org.eclipse.ecf.provider.etcd3.grpc.api.auth.User) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getRolesList() + .equals(other.getRolesList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.auth.User prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * User is a single entry in the bucket authUsers
+   * 
+ * + * Protobuf type {@code authpb.User} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:authpb.User) + org.eclipse.ecf.provider.etcd3.grpc.api.auth.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.class, org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.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(); + name_ = com.google.protobuf.ByteString.EMPTY; + + password_ = com.google.protobuf.ByteString.EMPTY; + + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.Auth.internal_static_authpb_User_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.User getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.User build() { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.auth.User buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.User result = new org.eclipse.ecf.provider.etcd3.grpc.api.auth.User(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.password_ = password_; + if (((bitField0_ & 0x00000001) != 0)) { + roles_ = roles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roles_ = roles_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.User) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.auth.User)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.auth.User other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.auth.User.getDefaultInstance()) return this; + if (other.getName() != com.google.protobuf.ByteString.EMPTY) { + setName(other.getName()); + } + if (other.getPassword() != com.google.protobuf.ByteString.EMPTY) { + setPassword(other.getPassword()); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.auth.User parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.auth.User) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes name = 1; + * @return The name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getName() { + return name_; + } + /** + * bytes name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * bytes name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString password_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes password = 2; + * @return The password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPassword() { + return password_; + } + /** + * bytes password = 2; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * bytes password = 2; + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string roles = 3; + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_.getUnmodifiableView(); + } + /** + * repeated string roles = 3; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 3; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 3; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + /** + * repeated string roles = 3; + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string roles = 3; + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + /** + * repeated string roles = 3; + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles( + java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, roles_); + onChanged(); + return this; + } + /** + * repeated string roles = 3; + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string roles = 3; + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:authpb.User) + } + + // @@protoc_insertion_point(class_scope:authpb.User) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.auth.User DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.auth.User(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.auth.User getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new User(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 org.eclipse.ecf.provider.etcd3.grpc.api.auth.User getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/UserOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/UserOrBuilder.java new file mode 100644 index 0000000..102e748 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/auth/UserOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: auth.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.auth; + +public interface UserOrBuilder extends + // @@protoc_insertion_point(interface_extends:authpb.User) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes name = 1; + * @return The name. + */ + com.google.protobuf.ByteString getName(); + + /** + * bytes password = 2; + * @return The password. + */ + com.google.protobuf.ByteString getPassword(); + + /** + * repeated string roles = 3; + * @return A list containing the roles. + */ + java.util.List + getRolesList(); + /** + * repeated string roles = 3; + * @return The count of roles. + */ + int getRolesCount(); + /** + * repeated string roles = 3; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + /** + * repeated string roles = 3; + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString + getRolesBytes(int index); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Event.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Event.java new file mode 100644 index 0000000..995b7a7 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Event.java @@ -0,0 +1,1185 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: kv.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.kv; + +/** + * Protobuf type {@code mvccpb.Event} + */ +public final class Event extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:mvccpb.Event) + EventOrBuilder { +private static final long serialVersionUID = 0L; + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Event() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Event(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Event( + 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 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder subBuilder = null; + if (kv_ != null) { + subBuilder = kv_.toBuilder(); + } + kv_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kv_); + kv_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder subBuilder = null; + if (prevKv_ != null) { + subBuilder = prevKv_.toBuilder(); + } + prevKv_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prevKv_); + prevKv_ = 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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.class, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder.class); + } + + /** + * Protobuf enum {@code mvccpb.Event.EventType} + */ + public enum EventType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PUT = 0; + */ + PUT(0), + /** + * DELETE = 1; + */ + DELETE(1), + UNRECOGNIZED(-1), + ; + + /** + * PUT = 0; + */ + public static final int PUT_VALUE = 0; + /** + * DELETE = 1; + */ + public static final int DELETE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EventType forNumber(int value) { + switch (value) { + case 0: return PUT; + case 1: return DELETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:mvccpb.Event.EventType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+   * type is the kind of event. If type is a PUT, it indicates
+   * new data has been stored to the key. If type is a DELETE,
+   * it indicates the key was deleted.
+   * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+   * type is the kind of event. If type is a PUT, it indicates
+   * new data has been stored to the key. If type is a DELETE,
+   * it indicates the key was deleted.
+   * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return The type. + */ + @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType getType() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType result = org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType.valueOf(type_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType.UNRECOGNIZED : result; + } + + public static final int KV_FIELD_NUMBER = 2; + private org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue kv_; + /** + *
+   * kv holds the KeyValue for the event.
+   * A PUT event contains current kv pair.
+   * A PUT event with kv.Version=1 indicates the creation of a key.
+   * A DELETE/EXPIRE event contains the deleted key with
+   * its modification revision set to the revision of deletion.
+   * 
+ * + * .mvccpb.KeyValue kv = 2; + * @return Whether the kv field is set. + */ + @java.lang.Override + public boolean hasKv() { + return kv_ != null; + } + /** + *
+   * kv holds the KeyValue for the event.
+   * A PUT event contains current kv pair.
+   * A PUT event with kv.Version=1 indicates the creation of a key.
+   * A DELETE/EXPIRE event contains the deleted key with
+   * its modification revision set to the revision of deletion.
+   * 
+ * + * .mvccpb.KeyValue kv = 2; + * @return The kv. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getKv() { + return kv_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : kv_; + } + /** + *
+   * kv holds the KeyValue for the event.
+   * A PUT event contains current kv pair.
+   * A PUT event with kv.Version=1 indicates the creation of a key.
+   * A DELETE/EXPIRE event contains the deleted key with
+   * its modification revision set to the revision of deletion.
+   * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getKvOrBuilder() { + return getKv(); + } + + public static final int PREV_KV_FIELD_NUMBER = 3; + private org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue prevKv_; + /** + *
+   * prev_kv holds the key-value pair before the event happens.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + * @return Whether the prevKv field is set. + */ + @java.lang.Override + public boolean hasPrevKv() { + return prevKv_ != null; + } + /** + *
+   * prev_kv holds the key-value pair before the event happens.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + * @return The prevKv. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKv() { + return prevKv_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : prevKv_; + } + /** + *
+   * prev_kv holds the key-value pair before the event happens.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvOrBuilder() { + return getPrevKv(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType.PUT.getNumber()) { + output.writeEnum(1, type_); + } + if (kv_ != null) { + output.writeMessage(2, getKv()); + } + if (prevKv_ != null) { + output.writeMessage(3, getPrevKv()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType.PUT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (kv_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getKv()); + } + if (prevKv_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPrevKv()); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event other = (org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event) obj; + + if (type_ != other.type_) return false; + if (hasKv() != other.hasKv()) return false; + if (hasKv()) { + if (!getKv() + .equals(other.getKv())) return false; + } + if (hasPrevKv() != other.hasPrevKv()) return false; + if (hasPrevKv()) { + if (!getPrevKv() + .equals(other.getPrevKv())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasKv()) { + hash = (37 * hash) + KV_FIELD_NUMBER; + hash = (53 * hash) + getKv().hashCode(); + } + if (hasPrevKv()) { + hash = (37 * hash) + PREV_KV_FIELD_NUMBER; + hash = (53 * hash) + getPrevKv().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code mvccpb.Event} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:mvccpb.Event) + org.eclipse.ecf.provider.etcd3.grpc.api.kv.EventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.class, org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.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(); + type_ = 0; + + if (kvBuilder_ == null) { + kv_ = null; + } else { + kv_ = null; + kvBuilder_ = null; + } + if (prevKvBuilder_ == null) { + prevKv_ = null; + } else { + prevKv_ = null; + prevKvBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_Event_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event build() { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event result = new org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event(this); + result.type_ = type_; + if (kvBuilder_ == null) { + result.kv_ = kv_; + } else { + result.kv_ = kvBuilder_.build(); + } + if (prevKvBuilder_ == null) { + result.prevKv_ = prevKv_; + } else { + result.prevKv_ = prevKvBuilder_.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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasKv()) { + mergeKv(other.getKv()); + } + if (other.hasPrevKv()) { + mergePrevKv(other.getPrevKv()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+     * type is the kind of event. If type is a PUT, it indicates
+     * new data has been stored to the key. If type is a DELETE,
+     * it indicates the key was deleted.
+     * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * type is the kind of event. If type is a PUT, it indicates
+     * new data has been stored to the key. If type is a DELETE,
+     * it indicates the key was deleted.
+     * 
+ * + * .mvccpb.Event.EventType type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+     * type is the kind of event. If type is a PUT, it indicates
+     * new data has been stored to the key. If type is a DELETE,
+     * it indicates the key was deleted.
+     * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return The type. + */ + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType getType() { + @SuppressWarnings("deprecation") + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType result = org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType.valueOf(type_); + return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType.UNRECOGNIZED : result; + } + /** + *
+     * type is the kind of event. If type is a PUT, it indicates
+     * new data has been stored to the key. If type is a DELETE,
+     * it indicates the key was deleted.
+     * 
+ * + * .mvccpb.Event.EventType type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * type is the kind of event. If type is a PUT, it indicates
+     * new data has been stored to the key. If type is a DELETE,
+     * it indicates the key was deleted.
+     * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue kv_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> kvBuilder_; + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + * @return Whether the kv field is set. + */ + public boolean hasKv() { + return kvBuilder_ != null || kv_ != null; + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + * @return The kv. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getKv() { + if (kvBuilder_ == null) { + return kv_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : kv_; + } else { + return kvBuilder_.getMessage(); + } + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + public Builder setKv(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (kvBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kv_ = value; + onChanged(); + } else { + kvBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + public Builder setKv( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (kvBuilder_ == null) { + kv_ = builderForValue.build(); + onChanged(); + } else { + kvBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + public Builder mergeKv(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (kvBuilder_ == null) { + if (kv_ != null) { + kv_ = + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.newBuilder(kv_).mergeFrom(value).buildPartial(); + } else { + kv_ = value; + } + onChanged(); + } else { + kvBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + public Builder clearKv() { + if (kvBuilder_ == null) { + kv_ = null; + onChanged(); + } else { + kv_ = null; + kvBuilder_ = null; + } + + return this; + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder getKvBuilder() { + + onChanged(); + return getKvFieldBuilder().getBuilder(); + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getKvOrBuilder() { + if (kvBuilder_ != null) { + return kvBuilder_.getMessageOrBuilder(); + } else { + return kv_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : kv_; + } + } + /** + *
+     * kv holds the KeyValue for the event.
+     * A PUT event contains current kv pair.
+     * A PUT event with kv.Version=1 indicates the creation of a key.
+     * A DELETE/EXPIRE event contains the deleted key with
+     * its modification revision set to the revision of deletion.
+     * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> + getKvFieldBuilder() { + if (kvBuilder_ == null) { + kvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder>( + getKv(), + getParentForChildren(), + isClean()); + kv_ = null; + } + return kvBuilder_; + } + + private org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue prevKv_; + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> prevKvBuilder_; + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + * @return Whether the prevKv field is set. + */ + public boolean hasPrevKv() { + return prevKvBuilder_ != null || prevKv_ != null; + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + * @return The prevKv. + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKv() { + if (prevKvBuilder_ == null) { + return prevKv_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : prevKv_; + } else { + return prevKvBuilder_.getMessage(); + } + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + public Builder setPrevKv(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prevKv_ = value; + onChanged(); + } else { + prevKvBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + public Builder setPrevKv( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder builderForValue) { + if (prevKvBuilder_ == null) { + prevKv_ = builderForValue.build(); + onChanged(); + } else { + prevKvBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + public Builder mergePrevKv(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue value) { + if (prevKvBuilder_ == null) { + if (prevKv_ != null) { + prevKv_ = + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.newBuilder(prevKv_).mergeFrom(value).buildPartial(); + } else { + prevKv_ = value; + } + onChanged(); + } else { + prevKvBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + public Builder clearPrevKv() { + if (prevKvBuilder_ == null) { + prevKv_ = null; + onChanged(); + } else { + prevKv_ = null; + prevKvBuilder_ = null; + } + + return this; + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder getPrevKvBuilder() { + + onChanged(); + return getPrevKvFieldBuilder().getBuilder(); + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvOrBuilder() { + if (prevKvBuilder_ != null) { + return prevKvBuilder_.getMessageOrBuilder(); + } else { + return prevKv_ == null ? + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance() : prevKv_; + } + } + /** + *
+     * prev_kv holds the key-value pair before the event happens.
+     * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder> + getPrevKvFieldBuilder() { + if (prevKvBuilder_ == null) { + prevKvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder>( + getPrevKv(), + getParentForChildren(), + isClean()); + prevKv_ = null; + } + return prevKvBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:mvccpb.Event) + } + + // @@protoc_insertion_point(class_scope:mvccpb.Event) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Event(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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/EventOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/EventOrBuilder.java new file mode 100644 index 0000000..b21723c --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/EventOrBuilder.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: kv.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.kv; + +public interface EventOrBuilder extends + // @@protoc_insertion_point(interface_extends:mvccpb.Event) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * type is the kind of event. If type is a PUT, it indicates
+   * new data has been stored to the key. If type is a DELETE,
+   * it indicates the key was deleted.
+   * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+   * type is the kind of event. If type is a PUT, it indicates
+   * new data has been stored to the key. If type is a DELETE,
+   * it indicates the key was deleted.
+   * 
+ * + * .mvccpb.Event.EventType type = 1; + * @return The type. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.Event.EventType getType(); + + /** + *
+   * kv holds the KeyValue for the event.
+   * A PUT event contains current kv pair.
+   * A PUT event with kv.Version=1 indicates the creation of a key.
+   * A DELETE/EXPIRE event contains the deleted key with
+   * its modification revision set to the revision of deletion.
+   * 
+ * + * .mvccpb.KeyValue kv = 2; + * @return Whether the kv field is set. + */ + boolean hasKv(); + /** + *
+   * kv holds the KeyValue for the event.
+   * A PUT event contains current kv pair.
+   * A PUT event with kv.Version=1 indicates the creation of a key.
+   * A DELETE/EXPIRE event contains the deleted key with
+   * its modification revision set to the revision of deletion.
+   * 
+ * + * .mvccpb.KeyValue kv = 2; + * @return The kv. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getKv(); + /** + *
+   * kv holds the KeyValue for the event.
+   * A PUT event contains current kv pair.
+   * A PUT event with kv.Version=1 indicates the creation of a key.
+   * A DELETE/EXPIRE event contains the deleted key with
+   * its modification revision set to the revision of deletion.
+   * 
+ * + * .mvccpb.KeyValue kv = 2; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getKvOrBuilder(); + + /** + *
+   * prev_kv holds the key-value pair before the event happens.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + * @return Whether the prevKv field is set. + */ + boolean hasPrevKv(); + /** + *
+   * prev_kv holds the key-value pair before the event happens.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + * @return The prevKv. + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getPrevKv(); + /** + *
+   * prev_kv holds the key-value pair before the event happens.
+   * 
+ * + * .mvccpb.KeyValue prev_kv = 3; + */ + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder getPrevKvOrBuilder(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValue.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValue.java new file mode 100644 index 0000000..741c909 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValue.java @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: kv.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.kv; + +/** + * Protobuf type {@code mvccpb.KeyValue} + */ +public final class KeyValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:mvccpb.KeyValue) + KeyValueOrBuilder { +private static final long serialVersionUID = 0L; + // Use KeyValue.newBuilder() to construct. + private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValue() { + key_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new KeyValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValue( + 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: { + + key_ = input.readBytes(); + break; + } + case 16: { + + createRevision_ = input.readInt64(); + break; + } + case 24: { + + modRevision_ = input.readInt64(); + break; + } + case 32: { + + version_ = input.readInt64(); + break; + } + case 42: { + + value_ = input.readBytes(); + break; + } + case 48: { + + lease_ = input.readInt64(); + 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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_KeyValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_KeyValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.class, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + /** + *
+   * key is the key in bytes. An empty key is not allowed.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int CREATE_REVISION_FIELD_NUMBER = 2; + private long createRevision_; + /** + *
+   * create_revision is the revision of last creation on this key.
+   * 
+ * + * int64 create_revision = 2; + * @return The createRevision. + */ + @java.lang.Override + public long getCreateRevision() { + return createRevision_; + } + + public static final int MOD_REVISION_FIELD_NUMBER = 3; + private long modRevision_; + /** + *
+   * mod_revision is the revision of last modification on this key.
+   * 
+ * + * int64 mod_revision = 3; + * @return The modRevision. + */ + @java.lang.Override + public long getModRevision() { + return modRevision_; + } + + public static final int VERSION_FIELD_NUMBER = 4; + private long version_; + /** + *
+   * version is the version of the key. A deletion resets
+   * the version to zero and any modification of the key
+   * increases its version.
+   * 
+ * + * int64 version = 4; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } + + public static final int VALUE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString value_; + /** + *
+   * value is the value held by the key, in bytes.
+   * 
+ * + * bytes value = 5; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int LEASE_FIELD_NUMBER = 6; + private long lease_; + /** + *
+   * lease is the ID of the lease that attached to key.
+   * When the attached lease expires, the key will be deleted.
+   * If lease is 0, then no lease is attached to the key.
+   * 
+ * + * int64 lease = 6; + * @return The lease. + */ + @java.lang.Override + public long getLease() { + return lease_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (createRevision_ != 0L) { + output.writeInt64(2, createRevision_); + } + if (modRevision_ != 0L) { + output.writeInt64(3, modRevision_); + } + if (version_ != 0L) { + output.writeInt64(4, version_); + } + if (!value_.isEmpty()) { + output.writeBytes(5, value_); + } + if (lease_ != 0L) { + output.writeInt64(6, lease_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); + } + if (createRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, createRevision_); + } + if (modRevision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, modRevision_); + } + if (version_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, version_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, value_); + } + if (lease_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, lease_); + } + 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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue)) { + return super.equals(obj); + } + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue other = (org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (getCreateRevision() + != other.getCreateRevision()) return false; + if (getModRevision() + != other.getModRevision()) return false; + if (getVersion() + != other.getVersion()) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getLease() + != other.getLease()) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + CREATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreateRevision()); + hash = (37 * hash) + MOD_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getModRevision()); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + LEASE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLease()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code mvccpb.KeyValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:mvccpb.KeyValue) + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_KeyValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_KeyValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.class, org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.Builder.class); + } + + // Construct using org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.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(); + key_ = com.google.protobuf.ByteString.EMPTY; + + createRevision_ = 0L; + + modRevision_ = 0L; + + version_ = 0L; + + value_ = com.google.protobuf.ByteString.EMPTY; + + lease_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.Kv.internal_static_mvccpb_KeyValue_descriptor; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getDefaultInstanceForType() { + return org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance(); + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue build() { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue buildPartial() { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue result = new org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue(this); + result.key_ = key_; + result.createRevision_ = createRevision_; + result.modRevision_ = modRevision_; + result.version_ = version_; + result.value_ = value_; + result.lease_ = lease_; + 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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue) { + return mergeFrom((org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue other) { + if (other == org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue.getDefaultInstance()) return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getCreateRevision() != 0L) { + setCreateRevision(other.getCreateRevision()); + } + if (other.getModRevision() != 0L) { + setModRevision(other.getModRevision()); + } + if (other.getVersion() != 0L) { + setVersion(other.getVersion()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getLease() != 0L) { + setLease(other.getLease()); + } + 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 { + org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * key is the key in bytes. An empty key is not allowed.
+     * 
+ * + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * key is the key in bytes. An empty key is not allowed.
+     * 
+ * + * bytes key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * key is the key in bytes. An empty key is not allowed.
+     * 
+ * + * bytes key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private long createRevision_ ; + /** + *
+     * create_revision is the revision of last creation on this key.
+     * 
+ * + * int64 create_revision = 2; + * @return The createRevision. + */ + @java.lang.Override + public long getCreateRevision() { + return createRevision_; + } + /** + *
+     * create_revision is the revision of last creation on this key.
+     * 
+ * + * int64 create_revision = 2; + * @param value The createRevision to set. + * @return This builder for chaining. + */ + public Builder setCreateRevision(long value) { + + createRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * create_revision is the revision of last creation on this key.
+     * 
+ * + * int64 create_revision = 2; + * @return This builder for chaining. + */ + public Builder clearCreateRevision() { + + createRevision_ = 0L; + onChanged(); + return this; + } + + private long modRevision_ ; + /** + *
+     * mod_revision is the revision of last modification on this key.
+     * 
+ * + * int64 mod_revision = 3; + * @return The modRevision. + */ + @java.lang.Override + public long getModRevision() { + return modRevision_; + } + /** + *
+     * mod_revision is the revision of last modification on this key.
+     * 
+ * + * int64 mod_revision = 3; + * @param value The modRevision to set. + * @return This builder for chaining. + */ + public Builder setModRevision(long value) { + + modRevision_ = value; + onChanged(); + return this; + } + /** + *
+     * mod_revision is the revision of last modification on this key.
+     * 
+ * + * int64 mod_revision = 3; + * @return This builder for chaining. + */ + public Builder clearModRevision() { + + modRevision_ = 0L; + onChanged(); + return this; + } + + private long version_ ; + /** + *
+     * version is the version of the key. A deletion resets
+     * the version to zero and any modification of the key
+     * increases its version.
+     * 
+ * + * int64 version = 4; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } + /** + *
+     * version is the version of the key. A deletion resets
+     * the version to zero and any modification of the key
+     * increases its version.
+     * 
+ * + * int64 version = 4; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(long value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * version is the version of the key. A deletion resets
+     * the version to zero and any modification of the key
+     * increases its version.
+     * 
+ * + * int64 version = 4; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * value is the value held by the key, in bytes.
+     * 
+ * + * bytes value = 5; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + *
+     * value is the value held by the key, in bytes.
+     * 
+ * + * bytes value = 5; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+     * value is the value held by the key, in bytes.
+     * 
+ * + * bytes value = 5; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private long lease_ ; + /** + *
+     * lease is the ID of the lease that attached to key.
+     * When the attached lease expires, the key will be deleted.
+     * If lease is 0, then no lease is attached to the key.
+     * 
+ * + * int64 lease = 6; + * @return The lease. + */ + @java.lang.Override + public long getLease() { + return lease_; + } + /** + *
+     * lease is the ID of the lease that attached to key.
+     * When the attached lease expires, the key will be deleted.
+     * If lease is 0, then no lease is attached to the key.
+     * 
+ * + * int64 lease = 6; + * @param value The lease to set. + * @return This builder for chaining. + */ + public Builder setLease(long value) { + + lease_ = value; + onChanged(); + return this; + } + /** + *
+     * lease is the ID of the lease that attached to key.
+     * When the attached lease expires, the key will be deleted.
+     * If lease is 0, then no lease is attached to the key.
+     * 
+ * + * int64 lease = 6; + * @return This builder for chaining. + */ + public Builder clearLease() { + + lease_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:mvccpb.KeyValue) + } + + // @@protoc_insertion_point(class_scope:mvccpb.KeyValue) + private static final org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue(); + } + + public static org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(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 org.eclipse.ecf.provider.etcd3.grpc.api.kv.KeyValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValueOrBuilder.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValueOrBuilder.java new file mode 100644 index 0000000..a86abdb --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/KeyValueOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: kv.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.kv; + +public interface KeyValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:mvccpb.KeyValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * key is the key in bytes. An empty key is not allowed.
+   * 
+ * + * bytes key = 1; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * create_revision is the revision of last creation on this key.
+   * 
+ * + * int64 create_revision = 2; + * @return The createRevision. + */ + long getCreateRevision(); + + /** + *
+   * mod_revision is the revision of last modification on this key.
+   * 
+ * + * int64 mod_revision = 3; + * @return The modRevision. + */ + long getModRevision(); + + /** + *
+   * version is the version of the key. A deletion resets
+   * the version to zero and any modification of the key
+   * increases its version.
+   * 
+ * + * int64 version = 4; + * @return The version. + */ + long getVersion(); + + /** + *
+   * value is the value held by the key, in bytes.
+   * 
+ * + * bytes value = 5; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + + /** + *
+   * lease is the ID of the lease that attached to key.
+   * When the attached lease expires, the key will be deleted.
+   * If lease is 0, then no lease is attached to the key.
+   * 
+ * + * int64 lease = 6; + * @return The lease. + */ + long getLease(); +} diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Kv.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Kv.java new file mode 100644 index 0000000..de4ff52 --- /dev/null +++ b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/kv/Kv.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: kv.proto + +package org.eclipse.ecf.provider.etcd3.grpc.api.kv; + +public final class Kv { + private Kv() {} + 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_mvccpb_KeyValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_mvccpb_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_mvccpb_Event_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_mvccpb_Event_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\010kv.proto\022\006mvccpb\"u\n\010KeyValue\022\013\n\003key\030\001 " + + "\001(\014\022\027\n\017create_revision\030\002 \001(\003\022\024\n\014mod_revi" + + "sion\030\003 \001(\003\022\017\n\007version\030\004 \001(\003\022\r\n\005value\030\005 \001" + + "(\014\022\r\n\005lease\030\006 \001(\003\"\221\001\n\005Event\022%\n\004type\030\001 \001(" + + "\0162\027.mvccpb.Event.EventType\022\034\n\002kv\030\002 \001(\0132\020" + + ".mvccpb.KeyValue\022!\n\007prev_kv\030\003 \001(\0132\020.mvcc" + + "pb.KeyValue\" \n\tEventType\022\007\n\003PUT\020\000\022\n\n\006DEL" + + "ETE\020\001B.\n*org.eclipse.ecf.provider.etcd3." + + "grpc.api.kvP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_mvccpb_KeyValue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_mvccpb_KeyValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_mvccpb_KeyValue_descriptor, + new java.lang.String[] { "Key", "CreateRevision", "ModRevision", "Version", "Value", "Lease", }); + internal_static_mvccpb_Event_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_mvccpb_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_mvccpb_Event_descriptor, + new java.lang.String[] { "Type", "Kv", "PrevKv", }); + } + + // @@protoc_insertion_point(outer_class_scope) +}