package wrapperspb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
type DoubleValue struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func Double (v float64 ) *DoubleValue {
return &DoubleValue {Value : v }
}
func (x *DoubleValue ) Reset () {
*x = DoubleValue {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [0 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *DoubleValue ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*DoubleValue ) ProtoMessage () {}
func (x *DoubleValue ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [0 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*DoubleValue ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {0 }
}
func (x *DoubleValue ) GetValue () float64 {
if x != nil {
return x .Value
}
return 0
}
type FloatValue struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func Float (v float32 ) *FloatValue {
return &FloatValue {Value : v }
}
func (x *FloatValue ) Reset () {
*x = FloatValue {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [1 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *FloatValue ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*FloatValue ) ProtoMessage () {}
func (x *FloatValue ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [1 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*FloatValue ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {1 }
}
func (x *FloatValue ) GetValue () float32 {
if x != nil {
return x .Value
}
return 0
}
type Int64Value struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func Int64 (v int64 ) *Int64Value {
return &Int64Value {Value : v }
}
func (x *Int64Value ) Reset () {
*x = Int64Value {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [2 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *Int64Value ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*Int64Value ) ProtoMessage () {}
func (x *Int64Value ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [2 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*Int64Value ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {2 }
}
func (x *Int64Value ) GetValue () int64 {
if x != nil {
return x .Value
}
return 0
}
type UInt64Value struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func UInt64 (v uint64 ) *UInt64Value {
return &UInt64Value {Value : v }
}
func (x *UInt64Value ) Reset () {
*x = UInt64Value {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [3 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *UInt64Value ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*UInt64Value ) ProtoMessage () {}
func (x *UInt64Value ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [3 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*UInt64Value ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {3 }
}
func (x *UInt64Value ) GetValue () uint64 {
if x != nil {
return x .Value
}
return 0
}
type Int32Value struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func Int32 (v int32 ) *Int32Value {
return &Int32Value {Value : v }
}
func (x *Int32Value ) Reset () {
*x = Int32Value {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [4 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *Int32Value ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*Int32Value ) ProtoMessage () {}
func (x *Int32Value ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [4 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*Int32Value ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {4 }
}
func (x *Int32Value ) GetValue () int32 {
if x != nil {
return x .Value
}
return 0
}
type UInt32Value struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func UInt32 (v uint32 ) *UInt32Value {
return &UInt32Value {Value : v }
}
func (x *UInt32Value ) Reset () {
*x = UInt32Value {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [5 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *UInt32Value ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*UInt32Value ) ProtoMessage () {}
func (x *UInt32Value ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [5 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*UInt32Value ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {5 }
}
func (x *UInt32Value ) GetValue () uint32 {
if x != nil {
return x .Value
}
return 0
}
type BoolValue struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func Bool (v bool ) *BoolValue {
return &BoolValue {Value : v }
}
func (x *BoolValue ) Reset () {
*x = BoolValue {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [6 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *BoolValue ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*BoolValue ) ProtoMessage () {}
func (x *BoolValue ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [6 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*BoolValue ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {6 }
}
func (x *BoolValue ) GetValue () bool {
if x != nil {
return x .Value
}
return false
}
type StringValue struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func String (v string ) *StringValue {
return &StringValue {Value : v }
}
func (x *StringValue ) Reset () {
*x = StringValue {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [7 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *StringValue ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*StringValue ) ProtoMessage () {}
func (x *StringValue ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [7 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*StringValue ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {7 }
}
func (x *StringValue ) GetValue () string {
if x != nil {
return x .Value
}
return ""
}
type BytesValue struct {
state protoimpl .MessageState `protogen:"open.v1"`
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl .UnknownFields
sizeCache protoimpl .SizeCache
}
func Bytes (v []byte ) *BytesValue {
return &BytesValue {Value : v }
}
func (x *BytesValue ) Reset () {
*x = BytesValue {}
mi := &file_google_protobuf_wrappers_proto_msgTypes [8 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
func (x *BytesValue ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*BytesValue ) ProtoMessage () {}
func (x *BytesValue ) ProtoReflect () protoreflect .Message {
mi := &file_google_protobuf_wrappers_proto_msgTypes [8 ]
if x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*BytesValue ) Descriptor () ([]byte , []int ) {
return file_google_protobuf_wrappers_proto_rawDescGZIP (), []int {8 }
}
func (x *BytesValue ) GetValue () []byte {
if x != nil {
return x .Value
}
return nil
}
var File_google_protobuf_wrappers_proto protoreflect .FileDescriptor
const file_google_protobuf_wrappers_proto_rawDesc = "" +
"\n" +
"\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf\"#\n" +
"\vDoubleValue\x12\x14\n" +
"\x05value\x18\x01 \x01(\x01R\x05value\"\"\n" +
"\n" +
"FloatValue\x12\x14\n" +
"\x05value\x18\x01 \x01(\x02R\x05value\"\"\n" +
"\n" +
"Int64Value\x12\x14\n" +
"\x05value\x18\x01 \x01(\x03R\x05value\"#\n" +
"\vUInt64Value\x12\x14\n" +
"\x05value\x18\x01 \x01(\x04R\x05value\"\"\n" +
"\n" +
"Int32Value\x12\x14\n" +
"\x05value\x18\x01 \x01(\x05R\x05value\"#\n" +
"\vUInt32Value\x12\x14\n" +
"\x05value\x18\x01 \x01(\rR\x05value\"!\n" +
"\tBoolValue\x12\x14\n" +
"\x05value\x18\x01 \x01(\bR\x05value\"#\n" +
"\vStringValue\x12\x14\n" +
"\x05value\x18\x01 \x01(\tR\x05value\"\"\n" +
"\n" +
"BytesValue\x12\x14\n" +
"\x05value\x18\x01 \x01(\fR\x05valueB\x83\x01\n" +
"\x13com.google.protobufB\rWrappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3"
var (
file_google_protobuf_wrappers_proto_rawDescOnce sync .Once
file_google_protobuf_wrappers_proto_rawDescData []byte
)
func file_google_protobuf_wrappers_proto_rawDescGZIP() []byte {
file_google_protobuf_wrappers_proto_rawDescOnce .Do (func () {
file_google_protobuf_wrappers_proto_rawDescData = protoimpl .X .CompressGZIP (unsafe .Slice (unsafe .StringData (file_google_protobuf_wrappers_proto_rawDesc ), len (file_google_protobuf_wrappers_proto_rawDesc )))
})
return file_google_protobuf_wrappers_proto_rawDescData
}
var file_google_protobuf_wrappers_proto_msgTypes = make ([]protoimpl .MessageInfo , 9 )
var file_google_protobuf_wrappers_proto_goTypes = []any {
(*DoubleValue )(nil ),
(*FloatValue )(nil ),
(*Int64Value )(nil ),
(*UInt64Value )(nil ),
(*Int32Value )(nil ),
(*UInt32Value )(nil ),
(*BoolValue )(nil ),
(*StringValue )(nil ),
(*BytesValue )(nil ),
}
var file_google_protobuf_wrappers_proto_depIdxs = []int32 {
0 ,
0 ,
0 ,
0 ,
0 ,
}
func init() { file_google_protobuf_wrappers_proto_init () }
func file_google_protobuf_wrappers_proto_init() {
if File_google_protobuf_wrappers_proto != nil {
return
}
type x struct {}
out := protoimpl .TypeBuilder {
File : protoimpl .DescBuilder {
GoPackagePath : reflect .TypeOf (x {}).PkgPath (),
RawDescriptor : unsafe .Slice (unsafe .StringData (file_google_protobuf_wrappers_proto_rawDesc ), len (file_google_protobuf_wrappers_proto_rawDesc )),
NumEnums : 0 ,
NumMessages : 9 ,
NumExtensions : 0 ,
NumServices : 0 ,
},
GoTypes : file_google_protobuf_wrappers_proto_goTypes ,
DependencyIndexes : file_google_protobuf_wrappers_proto_depIdxs ,
MessageInfos : file_google_protobuf_wrappers_proto_msgTypes ,
}.Build ()
File_google_protobuf_wrappers_proto = out .File
file_google_protobuf_wrappers_proto_goTypes = nil
file_google_protobuf_wrappers_proto_depIdxs = nil
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .