Documentation
¶
Index ¶
- Variables
- type MatrixUint64
- func (*MatrixUint64) Descriptor() ([]byte, []int)deprecated
- func (x *MatrixUint64) GetData() []uint64
- func (x *MatrixUint64) GetNCols() uint64
- func (*MatrixUint64) ProtoMessage()
- func (x *MatrixUint64) ProtoReflect() protoreflect.Message
- func (x *MatrixUint64) Reset()
- func (x *MatrixUint64) String() string
- type TestProto
- func (*TestProto) Descriptor() ([]byte, []int)deprecated
- func (x *TestProto) GetBoolOneof() bool
- func (x *TestProto) GetId() string
- func (x *TestProto) GetImageBytes() []byte
- func (x *TestProto) GetMessage() string
- func (x *TestProto) GetMessageOneof() *TestProto2
- func (m *TestProto) GetOneOfField() isTestProto_OneOfField
- func (x *TestProto) GetStringOneof() string
- func (x *TestProto) GetValue() float64
- func (*TestProto) ProtoMessage()
- func (x *TestProto) ProtoReflect() protoreflect.Message
- func (x *TestProto) Reset()
- func (x *TestProto) String() string
- type TestProto2
- type TestProto_BoolOneof
- type TestProto_MessageOneof
- type TestProto_StringOneof
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // If True then we will return this field with it's zero value even if not set. // This means in json responses empty lists will appear instead of not being returned (which is // the default convention for proto3). For int's we will show 0, for floats 0.0, etc. // // optional bool cl_show_if_empty = 50000; E_ClShowIfEmpty = &file_proto_clarifai_api_utils_extensions_proto_extTypes[0] E_ClMoretags = &file_proto_clarifai_api_utils_extensions_proto_extTypes[1] // For float fields where this is set, this value will be used by the server when parsing the // request and the field is not present in the request. If the field is present in the request, // then the value of the field will be used instead. This is ONLY used for json requests as binary // proto requests are expected to always set the field. // // optional float cl_default_float = 50010; E_ClDefaultFloat = &file_proto_clarifai_api_utils_extensions_proto_extTypes[2] )
Extension fields to descriptorpb.FieldOptions.
View Source
var ( // A description of the enum value. // // optional string description = 1000; E_Description = &file_proto_clarifai_api_utils_extensions_proto_extTypes[3] )
Extension fields to descriptorpb.EnumValueOptions.
View Source
var File_proto_clarifai_api_utils_extensions_proto protoreflect.FileDescriptor
View Source
var File_proto_clarifai_api_utils_matrix_proto protoreflect.FileDescriptor
View Source
var File_proto_clarifai_api_utils_test_proto_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MatrixUint64 ¶
type MatrixUint64 struct { // Number of columns NCols uint64 `protobuf:"varint,1,opt,name=n_cols,json=nCols,proto3" json:"n_cols,omitempty"` // Matrix data stored as an array. // In order to access matrix element at row i & column j, use data[i*n_cols+j]. Data []uint64 `protobuf:"varint,2,rep,packed,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Store matrix of uint64s values. It is recommended to store the matrix as a 1D array because it produces less bytes during serialization than a 2D array. The matrix does store the number of columns, but it does not store the number of rows. The number of rows can automatically be calculated as length(data)/n_cols.
func (*MatrixUint64) Descriptor
deprecated
func (*MatrixUint64) Descriptor() ([]byte, []int)
Deprecated: Use MatrixUint64.ProtoReflect.Descriptor instead.
func (*MatrixUint64) GetData ¶
func (x *MatrixUint64) GetData() []uint64
func (*MatrixUint64) GetNCols ¶
func (x *MatrixUint64) GetNCols() uint64
func (*MatrixUint64) ProtoMessage ¶
func (*MatrixUint64) ProtoMessage()
func (*MatrixUint64) ProtoReflect ¶
func (x *MatrixUint64) ProtoReflect() protoreflect.Message
func (*MatrixUint64) Reset ¶
func (x *MatrixUint64) Reset()
func (*MatrixUint64) String ¶
func (x *MatrixUint64) String() string
type TestProto ¶
type TestProto struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` ImageBytes []byte `protobuf:"bytes,4,opt,name=image_bytes,json=imageBytes,proto3" json:"image_bytes,omitempty"` // Types that are assignable to OneOfField: // // *TestProto_StringOneof // *TestProto_BoolOneof // *TestProto_MessageOneof OneOfField isTestProto_OneOfField `protobuf_oneof:"one_of_field"` // contains filtered or unexported fields }
func (*TestProto) Descriptor
deprecated
func (*TestProto) GetBoolOneof ¶
func (*TestProto) GetImageBytes ¶
func (*TestProto) GetMessage ¶
func (*TestProto) GetMessageOneof ¶
func (x *TestProto) GetMessageOneof() *TestProto2
func (*TestProto) GetOneOfField ¶
func (m *TestProto) GetOneOfField() isTestProto_OneOfField
func (*TestProto) GetStringOneof ¶
func (*TestProto) ProtoMessage ¶
func (*TestProto) ProtoMessage()
func (*TestProto) ProtoReflect ¶
func (x *TestProto) ProtoReflect() protoreflect.Message
type TestProto2 ¶
type TestProto2 struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Flip bool `protobuf:"varint,2,opt,name=flip,proto3" json:"flip,omitempty"` // contains filtered or unexported fields }
func (*TestProto2) Descriptor
deprecated
func (*TestProto2) Descriptor() ([]byte, []int)
Deprecated: Use TestProto2.ProtoReflect.Descriptor instead.
func (*TestProto2) GetFlip ¶
func (x *TestProto2) GetFlip() bool
func (*TestProto2) GetId ¶
func (x *TestProto2) GetId() string
func (*TestProto2) ProtoMessage ¶
func (*TestProto2) ProtoMessage()
func (*TestProto2) ProtoReflect ¶
func (x *TestProto2) ProtoReflect() protoreflect.Message
func (*TestProto2) Reset ¶
func (x *TestProto2) Reset()
func (*TestProto2) String ¶
func (x *TestProto2) String() string
type TestProto_BoolOneof ¶
type TestProto_BoolOneof struct {
BoolOneof bool `protobuf:"varint,6,opt,name=bool_oneof,json=boolOneof,proto3,oneof"`
}
type TestProto_MessageOneof ¶
type TestProto_MessageOneof struct {
MessageOneof *TestProto2 `protobuf:"bytes,7,opt,name=message_oneof,json=messageOneof,proto3,oneof"`
}
type TestProto_StringOneof ¶
type TestProto_StringOneof struct {
StringOneof string `protobuf:"bytes,5,opt,name=string_oneof,json=stringOneof,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.