status.nanopb.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright 2023 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* Automatically generated nanopb header */
  17. /* Generated by nanopb-0.3.9.8 */
  18. #ifndef PB_GOOGLE_RPC_STATUS_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_RPC_STATUS_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include "google/protobuf/any.nanopb.h"
  22. #include <string>
  23. namespace firebase {
  24. namespace firestore {
  25. /* @@protoc_insertion_point(includes) */
  26. #if PB_PROTO_HEADER_VERSION != 30
  27. #error Regenerate this file with the current version of nanopb generator.
  28. #endif
  29. /* Struct definitions */
  30. typedef struct _google_rpc_Status {
  31. int32_t code;
  32. pb_bytes_array_t *message;
  33. pb_size_t details_count;
  34. struct _google_protobuf_Any *details;
  35. std::string ToString(int indent = 0) const;
  36. /* @@protoc_insertion_point(struct:google_rpc_Status) */
  37. } google_rpc_Status;
  38. /* Default values for struct fields */
  39. /* Initializer values for message structs */
  40. #define google_rpc_Status_init_default {0, NULL, 0, NULL}
  41. #define google_rpc_Status_init_zero {0, NULL, 0, NULL}
  42. /* Field tags (for use in manual encoding/decoding) */
  43. #define google_rpc_Status_code_tag 1
  44. #define google_rpc_Status_message_tag 2
  45. #define google_rpc_Status_details_tag 3
  46. /* Struct field encoding specification for nanopb */
  47. extern const pb_field_t google_rpc_Status_fields[4];
  48. /* Maximum encoded size of messages (where known) */
  49. /* google_rpc_Status_size depends on runtime parameters */
  50. /* Message IDs (where set with "msgid" option) */
  51. #ifdef PB_MSGID
  52. #define STATUS_MESSAGES \
  53. #endif
  54. } // namespace firestore
  55. } // namespace firebase
  56. /* @@protoc_insertion_point(eof) */
  57. #endif