Sha256: 17bcdea4ba9742b2f80ca6d85398f5109905e919a5d153625cf03d913544cfb4

Contents?: true

Size: 1.87 KB

Versions: 9

Compression:

Stored size: 1.87 KB

Contents

/* This file was generated by upb_generator from the input file:
 *
 *     google/api/annotations.proto
 *
 * Do not edit -- your changes will be discarded when the file is
 * regenerated. */

#ifndef GOOGLE_API_ANNOTATIONS_PROTO_UPB_H_
#define GOOGLE_API_ANNOTATIONS_PROTO_UPB_H_

#include "upb/generated_code_support.h"

#include "google/api/annotations.upb_minitable.h"

#include "google/api/http.upb_minitable.h"
#include "google/protobuf/descriptor.upb_minitable.h"

// Must be last.
#include "upb/port/def.inc"

#ifdef __cplusplus
extern "C" {
#endif

struct google_protobuf_MethodOptions;


UPB_INLINE bool google_api_has_http(const struct google_protobuf_MethodOptions* msg) {
  return _upb_Message_HasExtensionField(msg, &google_api_http_ext);
}
UPB_INLINE void google_api_clear_http(struct google_protobuf_MethodOptions* msg) {
  _upb_Message_ClearExtensionField(msg, &google_api_http_ext);
}
UPB_INLINE const struct google_api_HttpRule* google_api_http(const struct google_protobuf_MethodOptions* msg) {
  const upb_MiniTableExtension* ext = &google_api_http_ext;
  UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
  UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
  const struct google_api_HttpRule* default_val = NULL;
  const struct google_api_HttpRule* ret;
  _upb_Message_GetExtensionField(msg, ext, &default_val, &ret);
  return ret;
}
UPB_INLINE void google_api_set_http(struct google_protobuf_MethodOptions* msg, const struct google_api_HttpRule* val, upb_Arena* arena) {
  const upb_MiniTableExtension* ext = &google_api_http_ext;
  UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
  UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
  bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena);
  UPB_ASSERT(ok);
}
#ifdef __cplusplus
}  /* extern "C" */
#endif

#include "upb/port/undef.inc"

#endif  /* GOOGLE_API_ANNOTATIONS_PROTO_UPB_H_ */

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grpc-1.60.2 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.61.3 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.62.3 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.62.0 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.62.0.pre1 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.61.0 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.61.0.pre2 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.60.0 src/core/ext/upb-gen/google/api/annotations.upb.h
grpc-1.60.0.pre1 src/core/ext/upb-gen/google/api/annotations.upb.h