Sha256: 392d5b4d43d7190bb3c836c0ee879509dbb40af37d5a509c5559f12ee30815e6

Contents?: true

Size: 1.23 KB

Versions: 13

Compression:

Stored size: 1.23 KB

Contents

// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC.  All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

// Users should include array.h or map.h instead.
// IWYU pragma: private, include "upb/message/array.h"

#ifndef UPB_MESSAGE_VALUE_H_
#define UPB_MESSAGE_VALUE_H_

#include <stdint.h>

#include "upb/base/string_view.h"

typedef union {
  bool bool_val;
  float float_val;
  double double_val;
  int32_t int32_val;
  int64_t int64_val;
  uint32_t uint32_val;
  uint64_t uint64_val;
  const struct upb_Array* array_val;
  const struct upb_Map* map_val;
  const struct upb_Message* msg_val;
  upb_StringView str_val;

  // EXPERIMENTAL: A tagged upb_Message*.  Users must use this instead of
  // msg_val if unlinked sub-messages may possibly be in use.  See the
  // documentation in kUpb_DecodeOption_ExperimentalAllowUnlinked for more
  // information.
  uintptr_t tagged_msg_val;  // upb_TaggedMessagePtr
} upb_MessageValue;

typedef union {
  struct upb_Array* array;
  struct upb_Map* map;
  struct upb_Message* msg;
} upb_MutableMessageValue;

#endif /* UPB_MESSAGE_VALUE_H_ */

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
grpc-1.67.0 third_party/upb/upb/message/value.h
grpc-1.67.0.pre1 third_party/upb/upb/message/value.h
grpc-1.66.0 third_party/upb/upb/message/value.h
grpc-1.66.0.pre5 third_party/upb/upb/message/value.h
grpc-1.66.0.pre3 third_party/upb/upb/message/value.h
grpc-1.63.2 third_party/upb/upb/message/value.h
grpc-1.64.3 third_party/upb/upb/message/value.h
grpc-1.65.2 third_party/upb/upb/message/value.h
grpc-1.65.1 third_party/upb/upb/message/value.h
grpc-1.65.0 third_party/upb/upb/message/value.h
grpc-1.65.0.pre2 third_party/upb/upb/message/value.h
grpc-1.65.0.pre1 third_party/upb/upb/message/value.h
grpc-1.63.0 third_party/upb/upb/message/value.h