Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/google/protobuf/wrappers.proto is written in an unsupported language. File is not indexed.

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2008 Google Inc.  All rights reserved.
0003 // https://developers.google.com/protocol-buffers/
0004 //
0005 // Redistribution and use in source and binary forms, with or without
0006 // modification, are permitted provided that the following conditions are
0007 // met:
0008 //
0009 //     * Redistributions of source code must retain the above copyright
0010 // notice, this list of conditions and the following disclaimer.
0011 //     * Redistributions in binary form must reproduce the above
0012 // copyright notice, this list of conditions and the following disclaimer
0013 // in the documentation and/or other materials provided with the
0014 // distribution.
0015 //     * Neither the name of Google Inc. nor the names of its
0016 // contributors may be used to endorse or promote products derived from
0017 // this software without specific prior written permission.
0018 //
0019 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0020 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0021 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0022 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0023 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0024 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0025 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0026 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0027 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0028 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0029 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0030 //
0031 // Wrappers for primitive (non-message) types. These types were needed
0032 // for legacy reasons and are not recommended for use in new APIs.
0033 //
0034 // Historically these wrappers were useful to have presence on proto3 primitive
0035 // fields, but proto3 syntax has been updated to support the `optional` keyword.
0036 // Using that keyword is now the strongly preferred way to add presence to
0037 // proto3 primitive fields.
0038 //
0039 // A secondary usecase was to embed primitives in the `google.protobuf.Any`
0040 // type: it is now recommended that you embed your value in your own wrapper
0041 // message which can be specifically documented.
0042 //
0043 // These wrappers have no meaningful use within repeated fields as they lack
0044 // the ability to detect presence on individual elements.
0045 // These wrappers have no meaningful use within a map or a oneof since
0046 // individual entries of a map or fields of a oneof can already detect presence.
0047 
0048 syntax = "proto3";
0049 
0050 package google.protobuf;
0051 
0052 option cc_enable_arenas = true;
0053 option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
0054 option java_package = "com.google.protobuf";
0055 option java_outer_classname = "WrappersProto";
0056 option java_multiple_files = true;
0057 option objc_class_prefix = "GPB";
0058 option csharp_namespace = "Google.Protobuf.WellKnownTypes";
0059 
0060 // Wrapper message for `double`.
0061 //
0062 // The JSON representation for `DoubleValue` is JSON number.
0063 //
0064 // Not recommended for use in new APIs, but still useful for legacy APIs and
0065 // has no plan to be removed.
0066 message DoubleValue {
0067   // The double value.
0068   double value = 1;
0069 }
0070 
0071 // Wrapper message for `float`.
0072 //
0073 // The JSON representation for `FloatValue` is JSON number.
0074 //
0075 // Not recommended for use in new APIs, but still useful for legacy APIs and
0076 // has no plan to be removed.
0077 message FloatValue {
0078   // The float value.
0079   float value = 1;
0080 }
0081 
0082 // Wrapper message for `int64`.
0083 //
0084 // The JSON representation for `Int64Value` is JSON string.
0085 //
0086 // Not recommended for use in new APIs, but still useful for legacy APIs and
0087 // has no plan to be removed.
0088 message Int64Value {
0089   // The int64 value.
0090   int64 value = 1;
0091 }
0092 
0093 // Wrapper message for `uint64`.
0094 //
0095 // The JSON representation for `UInt64Value` is JSON string.
0096 //
0097 // Not recommended for use in new APIs, but still useful for legacy APIs and
0098 // has no plan to be removed.
0099 message UInt64Value {
0100   // The uint64 value.
0101   uint64 value = 1;
0102 }
0103 
0104 // Wrapper message for `int32`.
0105 //
0106 // The JSON representation for `Int32Value` is JSON number.
0107 //
0108 // Not recommended for use in new APIs, but still useful for legacy APIs and
0109 // has no plan to be removed.
0110 message Int32Value {
0111   // The int32 value.
0112   int32 value = 1;
0113 }
0114 
0115 // Wrapper message for `uint32`.
0116 //
0117 // The JSON representation for `UInt32Value` is JSON number.
0118 //
0119 // Not recommended for use in new APIs, but still useful for legacy APIs and
0120 // has no plan to be removed.
0121 message UInt32Value {
0122   // The uint32 value.
0123   uint32 value = 1;
0124 }
0125 
0126 // Wrapper message for `bool`.
0127 //
0128 // The JSON representation for `BoolValue` is JSON `true` and `false`.
0129 //
0130 // Not recommended for use in new APIs, but still useful for legacy APIs and
0131 // has no plan to be removed.
0132 message BoolValue {
0133   // The bool value.
0134   bool value = 1;
0135 }
0136 
0137 // Wrapper message for `string`.
0138 //
0139 // The JSON representation for `StringValue` is JSON string.
0140 //
0141 // Not recommended for use in new APIs, but still useful for legacy APIs and
0142 // has no plan to be removed.
0143 message StringValue {
0144   // The string value.
0145   string value = 1;
0146 }
0147 
0148 // Wrapper message for `bytes`.
0149 //
0150 // The JSON representation for `BytesValue` is JSON string.
0151 //
0152 // Not recommended for use in new APIs, but still useful for legacy APIs and
0153 // has no plan to be removed.
0154 message BytesValue {
0155   // The bytes value.
0156   bytes value = 1;
0157 }