/* This file was generated by upb_generator from the input file:
 *
 *     net/proto2/compiler/proto/profile.proto
 *
 * Do not edit -- your changes will be discarded when the file is
 * regenerated.
 * NO CHECKED-IN PROTOBUF GENCODE */

#ifndef NET_PROTO2_COMPILER_PROTO_PROFILE_PROTO_UPB_H__UPB_H_
#define NET_PROTO2_COMPILER_PROTO_PROFILE_PROTO_UPB_H__UPB_H_

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

#ifdef __cplusplus
extern "C" {
#endif
extern const upb_MiniTable* google__protobuf__compiler__FieldAccessInfo_msg_init(void);
extern const upb_MiniTable* google__protobuf__compiler__MessageAccessInfo_msg_init(void);
extern const upb_MiniTable* google__protobuf__compiler__UserAccessInfo_msg_init(void);
extern const upb_MiniTable* google__protobuf__compiler__AccessInfo_msg_init(void);

typedef struct google_protobuf_compiler_FieldAccessInfo {
  upb_Message UPB_PRIVATE(base);
} google_protobuf_compiler_FieldAccessInfo;

typedef struct google_protobuf_compiler_MessageAccessInfo {
  upb_Message UPB_PRIVATE(base);
} google_protobuf_compiler_MessageAccessInfo;

typedef struct google_protobuf_compiler_UserAccessInfo {
  upb_Message UPB_PRIVATE(base);
} google_protobuf_compiler_UserAccessInfo;

typedef struct google_protobuf_compiler_AccessInfo {
  upb_Message UPB_PRIVATE(base);
} google_protobuf_compiler_AccessInfo;




/* proto2.compiler.FieldAccessInfo */
UPB_INLINE google_protobuf_compiler_FieldAccessInfo* google_protobuf_compiler_FieldAccessInfo_new(upb_Arena* arena) {
  return (google_protobuf_compiler_FieldAccessInfo*)_upb_Message_New(google__protobuf__compiler__FieldAccessInfo_msg_init(), arena);
}
UPB_INLINE google_protobuf_compiler_FieldAccessInfo* google_protobuf_compiler_FieldAccessInfo_parse(const char* buf, size_t size,
                                        upb_Arena* arena) {
  google_protobuf_compiler_FieldAccessInfo* ret = google_protobuf_compiler_FieldAccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__FieldAccessInfo_msg_init(), NULL, 0,
                 arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE google_protobuf_compiler_FieldAccessInfo* google_protobuf_compiler_FieldAccessInfo_parse_ex(
    const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
    int options, upb_Arena* arena) {
  google_protobuf_compiler_FieldAccessInfo* ret = google_protobuf_compiler_FieldAccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__FieldAccessInfo_msg_init(), extreg,
                 options, arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE char* google_protobuf_compiler_FieldAccessInfo_serialize(const google_protobuf_compiler_FieldAccessInfo* msg,
                                      upb_Arena* arena, size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__FieldAccessInfo_msg_init(), 0, arena, &ptr, len);
  return ptr;
}
UPB_INLINE char* google_protobuf_compiler_FieldAccessInfo_serialize_ex(const google_protobuf_compiler_FieldAccessInfo* msg,
                                         int options, upb_Arena* arena,
                                         size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__FieldAccessInfo_msg_init(), options, arena, &ptr, len);
  return ptr;
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_name(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 1);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE upb_StringView google_protobuf_compiler_FieldAccessInfo_name(const google_protobuf_compiler_FieldAccessInfo* msg) {
  upb_StringView default_val = upb_StringView_FromString("");
  upb_StringView ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 1);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_has_name(const google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 1);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_getters_count(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 2);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE uint64_t google_protobuf_compiler_FieldAccessInfo_getters_count(const google_protobuf_compiler_FieldAccessInfo* msg) {
  uint64_t default_val = (uint64_t)0ull;
  uint64_t ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 2);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_has_getters_count(const google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 2);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_setters_count(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 3);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE uint64_t google_protobuf_compiler_FieldAccessInfo_setters_count(const google_protobuf_compiler_FieldAccessInfo* msg) {
  uint64_t default_val = (uint64_t)0ull;
  uint64_t ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 3);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_has_setters_count(const google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 3);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_configs_count(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 4);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE uint64_t google_protobuf_compiler_FieldAccessInfo_configs_count(const google_protobuf_compiler_FieldAccessInfo* msg) {
  uint64_t default_val = (uint64_t)0ull;
  uint64_t ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 4);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_has_configs_count(const google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 4);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_num_elements_histogram(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE uint64_t const* google_protobuf_compiler_FieldAccessInfo_num_elements_histogram(const google_protobuf_compiler_FieldAccessInfo* msg,
                                                  size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (uint64_t const*)upb_Array_DataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

//
UPB_INLINE const upb_Array* _proto2_compiler_FieldAccessInfo_num_elements_histogram_upb_array(
    const google_protobuf_compiler_FieldAccessInfo* msg, size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE upb_Array* _proto2_compiler_FieldAccessInfo_num_elements_histogram_mutable_upb_array(
    google_protobuf_compiler_FieldAccessInfo* msg, size_t* size, upb_Arena* arena) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
                                                       &field, arena);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_mean_num_elements(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 6);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE double google_protobuf_compiler_FieldAccessInfo_mean_num_elements(const google_protobuf_compiler_FieldAccessInfo* msg) {
  double default_val = 0;
  double ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 6);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_has_mean_num_elements(const google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 6);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_clear_stdev_num_elements(google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 7);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE double google_protobuf_compiler_FieldAccessInfo_stdev_num_elements(const google_protobuf_compiler_FieldAccessInfo* msg) {
  double default_val = 0;
  double ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 7);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_has_stdev_num_elements(const google_protobuf_compiler_FieldAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 7);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}

UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_set_name(google_protobuf_compiler_FieldAccessInfo* msg, upb_StringView value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 1);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_set_getters_count(google_protobuf_compiler_FieldAccessInfo* msg, uint64_t value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 2);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_set_setters_count(google_protobuf_compiler_FieldAccessInfo* msg, uint64_t value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 3);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_set_configs_count(google_protobuf_compiler_FieldAccessInfo* msg, uint64_t value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 4);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE uint64_t* google_protobuf_compiler_FieldAccessInfo_mutable_num_elements_histogram(google_protobuf_compiler_FieldAccessInfo* msg,
                                              size_t* size) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (uint64_t*)upb_Array_MutableDataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

UPB_INLINE uint64_t* google_protobuf_compiler_FieldAccessInfo_resize_num_elements_histogram(google_protobuf_compiler_FieldAccessInfo* msg,
                                             size_t size,
                                             upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  return (uint64_t*)upb_Message_ResizeArrayUninitialized(
      UPB_UPCAST(msg), &field, size, arena);
}
UPB_INLINE bool google_protobuf_compiler_FieldAccessInfo_add_num_elements_histogram(google_protobuf_compiler_FieldAccessInfo* msg, uint64_t val,
                                      upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 5);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(
      UPB_UPCAST(msg), &field, arena);
  if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
                  arr, arr->UPB_PRIVATE(size) + 1, arena)) {
    return false;
  }
  UPB_PRIVATE(_upb_Array_Set)
  (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
  return true;
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_set_mean_num_elements(google_protobuf_compiler_FieldAccessInfo* msg, double value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 6);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE void google_protobuf_compiler_FieldAccessInfo_set_stdev_num_elements(google_protobuf_compiler_FieldAccessInfo* msg, double value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__FieldAccessInfo_msg_init(), 7);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}

/* proto2.compiler.MessageAccessInfo */
UPB_INLINE google_protobuf_compiler_MessageAccessInfo* google_protobuf_compiler_MessageAccessInfo_new(upb_Arena* arena) {
  return (google_protobuf_compiler_MessageAccessInfo*)_upb_Message_New(google__protobuf__compiler__MessageAccessInfo_msg_init(), arena);
}
UPB_INLINE google_protobuf_compiler_MessageAccessInfo* google_protobuf_compiler_MessageAccessInfo_parse(const char* buf, size_t size,
                                        upb_Arena* arena) {
  google_protobuf_compiler_MessageAccessInfo* ret = google_protobuf_compiler_MessageAccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__MessageAccessInfo_msg_init(), NULL, 0,
                 arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE google_protobuf_compiler_MessageAccessInfo* google_protobuf_compiler_MessageAccessInfo_parse_ex(
    const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
    int options, upb_Arena* arena) {
  google_protobuf_compiler_MessageAccessInfo* ret = google_protobuf_compiler_MessageAccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__MessageAccessInfo_msg_init(), extreg,
                 options, arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE char* google_protobuf_compiler_MessageAccessInfo_serialize(const google_protobuf_compiler_MessageAccessInfo* msg,
                                      upb_Arena* arena, size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__MessageAccessInfo_msg_init(), 0, arena, &ptr, len);
  return ptr;
}
UPB_INLINE char* google_protobuf_compiler_MessageAccessInfo_serialize_ex(const google_protobuf_compiler_MessageAccessInfo* msg,
                                         int options, upb_Arena* arena,
                                         size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__MessageAccessInfo_msg_init(), options, arena, &ptr, len);
  return ptr;
}
UPB_INLINE void google_protobuf_compiler_MessageAccessInfo_clear_name(google_protobuf_compiler_MessageAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 1);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE upb_StringView google_protobuf_compiler_MessageAccessInfo_name(const google_protobuf_compiler_MessageAccessInfo* msg) {
  upb_StringView default_val = upb_StringView_FromString("");
  upb_StringView ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 1);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_MessageAccessInfo_has_name(const google_protobuf_compiler_MessageAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 1);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_MessageAccessInfo_clear_count(google_protobuf_compiler_MessageAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 2);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE uint64_t google_protobuf_compiler_MessageAccessInfo_count(const google_protobuf_compiler_MessageAccessInfo* msg) {
  uint64_t default_val = (uint64_t)0ull;
  uint64_t ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 2);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_MessageAccessInfo_has_count(const google_protobuf_compiler_MessageAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 2);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_MessageAccessInfo_clear_field(google_protobuf_compiler_MessageAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE const google_protobuf_compiler_FieldAccessInfo* const* google_protobuf_compiler_MessageAccessInfo_field(const google_protobuf_compiler_MessageAccessInfo* msg,
                                                  size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (const google_protobuf_compiler_FieldAccessInfo* const*)upb_Array_DataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

//
UPB_INLINE const upb_Array* _proto2_compiler_MessageAccessInfo_field_upb_array(
    const google_protobuf_compiler_MessageAccessInfo* msg, size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE upb_Array* _proto2_compiler_MessageAccessInfo_field_mutable_upb_array(
    google_protobuf_compiler_MessageAccessInfo* msg, size_t* size, upb_Arena* arena) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
                                                       &field, arena);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE void google_protobuf_compiler_MessageAccessInfo_set_name(google_protobuf_compiler_MessageAccessInfo* msg, upb_StringView value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 1);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE void google_protobuf_compiler_MessageAccessInfo_set_count(google_protobuf_compiler_MessageAccessInfo* msg, uint64_t value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 2);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE google_protobuf_compiler_FieldAccessInfo** google_protobuf_compiler_MessageAccessInfo_mutable_field(google_protobuf_compiler_MessageAccessInfo* msg,
                                              size_t* size) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (google_protobuf_compiler_FieldAccessInfo**)upb_Array_MutableDataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

UPB_INLINE google_protobuf_compiler_FieldAccessInfo** google_protobuf_compiler_MessageAccessInfo_resize_field(google_protobuf_compiler_MessageAccessInfo* msg,
                                             size_t size,
                                             upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  return (google_protobuf_compiler_FieldAccessInfo**)upb_Message_ResizeArrayUninitialized(
      UPB_UPCAST(msg), &field, size, arena);
}
UPB_INLINE struct google_protobuf_compiler_FieldAccessInfo* google_protobuf_compiler_MessageAccessInfo_add_field(
    google_protobuf_compiler_MessageAccessInfo* msg, upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__MessageAccessInfo_msg_init(), 3);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(
      UPB_UPCAST(msg), &field, arena);
  if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
                  arr, arr->UPB_PRIVATE(size) + 1, arena)) {
    return NULL;
  }
  struct google_protobuf_compiler_FieldAccessInfo* sub =
      (struct google_protobuf_compiler_FieldAccessInfo*)_upb_Message_New(google__protobuf__compiler__FieldAccessInfo_msg_init(), arena);
  if (!arr || !sub) return NULL;
  UPB_PRIVATE(_upb_Array_Set)
  (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
  return sub;
}

/* proto2.compiler.UserAccessInfo */
UPB_INLINE google_protobuf_compiler_UserAccessInfo* google_protobuf_compiler_UserAccessInfo_new(upb_Arena* arena) {
  return (google_protobuf_compiler_UserAccessInfo*)_upb_Message_New(google__protobuf__compiler__UserAccessInfo_msg_init(), arena);
}
UPB_INLINE google_protobuf_compiler_UserAccessInfo* google_protobuf_compiler_UserAccessInfo_parse(const char* buf, size_t size,
                                        upb_Arena* arena) {
  google_protobuf_compiler_UserAccessInfo* ret = google_protobuf_compiler_UserAccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__UserAccessInfo_msg_init(), NULL, 0,
                 arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE google_protobuf_compiler_UserAccessInfo* google_protobuf_compiler_UserAccessInfo_parse_ex(
    const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
    int options, upb_Arena* arena) {
  google_protobuf_compiler_UserAccessInfo* ret = google_protobuf_compiler_UserAccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__UserAccessInfo_msg_init(), extreg,
                 options, arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE char* google_protobuf_compiler_UserAccessInfo_serialize(const google_protobuf_compiler_UserAccessInfo* msg,
                                      upb_Arena* arena, size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__UserAccessInfo_msg_init(), 0, arena, &ptr, len);
  return ptr;
}
UPB_INLINE char* google_protobuf_compiler_UserAccessInfo_serialize_ex(const google_protobuf_compiler_UserAccessInfo* msg,
                                         int options, upb_Arena* arena,
                                         size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__UserAccessInfo_msg_init(), options, arena, &ptr, len);
  return ptr;
}
UPB_INLINE void google_protobuf_compiler_UserAccessInfo_clear_accessed_fields(google_protobuf_compiler_UserAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE upb_StringView const* google_protobuf_compiler_UserAccessInfo_accessed_fields(const google_protobuf_compiler_UserAccessInfo* msg,
                                                  size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (upb_StringView const*)upb_Array_DataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

//
UPB_INLINE const upb_Array* _proto2_compiler_UserAccessInfo_accessed_fields_upb_array(
    const google_protobuf_compiler_UserAccessInfo* msg, size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE upb_Array* _proto2_compiler_UserAccessInfo_accessed_fields_mutable_upb_array(
    google_protobuf_compiler_UserAccessInfo* msg, size_t* size, upb_Arena* arena) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
                                                       &field, arena);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}
UPB_INLINE void google_protobuf_compiler_UserAccessInfo_clear_accessed_messages(google_protobuf_compiler_UserAccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE upb_StringView const* google_protobuf_compiler_UserAccessInfo_accessed_messages(const google_protobuf_compiler_UserAccessInfo* msg,
                                                  size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (upb_StringView const*)upb_Array_DataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

//
UPB_INLINE const upb_Array* _proto2_compiler_UserAccessInfo_accessed_messages_upb_array(
    const google_protobuf_compiler_UserAccessInfo* msg, size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE upb_Array* _proto2_compiler_UserAccessInfo_accessed_messages_mutable_upb_array(
    google_protobuf_compiler_UserAccessInfo* msg, size_t* size, upb_Arena* arena) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
                                                       &field, arena);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE upb_StringView* google_protobuf_compiler_UserAccessInfo_mutable_accessed_fields(google_protobuf_compiler_UserAccessInfo* msg,
                                              size_t* size) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (upb_StringView*)upb_Array_MutableDataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

UPB_INLINE upb_StringView* google_protobuf_compiler_UserAccessInfo_resize_accessed_fields(google_protobuf_compiler_UserAccessInfo* msg,
                                             size_t size,
                                             upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  return (upb_StringView*)upb_Message_ResizeArrayUninitialized(
      UPB_UPCAST(msg), &field, size, arena);
}
UPB_INLINE bool google_protobuf_compiler_UserAccessInfo_add_accessed_fields(google_protobuf_compiler_UserAccessInfo* msg, upb_StringView val,
                                      upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 1);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(
      UPB_UPCAST(msg), &field, arena);
  if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
                  arr, arr->UPB_PRIVATE(size) + 1, arena)) {
    return false;
  }
  UPB_PRIVATE(_upb_Array_Set)
  (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
  return true;
}
UPB_INLINE upb_StringView* google_protobuf_compiler_UserAccessInfo_mutable_accessed_messages(google_protobuf_compiler_UserAccessInfo* msg,
                                              size_t* size) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (upb_StringView*)upb_Array_MutableDataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

UPB_INLINE upb_StringView* google_protobuf_compiler_UserAccessInfo_resize_accessed_messages(google_protobuf_compiler_UserAccessInfo* msg,
                                             size_t size,
                                             upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  return (upb_StringView*)upb_Message_ResizeArrayUninitialized(
      UPB_UPCAST(msg), &field, size, arena);
}
UPB_INLINE bool google_protobuf_compiler_UserAccessInfo_add_accessed_messages(google_protobuf_compiler_UserAccessInfo* msg, upb_StringView val,
                                      upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__UserAccessInfo_msg_init(), 2);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(
      UPB_UPCAST(msg), &field, arena);
  if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
                  arr, arr->UPB_PRIVATE(size) + 1, arena)) {
    return false;
  }
  UPB_PRIVATE(_upb_Array_Set)
  (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
  return true;
}

/* proto2.compiler.AccessInfo */
UPB_INLINE google_protobuf_compiler_AccessInfo* google_protobuf_compiler_AccessInfo_new(upb_Arena* arena) {
  return (google_protobuf_compiler_AccessInfo*)_upb_Message_New(google__protobuf__compiler__AccessInfo_msg_init(), arena);
}
UPB_INLINE google_protobuf_compiler_AccessInfo* google_protobuf_compiler_AccessInfo_parse(const char* buf, size_t size,
                                        upb_Arena* arena) {
  google_protobuf_compiler_AccessInfo* ret = google_protobuf_compiler_AccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__AccessInfo_msg_init(), NULL, 0,
                 arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE google_protobuf_compiler_AccessInfo* google_protobuf_compiler_AccessInfo_parse_ex(
    const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
    int options, upb_Arena* arena) {
  google_protobuf_compiler_AccessInfo* ret = google_protobuf_compiler_AccessInfo_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__AccessInfo_msg_init(), extreg,
                 options, arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE char* google_protobuf_compiler_AccessInfo_serialize(const google_protobuf_compiler_AccessInfo* msg,
                                      upb_Arena* arena, size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__AccessInfo_msg_init(), 0, arena, &ptr, len);
  return ptr;
}
UPB_INLINE char* google_protobuf_compiler_AccessInfo_serialize_ex(const google_protobuf_compiler_AccessInfo* msg,
                                         int options, upb_Arena* arena,
                                         size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__AccessInfo_msg_init(), options, arena, &ptr, len);
  return ptr;
}
UPB_INLINE void google_protobuf_compiler_AccessInfo_clear_message(google_protobuf_compiler_AccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE const google_protobuf_compiler_MessageAccessInfo* const* google_protobuf_compiler_AccessInfo_message(const google_protobuf_compiler_AccessInfo* msg,
                                                  size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (const google_protobuf_compiler_MessageAccessInfo* const*)upb_Array_DataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

//
UPB_INLINE const upb_Array* _proto2_compiler_AccessInfo_message_upb_array(
    const google_protobuf_compiler_AccessInfo* msg, size_t* size) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}

UPB_INLINE upb_Array* _proto2_compiler_AccessInfo_message_mutable_upb_array(
    google_protobuf_compiler_AccessInfo* msg, size_t* size, upb_Arena* arena) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
                                                       &field, arena);
  if (size) {
    *size = arr ? arr->UPB_PRIVATE(size) : 0;
  }
  return arr;
}
UPB_INLINE void google_protobuf_compiler_AccessInfo_clear_language(google_protobuf_compiler_AccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 2);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE upb_StringView google_protobuf_compiler_AccessInfo_language(const google_protobuf_compiler_AccessInfo* msg) {
  upb_StringView default_val = upb_StringView_FromString("");
  upb_StringView ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 2);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_AccessInfo_has_language(const google_protobuf_compiler_AccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 2);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE void google_protobuf_compiler_AccessInfo_clear_user_access(google_protobuf_compiler_AccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 3);
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE const google_protobuf_compiler_UserAccessInfo* google_protobuf_compiler_AccessInfo_user_access(const google_protobuf_compiler_AccessInfo* msg) {
  const google_protobuf_compiler_UserAccessInfo* default_val = NULL;
  const google_protobuf_compiler_UserAccessInfo* ret;
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 3);
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}
UPB_INLINE bool google_protobuf_compiler_AccessInfo_has_user_access(const google_protobuf_compiler_AccessInfo* msg) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 3);
  return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
}

UPB_INLINE google_protobuf_compiler_MessageAccessInfo** google_protobuf_compiler_AccessInfo_mutable_message(google_protobuf_compiler_AccessInfo* msg,
                                              size_t* size) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
  if (arr) {
    if (size) *size = arr->UPB_PRIVATE(size);
    return (google_protobuf_compiler_MessageAccessInfo**)upb_Array_MutableDataPtr(arr);
  } else {
    if (size) *size = 0;
    return NULL;
  }
}

UPB_INLINE google_protobuf_compiler_MessageAccessInfo** google_protobuf_compiler_AccessInfo_resize_message(google_protobuf_compiler_AccessInfo* msg,
                                             size_t size,
                                             upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  return (google_protobuf_compiler_MessageAccessInfo**)upb_Message_ResizeArrayUninitialized(
      UPB_UPCAST(msg), &field, size, arena);
}
UPB_INLINE struct google_protobuf_compiler_MessageAccessInfo* google_protobuf_compiler_AccessInfo_add_message(
    google_protobuf_compiler_AccessInfo* msg, upb_Arena* arena) {
  upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 1);
  upb_Array* arr = upb_Message_GetOrCreateMutableArray(
      UPB_UPCAST(msg), &field, arena);
  if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
                  arr, arr->UPB_PRIVATE(size) + 1, arena)) {
    return NULL;
  }
  struct google_protobuf_compiler_MessageAccessInfo* sub =
      (struct google_protobuf_compiler_MessageAccessInfo*)_upb_Message_New(google__protobuf__compiler__MessageAccessInfo_msg_init(), arena);
  if (!arr || !sub) return NULL;
  UPB_PRIVATE(_upb_Array_Set)
  (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
  return sub;
}
UPB_INLINE void google_protobuf_compiler_AccessInfo_set_language(google_protobuf_compiler_AccessInfo* msg, upb_StringView value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 2);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE void google_protobuf_compiler_AccessInfo_set_user_access(google_protobuf_compiler_AccessInfo* msg, google_protobuf_compiler_UserAccessInfo* value) {
  const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__AccessInfo_msg_init(), 3);
  upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
}
UPB_INLINE struct google_protobuf_compiler_UserAccessInfo* google_protobuf_compiler_AccessInfo_mutable_user_access(
    google_protobuf_compiler_AccessInfo* msg, upb_Arena* arena) {
  struct google_protobuf_compiler_UserAccessInfo* sub = (struct google_protobuf_compiler_UserAccessInfo*)google_protobuf_compiler_AccessInfo_user_access(msg);
  if (sub == NULL) {
    sub = (struct google_protobuf_compiler_UserAccessInfo*)_upb_Message_New(google__protobuf__compiler__UserAccessInfo_msg_init(), arena);
    if (sub) google_protobuf_compiler_AccessInfo_set_user_access(msg, sub);
  }
  return sub;
}

#ifdef __cplusplus
              } /* extern "C" */
#endif

#include "upb/port/undef.inc"

#endif /* NET_PROTO2_COMPILER_PROTO_PROFILE_PROTO_UPB_H__UPB_H_ */
