Documentation
¶
Index ¶
- Variables
- type ExampleDBModel
- func (*ExampleDBModel) Descriptor() ([]byte, []int)
- func (m *ExampleDBModel) GetBoolKey() bool
- func (m *ExampleDBModel) GetBytesKey() []byte
- func (m *ExampleDBModel) GetComplexArrayKey() []*ExampleNestedModel
- func (m *ExampleDBModel) GetDoubleKey() float64
- func (m *ExampleDBModel) GetEnumKey() ExampleEnumModel
- func (m *ExampleDBModel) GetFloatKey() float32
- func (m *ExampleDBModel) GetInt32ArrayKey() []int32
- func (m *ExampleDBModel) GetInt32Key() int32
- func (m *ExampleDBModel) GetInt64Key() int64
- func (m *ExampleDBModel) GetMapStringInt32() map[string]int32
- func (m *ExampleDBModel) GetMapStringString() map[string]string
- func (m *ExampleDBModel) GetNullKey() _struct.NullValue
- func (m *ExampleDBModel) GetStringArrayKey() []string
- func (m *ExampleDBModel) GetStringKey() string
- func (m *ExampleDBModel) GetStructKey() *_struct.Struct
- func (m *ExampleDBModel) GetTimestampKey() *timestamp.Timestamp
- func (*ExampleDBModel) ProtoMessage()
- func (m *ExampleDBModel) Reset()
- func (m *ExampleDBModel) String() string
- func (m *ExampleDBModel) XXX_DiscardUnknown()
- func (m *ExampleDBModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleDBModel) XXX_Merge(src proto.Message)
- func (m *ExampleDBModel) XXX_Size() int
- func (m *ExampleDBModel) XXX_Unmarshal(b []byte) error
- type ExampleDBModelWithKey
- func (*ExampleDBModelWithKey) Descriptor() ([]byte, []int)
- func (m *ExampleDBModelWithKey) GetInt32Key() int32
- func (m *ExampleDBModelWithKey) GetKey() string
- func (m *ExampleDBModelWithKey) GetStringKey() string
- func (*ExampleDBModelWithKey) ProtoMessage()
- func (m *ExampleDBModelWithKey) Reset()
- func (m *ExampleDBModelWithKey) String() string
- func (m *ExampleDBModelWithKey) XXX_DiscardUnknown()
- func (m *ExampleDBModelWithKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleDBModelWithKey) XXX_Merge(src proto.Message)
- func (m *ExampleDBModelWithKey) XXX_Size() int
- func (m *ExampleDBModelWithKey) XXX_Unmarshal(b []byte) error
- type ExampleEnumModel
- type ExampleNestedModel
- func (*ExampleNestedModel) Descriptor() ([]byte, []int)
- func (m *ExampleNestedModel) GetInt32Key() int32
- func (m *ExampleNestedModel) GetStringKey() string
- func (*ExampleNestedModel) ProtoMessage()
- func (m *ExampleNestedModel) Reset()
- func (m *ExampleNestedModel) String() string
- func (m *ExampleNestedModel) XXX_DiscardUnknown()
- func (m *ExampleNestedModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleNestedModel) XXX_Merge(src proto.Message)
- func (m *ExampleNestedModel) XXX_Size() int
- func (m *ExampleNestedModel) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ExampleEnumModel_name = map[int32]string{
0: "ENUM0",
1: "ENUM1",
2: "ENUM2",
}
View Source
var ExampleEnumModel_value = map[string]int32{
"ENUM0": 0,
"ENUM1": 1,
"ENUM2": 2,
}
Functions ¶
This section is empty.
Types ¶
type ExampleDBModel ¶
type ExampleDBModel struct { // Simple type Int32Key int32 `protobuf:"varint,1,opt,name=int32_key,json=int32Key,proto3" json:"int32_key,omitempty"` StringKey string `protobuf:"bytes,2,opt,name=string_key,json=stringKey,proto3" json:"string_key,omitempty"` BoolKey bool `protobuf:"varint,3,opt,name=bool_key,json=boolKey,proto3" json:"bool_key,omitempty"` BytesKey []byte `protobuf:"bytes,4,opt,name=bytes_key,json=bytesKey,proto3" json:"bytes_key,omitempty"` DoubleKey float64 `protobuf:"fixed64,14,opt,name=double_key,json=doubleKey,proto3" json:"double_key,omitempty"` FloatKey float32 `protobuf:"fixed32,15,opt,name=float_key,json=floatKey,proto3" json:"float_key,omitempty"` Int64Key int64 `protobuf:"varint,16,opt,name=int64_key,json=int64Key,proto3" json:"int64_key,omitempty"` // Container types with simple values MapStringString map[string]string `` /* 196-byte string literal not displayed */ MapStringInt32 map[string]int32 `` /* 194-byte string literal not displayed */ StringArrayKey []string `protobuf:"bytes,7,rep,name=string_array_key,json=stringArrayKey,proto3" json:"string_array_key,omitempty"` Int32ArrayKey []int32 `protobuf:"varint,8,rep,packed,name=int32_array_key,json=int32ArrayKey,proto3" json:"int32_array_key,omitempty"` // Container types with complex values ComplexArrayKey []*ExampleNestedModel `protobuf:"bytes,9,rep,name=complex_array_key,json=complexArrayKey,proto3" json:"complex_array_key,omitempty"` // Enum types EnumKey ExampleEnumModel `protobuf:"varint,10,opt,name=enum_key,json=enumKey,proto3,enum=example.ExampleEnumModel" json:"enum_key,omitempty"` // Complex types from protobuf stdlib TimestampKey *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp_key,json=timestampKey,proto3" json:"timestamp_key,omitempty"` StructKey *_struct.Struct `protobuf:"bytes,12,opt,name=struct_key,json=structKey,proto3" json:"struct_key,omitempty"` // Other special types NullKey _struct.NullValue `protobuf:"varint,13,opt,name=null_key,json=nullKey,proto3,enum=google.protobuf.NullValue" json:"null_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExampleDBModel) Descriptor ¶
func (*ExampleDBModel) Descriptor() ([]byte, []int)
func (*ExampleDBModel) GetBoolKey ¶
func (m *ExampleDBModel) GetBoolKey() bool
func (*ExampleDBModel) GetBytesKey ¶
func (m *ExampleDBModel) GetBytesKey() []byte
func (*ExampleDBModel) GetComplexArrayKey ¶
func (m *ExampleDBModel) GetComplexArrayKey() []*ExampleNestedModel
func (*ExampleDBModel) GetDoubleKey ¶
func (m *ExampleDBModel) GetDoubleKey() float64
func (*ExampleDBModel) GetEnumKey ¶
func (m *ExampleDBModel) GetEnumKey() ExampleEnumModel
func (*ExampleDBModel) GetFloatKey ¶
func (m *ExampleDBModel) GetFloatKey() float32
func (*ExampleDBModel) GetInt32ArrayKey ¶
func (m *ExampleDBModel) GetInt32ArrayKey() []int32
func (*ExampleDBModel) GetInt32Key ¶
func (m *ExampleDBModel) GetInt32Key() int32
func (*ExampleDBModel) GetInt64Key ¶
func (m *ExampleDBModel) GetInt64Key() int64
func (*ExampleDBModel) GetMapStringInt32 ¶
func (m *ExampleDBModel) GetMapStringInt32() map[string]int32
func (*ExampleDBModel) GetMapStringString ¶
func (m *ExampleDBModel) GetMapStringString() map[string]string
func (*ExampleDBModel) GetNullKey ¶
func (m *ExampleDBModel) GetNullKey() _struct.NullValue
func (*ExampleDBModel) GetStringArrayKey ¶
func (m *ExampleDBModel) GetStringArrayKey() []string
func (*ExampleDBModel) GetStringKey ¶
func (m *ExampleDBModel) GetStringKey() string
func (*ExampleDBModel) GetStructKey ¶
func (m *ExampleDBModel) GetStructKey() *_struct.Struct
func (*ExampleDBModel) GetTimestampKey ¶
func (m *ExampleDBModel) GetTimestampKey() *timestamp.Timestamp
func (*ExampleDBModel) ProtoMessage ¶
func (*ExampleDBModel) ProtoMessage()
func (*ExampleDBModel) Reset ¶
func (m *ExampleDBModel) Reset()
func (*ExampleDBModel) String ¶
func (m *ExampleDBModel) String() string
func (*ExampleDBModel) XXX_DiscardUnknown ¶
func (m *ExampleDBModel) XXX_DiscardUnknown()
func (*ExampleDBModel) XXX_Marshal ¶
func (m *ExampleDBModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleDBModel) XXX_Merge ¶
func (m *ExampleDBModel) XXX_Merge(src proto.Message)
func (*ExampleDBModel) XXX_Size ¶
func (m *ExampleDBModel) XXX_Size() int
func (*ExampleDBModel) XXX_Unmarshal ¶
func (m *ExampleDBModel) XXX_Unmarshal(b []byte) error
type ExampleDBModelWithKey ¶
type ExampleDBModelWithKey struct { // Special field which is used for constructing a primary key // // Actual key is composed of the following components: // // - namespace_id - this is inferred from the client object passed to the // "model_pb_with_key_to_entity_pb" function // - project_id - this is inferred from the client object passed to the // "model_pb_with_key_to_entity_pb" function // - key - string value which uniquely identifies this object. This value is specified by // setting the "key" string field on this object Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` StringKey string `protobuf:"bytes,2,opt,name=string_key,json=stringKey,proto3" json:"string_key,omitempty"` Int32Key int32 `protobuf:"varint,3,opt,name=int32_key,json=int32Key,proto3" json:"int32_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExampleDBModelWithKey) Descriptor ¶
func (*ExampleDBModelWithKey) Descriptor() ([]byte, []int)
func (*ExampleDBModelWithKey) GetInt32Key ¶
func (m *ExampleDBModelWithKey) GetInt32Key() int32
func (*ExampleDBModelWithKey) GetKey ¶
func (m *ExampleDBModelWithKey) GetKey() string
func (*ExampleDBModelWithKey) GetStringKey ¶
func (m *ExampleDBModelWithKey) GetStringKey() string
func (*ExampleDBModelWithKey) ProtoMessage ¶
func (*ExampleDBModelWithKey) ProtoMessage()
func (*ExampleDBModelWithKey) Reset ¶
func (m *ExampleDBModelWithKey) Reset()
func (*ExampleDBModelWithKey) String ¶
func (m *ExampleDBModelWithKey) String() string
func (*ExampleDBModelWithKey) XXX_DiscardUnknown ¶
func (m *ExampleDBModelWithKey) XXX_DiscardUnknown()
func (*ExampleDBModelWithKey) XXX_Marshal ¶
func (m *ExampleDBModelWithKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleDBModelWithKey) XXX_Merge ¶
func (m *ExampleDBModelWithKey) XXX_Merge(src proto.Message)
func (*ExampleDBModelWithKey) XXX_Size ¶
func (m *ExampleDBModelWithKey) XXX_Size() int
func (*ExampleDBModelWithKey) XXX_Unmarshal ¶
func (m *ExampleDBModelWithKey) XXX_Unmarshal(b []byte) error
type ExampleEnumModel ¶
type ExampleEnumModel int32
const ( ExampleEnumModel_ENUM0 ExampleEnumModel = 0 ExampleEnumModel_ENUM1 ExampleEnumModel = 1 ExampleEnumModel_ENUM2 ExampleEnumModel = 2 )
func (ExampleEnumModel) EnumDescriptor ¶
func (ExampleEnumModel) EnumDescriptor() ([]byte, []int)
func (ExampleEnumModel) String ¶
func (x ExampleEnumModel) String() string
type ExampleNestedModel ¶
type ExampleNestedModel struct { StringKey string `protobuf:"bytes,1,opt,name=string_key,json=stringKey,proto3" json:"string_key,omitempty"` Int32Key int32 `protobuf:"varint,2,opt,name=int32_key,json=int32Key,proto3" json:"int32_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExampleNestedModel) Descriptor ¶
func (*ExampleNestedModel) Descriptor() ([]byte, []int)
func (*ExampleNestedModel) GetInt32Key ¶
func (m *ExampleNestedModel) GetInt32Key() int32
func (*ExampleNestedModel) GetStringKey ¶
func (m *ExampleNestedModel) GetStringKey() string
func (*ExampleNestedModel) ProtoMessage ¶
func (*ExampleNestedModel) ProtoMessage()
func (*ExampleNestedModel) Reset ¶
func (m *ExampleNestedModel) Reset()
func (*ExampleNestedModel) String ¶
func (m *ExampleNestedModel) String() string
func (*ExampleNestedModel) XXX_DiscardUnknown ¶
func (m *ExampleNestedModel) XXX_DiscardUnknown()
func (*ExampleNestedModel) XXX_Marshal ¶
func (m *ExampleNestedModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleNestedModel) XXX_Merge ¶
func (m *ExampleNestedModel) XXX_Merge(src proto.Message)
func (*ExampleNestedModel) XXX_Size ¶
func (m *ExampleNestedModel) XXX_Size() int
func (*ExampleNestedModel) XXX_Unmarshal ¶
func (m *ExampleNestedModel) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.