Back to godoc.org

Package wrappers

v1.3.2
Latest Go to latest

The latest major version is .

Published: Jul 1, 2019 | License: BSD-3-Clause | Module: github.com/golang/protobuf

Index

type BoolValue

type BoolValue struct {
	// The bool value.
	Value                bool     `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `bool`.

The JSON representation for `BoolValue` is JSON `true` and `false`.

func (*BoolValue) Descriptor

func (*BoolValue) Descriptor() ([]byte, []int)

func (*BoolValue) GetValue

func (m *BoolValue) GetValue() bool

func (*BoolValue) ProtoMessage

func (*BoolValue) ProtoMessage()

func (*BoolValue) Reset

func (m *BoolValue) Reset()

func (*BoolValue) String

func (m *BoolValue) String() string

func (*BoolValue) XXX_DiscardUnknown

func (m *BoolValue) XXX_DiscardUnknown()

func (*BoolValue) XXX_Marshal

func (m *BoolValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoolValue) XXX_Merge

func (m *BoolValue) XXX_Merge(src proto.Message)

func (*BoolValue) XXX_Size

func (m *BoolValue) XXX_Size() int

func (*BoolValue) XXX_Unmarshal

func (m *BoolValue) XXX_Unmarshal(b []byte) error

func (*BoolValue) XXX_WellKnownType

func (*BoolValue) XXX_WellKnownType() string

type BytesValue

type BytesValue struct {
	// The bytes value.
	Value                []byte   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `bytes`.

The JSON representation for `BytesValue` is JSON string.

func (*BytesValue) Descriptor

func (*BytesValue) Descriptor() ([]byte, []int)

func (*BytesValue) GetValue

func (m *BytesValue) GetValue() []byte

func (*BytesValue) ProtoMessage

func (*BytesValue) ProtoMessage()

func (*BytesValue) Reset

func (m *BytesValue) Reset()

func (*BytesValue) String

func (m *BytesValue) String() string

func (*BytesValue) XXX_DiscardUnknown

func (m *BytesValue) XXX_DiscardUnknown()

func (*BytesValue) XXX_Marshal

func (m *BytesValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesValue) XXX_Merge

func (m *BytesValue) XXX_Merge(src proto.Message)

func (*BytesValue) XXX_Size

func (m *BytesValue) XXX_Size() int

func (*BytesValue) XXX_Unmarshal

func (m *BytesValue) XXX_Unmarshal(b []byte) error

func (*BytesValue) XXX_WellKnownType

func (*BytesValue) XXX_WellKnownType() string

type DoubleValue

type DoubleValue struct {
	// The double value.
	Value                float64  `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `double`.

The JSON representation for `DoubleValue` is JSON number.

func (*DoubleValue) Descriptor

func (*DoubleValue) Descriptor() ([]byte, []int)

func (*DoubleValue) GetValue

func (m *DoubleValue) GetValue() float64

func (*DoubleValue) ProtoMessage

func (*DoubleValue) ProtoMessage()

func (*DoubleValue) Reset

func (m *DoubleValue) Reset()

func (*DoubleValue) String

func (m *DoubleValue) String() string

func (*DoubleValue) XXX_DiscardUnknown

func (m *DoubleValue) XXX_DiscardUnknown()

func (*DoubleValue) XXX_Marshal

func (m *DoubleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleValue) XXX_Merge

func (m *DoubleValue) XXX_Merge(src proto.Message)

func (*DoubleValue) XXX_Size

func (m *DoubleValue) XXX_Size() int

func (*DoubleValue) XXX_Unmarshal

func (m *DoubleValue) XXX_Unmarshal(b []byte) error

func (*DoubleValue) XXX_WellKnownType

func (*DoubleValue) XXX_WellKnownType() string

type FloatValue

type FloatValue struct {
	// The float value.
	Value                float32  `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `float`.

The JSON representation for `FloatValue` is JSON number.

func (*FloatValue) Descriptor

func (*FloatValue) Descriptor() ([]byte, []int)

func (*FloatValue) GetValue

func (m *FloatValue) GetValue() float32

func (*FloatValue) ProtoMessage

func (*FloatValue) ProtoMessage()

func (*FloatValue) Reset

func (m *FloatValue) Reset()

func (*FloatValue) String

func (m *FloatValue) String() string

func (*FloatValue) XXX_DiscardUnknown

func (m *FloatValue) XXX_DiscardUnknown()

func (*FloatValue) XXX_Marshal

func (m *FloatValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FloatValue) XXX_Merge

func (m *FloatValue) XXX_Merge(src proto.Message)

func (*FloatValue) XXX_Size

func (m *FloatValue) XXX_Size() int

func (*FloatValue) XXX_Unmarshal

func (m *FloatValue) XXX_Unmarshal(b []byte) error

func (*FloatValue) XXX_WellKnownType

func (*FloatValue) XXX_WellKnownType() string

type Int32Value

type Int32Value struct {
	// The int32 value.
	Value                int32    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `int32`.

The JSON representation for `Int32Value` is JSON number.

func (*Int32Value) Descriptor

func (*Int32Value) Descriptor() ([]byte, []int)

func (*Int32Value) GetValue

func (m *Int32Value) GetValue() int32

func (*Int32Value) ProtoMessage

func (*Int32Value) ProtoMessage()

func (*Int32Value) Reset

func (m *Int32Value) Reset()

func (*Int32Value) String

func (m *Int32Value) String() string

func (*Int32Value) XXX_DiscardUnknown

func (m *Int32Value) XXX_DiscardUnknown()

func (*Int32Value) XXX_Marshal

func (m *Int32Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int32Value) XXX_Merge

func (m *Int32Value) XXX_Merge(src proto.Message)

func (*Int32Value) XXX_Size

func (m *Int32Value) XXX_Size() int

func (*Int32Value) XXX_Unmarshal

func (m *Int32Value) XXX_Unmarshal(b []byte) error

func (*Int32Value) XXX_WellKnownType

func (*Int32Value) XXX_WellKnownType() string

type Int64Value

type Int64Value struct {
	// The int64 value.
	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `int64`.

The JSON representation for `Int64Value` is JSON string.

func (*Int64Value) Descriptor

func (*Int64Value) Descriptor() ([]byte, []int)

func (*Int64Value) GetValue

func (m *Int64Value) GetValue() int64

func (*Int64Value) ProtoMessage

func (*Int64Value) ProtoMessage()

func (*Int64Value) Reset

func (m *Int64Value) Reset()

func (*Int64Value) String

func (m *Int64Value) String() string

func (*Int64Value) XXX_DiscardUnknown

func (m *Int64Value) XXX_DiscardUnknown()

func (*Int64Value) XXX_Marshal

func (m *Int64Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64Value) XXX_Merge

func (m *Int64Value) XXX_Merge(src proto.Message)

func (*Int64Value) XXX_Size

func (m *Int64Value) XXX_Size() int

func (*Int64Value) XXX_Unmarshal

func (m *Int64Value) XXX_Unmarshal(b []byte) error

func (*Int64Value) XXX_WellKnownType

func (*Int64Value) XXX_WellKnownType() string

type StringValue

type StringValue struct {
	// The string value.
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `string`.

The JSON representation for `StringValue` is JSON string.

func (*StringValue) Descriptor

func (*StringValue) Descriptor() ([]byte, []int)

func (*StringValue) GetValue

func (m *StringValue) GetValue() string

func (*StringValue) ProtoMessage

func (*StringValue) ProtoMessage()

func (*StringValue) Reset

func (m *StringValue) Reset()

func (*StringValue) String

func (m *StringValue) String() string

func (*StringValue) XXX_DiscardUnknown

func (m *StringValue) XXX_DiscardUnknown()

func (*StringValue) XXX_Marshal

func (m *StringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringValue) XXX_Merge

func (m *StringValue) XXX_Merge(src proto.Message)

func (*StringValue) XXX_Size

func (m *StringValue) XXX_Size() int

func (*StringValue) XXX_Unmarshal

func (m *StringValue) XXX_Unmarshal(b []byte) error

func (*StringValue) XXX_WellKnownType

func (*StringValue) XXX_WellKnownType() string

type UInt32Value

type UInt32Value struct {
	// The uint32 value.
	Value                uint32   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `uint32`.

The JSON representation for `UInt32Value` is JSON number.

func (*UInt32Value) Descriptor

func (*UInt32Value) Descriptor() ([]byte, []int)

func (*UInt32Value) GetValue

func (m *UInt32Value) GetValue() uint32

func (*UInt32Value) ProtoMessage

func (*UInt32Value) ProtoMessage()

func (*UInt32Value) Reset

func (m *UInt32Value) Reset()

func (*UInt32Value) String

func (m *UInt32Value) String() string

func (*UInt32Value) XXX_DiscardUnknown

func (m *UInt32Value) XXX_DiscardUnknown()

func (*UInt32Value) XXX_Marshal

func (m *UInt32Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UInt32Value) XXX_Merge

func (m *UInt32Value) XXX_Merge(src proto.Message)

func (*UInt32Value) XXX_Size

func (m *UInt32Value) XXX_Size() int

func (*UInt32Value) XXX_Unmarshal

func (m *UInt32Value) XXX_Unmarshal(b []byte) error

func (*UInt32Value) XXX_WellKnownType

func (*UInt32Value) XXX_WellKnownType() string

type UInt64Value

type UInt64Value struct {
	// The uint64 value.
	Value                uint64   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Wrapper message for `uint64`.

The JSON representation for `UInt64Value` is JSON string.

func (*UInt64Value) Descriptor

func (*UInt64Value) Descriptor() ([]byte, []int)

func (*UInt64Value) GetValue

func (m *UInt64Value) GetValue() uint64

func (*UInt64Value) ProtoMessage

func (*UInt64Value) ProtoMessage()

func (*UInt64Value) Reset

func (m *UInt64Value) Reset()

func (*UInt64Value) String

func (m *UInt64Value) String() string

func (*UInt64Value) XXX_DiscardUnknown

func (m *UInt64Value) XXX_DiscardUnknown()

func (*UInt64Value) XXX_Marshal

func (m *UInt64Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UInt64Value) XXX_Merge

func (m *UInt64Value) XXX_Merge(src proto.Message)

func (*UInt64Value) XXX_Size

func (m *UInt64Value) XXX_Size() int

func (*UInt64Value) XXX_Unmarshal

func (m *UInt64Value) XXX_Unmarshal(b []byte) error

func (*UInt64Value) XXX_WellKnownType

func (*UInt64Value) XXX_WellKnownType() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier