/* This file was generated by upb_generator from the input file:
 *
 *     envoy/extensions/grpc_service/call_credentials/access_token/v3/access_token_credentials.proto
 *
 * Do not edit -- your changes will be discarded when the file is
 * regenerated.
 * NO CHECKED-IN PROTOBUF GENCODE */

#ifndef ENVOY_EXTENSIONS_GRPC_SERVICE_CALL_CREDENTIALS_ACCESS_TOKEN_V3_ACCESS_TOKEN_CREDENTIALS_PROTO_UPB_H__UPB_H_
#define ENVOY_EXTENSIONS_GRPC_SERVICE_CALL_CREDENTIALS_ACCESS_TOKEN_V3_ACCESS_TOKEN_CREDENTIALS_PROTO_UPB_H__UPB_H_

#include "upb/generated_code_support.h"

#include "envoy/extensions/grpc_service/call_credentials/access_token/v3/access_token_credentials.upb_minitable.h"

#include "udpa/annotations/status.upb_minitable.h"

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

#ifdef __cplusplus
extern "C" {
#endif

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



/* envoy.extensions.grpc_service.call_credentials.access_token.v3.AccessTokenCredentials */

UPB_INLINE envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_new(upb_Arena* arena) {
  return (envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials*)_upb_Message_New(&envoy__extensions__grpc_0service__call_0credentials__access_0token__v3__AccessTokenCredentials_msg_init, arena);
}
UPB_INLINE envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_parse(const char* buf, size_t size, upb_Arena* arena) {
  envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* ret = envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__extensions__grpc_0service__call_0credentials__access_0token__v3__AccessTokenCredentials_msg_init, NULL, 0, arena) !=
      kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_parse_ex(const char* buf, size_t size,
                           const upb_ExtensionRegistry* extreg,
                           int options, upb_Arena* arena) {
  envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* ret = envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_new(arena);
  if (!ret) return NULL;
  if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__extensions__grpc_0service__call_0credentials__access_0token__v3__AccessTokenCredentials_msg_init, extreg, options,
                 arena) != kUpb_DecodeStatus_Ok) {
    return NULL;
  }
  return ret;
}
UPB_INLINE char* envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_serialize(const envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* msg, upb_Arena* arena, size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), &envoy__extensions__grpc_0service__call_0credentials__access_0token__v3__AccessTokenCredentials_msg_init, 0, arena, &ptr, len);
  return ptr;
}
UPB_INLINE char* envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_serialize_ex(const envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* msg, int options,
                                 upb_Arena* arena, size_t* len) {
  char* ptr;
  (void)upb_Encode(UPB_UPCAST(msg), &envoy__extensions__grpc_0service__call_0credentials__access_0token__v3__AccessTokenCredentials_msg_init, options, arena, &ptr, len);
  return ptr;
}
UPB_INLINE void envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_clear_token(envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* msg) {
  const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
  upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
}
UPB_INLINE upb_StringView envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_token(const envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials* msg) {
  upb_StringView default_val = upb_StringView_FromString("");
  upb_StringView ret;
  const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
  _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
                                    &default_val, &ret);
  return ret;
}

UPB_INLINE void envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials_set_token(envoy_extensions_grpc_service_call_credentials_access_token_v3_AccessTokenCredentials *msg, upb_StringView value) {
  const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
  upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
}

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

#include "upb/port/undef.inc"

#endif  /* ENVOY_EXTENSIONS_GRPC_SERVICE_CALL_CREDENTIALS_ACCESS_TOKEN_V3_ACCESS_TOKEN_CREDENTIALS_PROTO_UPB_H__UPB_H_ */
