1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.23.0-devel
- // protoc v3.13.0
- // source: datahub.proto
- package pbmodel
- import (
- proto "github.com/golang/protobuf/proto"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- type StringPair struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
- Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
- }
- func (x *StringPair) Reset() {
- *x = StringPair{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *StringPair) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*StringPair) ProtoMessage() {}
- func (x *StringPair) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use StringPair.ProtoReflect.Descriptor instead.
- func (*StringPair) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{0}
- }
- func (x *StringPair) GetKey() string {
- if x != nil && x.Key != nil {
- return *x.Key
- }
- return ""
- }
- func (x *StringPair) GetValue() string {
- if x != nil && x.Value != nil {
- return *x.Value
- }
- return ""
- }
- type FieldData struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
- }
- func (x *FieldData) Reset() {
- *x = FieldData{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FieldData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FieldData) ProtoMessage() {}
- func (x *FieldData) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FieldData.ProtoReflect.Descriptor instead.
- func (*FieldData) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{1}
- }
- func (x *FieldData) GetValue() []byte {
- if x != nil {
- return x.Value
- }
- return nil
- }
- type RecordAttributes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Attributes []*StringPair `protobuf:"bytes,1,rep,name=attributes" json:"attributes,omitempty"`
- }
- func (x *RecordAttributes) Reset() {
- *x = RecordAttributes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RecordAttributes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecordAttributes) ProtoMessage() {}
- func (x *RecordAttributes) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RecordAttributes.ProtoReflect.Descriptor instead.
- func (*RecordAttributes) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{2}
- }
- func (x *RecordAttributes) GetAttributes() []*StringPair {
- if x != nil {
- return x.Attributes
- }
- return nil
- }
- type RecordData struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Data []*FieldData `protobuf:"bytes,1,rep,name=data" json:"data,omitempty"`
- }
- func (x *RecordData) Reset() {
- *x = RecordData{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RecordData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecordData) ProtoMessage() {}
- func (x *RecordData) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RecordData.ProtoReflect.Descriptor instead.
- func (*RecordData) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{3}
- }
- func (x *RecordData) GetData() []*FieldData {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type RecordEntry struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ShardId *string `protobuf:"bytes,1,opt,name=shard_id,json=shardId" json:"shard_id,omitempty"`
- HashKey *string `protobuf:"bytes,2,opt,name=hash_key,json=hashKey" json:"hash_key,omitempty"`
- PartitionKey *string `protobuf:"bytes,3,opt,name=partition_key,json=partitionKey" json:"partition_key,omitempty"`
- Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
- NextCursor *string `protobuf:"bytes,5,opt,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
- Sequence *int64 `protobuf:"varint,6,opt,name=sequence" json:"sequence,omitempty"`
- SystemTime *int64 `protobuf:"varint,7,opt,name=system_time,json=systemTime" json:"system_time,omitempty"`
- Attributes *RecordAttributes `protobuf:"bytes,8,opt,name=attributes" json:"attributes,omitempty"`
- Data *RecordData `protobuf:"bytes,9,req,name=data" json:"data,omitempty"`
- }
- func (x *RecordEntry) Reset() {
- *x = RecordEntry{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RecordEntry) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecordEntry) ProtoMessage() {}
- func (x *RecordEntry) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RecordEntry.ProtoReflect.Descriptor instead.
- func (*RecordEntry) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{4}
- }
- func (x *RecordEntry) GetShardId() string {
- if x != nil && x.ShardId != nil {
- return *x.ShardId
- }
- return ""
- }
- func (x *RecordEntry) GetHashKey() string {
- if x != nil && x.HashKey != nil {
- return *x.HashKey
- }
- return ""
- }
- func (x *RecordEntry) GetPartitionKey() string {
- if x != nil && x.PartitionKey != nil {
- return *x.PartitionKey
- }
- return ""
- }
- func (x *RecordEntry) GetCursor() string {
- if x != nil && x.Cursor != nil {
- return *x.Cursor
- }
- return ""
- }
- func (x *RecordEntry) GetNextCursor() string {
- if x != nil && x.NextCursor != nil {
- return *x.NextCursor
- }
- return ""
- }
- func (x *RecordEntry) GetSequence() int64 {
- if x != nil && x.Sequence != nil {
- return *x.Sequence
- }
- return 0
- }
- func (x *RecordEntry) GetSystemTime() int64 {
- if x != nil && x.SystemTime != nil {
- return *x.SystemTime
- }
- return 0
- }
- func (x *RecordEntry) GetAttributes() *RecordAttributes {
- if x != nil {
- return x.Attributes
- }
- return nil
- }
- func (x *RecordEntry) GetData() *RecordData {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type PutRecordsRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Records []*RecordEntry `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
- }
- func (x *PutRecordsRequest) Reset() {
- *x = PutRecordsRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PutRecordsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PutRecordsRequest) ProtoMessage() {}
- func (x *PutRecordsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use PutRecordsRequest.ProtoReflect.Descriptor instead.
- func (*PutRecordsRequest) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{5}
- }
- func (x *PutRecordsRequest) GetRecords() []*RecordEntry {
- if x != nil {
- return x.Records
- }
- return nil
- }
- type FailedRecord struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Index *int32 `protobuf:"varint,1,req,name=index" json:"index,omitempty"`
- ErrorCode *string `protobuf:"bytes,2,opt,name=error_code,json=errorCode" json:"error_code,omitempty"`
- ErrorMessage *string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
- }
- func (x *FailedRecord) Reset() {
- *x = FailedRecord{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FailedRecord) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FailedRecord) ProtoMessage() {}
- func (x *FailedRecord) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FailedRecord.ProtoReflect.Descriptor instead.
- func (*FailedRecord) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{6}
- }
- func (x *FailedRecord) GetIndex() int32 {
- if x != nil && x.Index != nil {
- return *x.Index
- }
- return 0
- }
- func (x *FailedRecord) GetErrorCode() string {
- if x != nil && x.ErrorCode != nil {
- return *x.ErrorCode
- }
- return ""
- }
- func (x *FailedRecord) GetErrorMessage() string {
- if x != nil && x.ErrorMessage != nil {
- return *x.ErrorMessage
- }
- return ""
- }
- type PutRecordsResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- FailedCount *int32 `protobuf:"varint,1,opt,name=failed_count,json=failedCount" json:"failed_count,omitempty"`
- FailedRecords []*FailedRecord `protobuf:"bytes,2,rep,name=failed_records,json=failedRecords" json:"failed_records,omitempty"`
- }
- func (x *PutRecordsResponse) Reset() {
- *x = PutRecordsResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PutRecordsResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PutRecordsResponse) ProtoMessage() {}
- func (x *PutRecordsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use PutRecordsResponse.ProtoReflect.Descriptor instead.
- func (*PutRecordsResponse) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{7}
- }
- func (x *PutRecordsResponse) GetFailedCount() int32 {
- if x != nil && x.FailedCount != nil {
- return *x.FailedCount
- }
- return 0
- }
- func (x *PutRecordsResponse) GetFailedRecords() []*FailedRecord {
- if x != nil {
- return x.FailedRecords
- }
- return nil
- }
- type GetRecordsRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Cursor *string `protobuf:"bytes,1,req,name=cursor" json:"cursor,omitempty"`
- Limit *int32 `protobuf:"varint,2,opt,name=limit,def=1" json:"limit,omitempty"`
- }
- // Default values for GetRecordsRequest fields.
- const (
- Default_GetRecordsRequest_Limit = int32(1)
- )
- func (x *GetRecordsRequest) Reset() {
- *x = GetRecordsRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetRecordsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetRecordsRequest) ProtoMessage() {}
- func (x *GetRecordsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetRecordsRequest.ProtoReflect.Descriptor instead.
- func (*GetRecordsRequest) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{8}
- }
- func (x *GetRecordsRequest) GetCursor() string {
- if x != nil && x.Cursor != nil {
- return *x.Cursor
- }
- return ""
- }
- func (x *GetRecordsRequest) GetLimit() int32 {
- if x != nil && x.Limit != nil {
- return *x.Limit
- }
- return Default_GetRecordsRequest_Limit
- }
- type GetRecordsResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- NextCursor *string `protobuf:"bytes,1,req,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
- RecordCount *int32 `protobuf:"varint,2,req,name=record_count,json=recordCount" json:"record_count,omitempty"`
- StartSequence *int64 `protobuf:"varint,3,opt,name=start_sequence,json=startSequence" json:"start_sequence,omitempty"`
- Records []*RecordEntry `protobuf:"bytes,4,rep,name=records" json:"records,omitempty"`
- LatestSequence *int64 `protobuf:"varint,5,opt,name=latest_sequence,json=latestSequence,def=-1" json:"latest_sequence,omitempty"`
- LatestTime *int64 `protobuf:"varint,6,opt,name=latest_time,json=latestTime,def=-1" json:"latest_time,omitempty"`
- }
- // Default values for GetRecordsResponse fields.
- const (
- Default_GetRecordsResponse_LatestSequence = int64(-1)
- Default_GetRecordsResponse_LatestTime = int64(-1)
- )
- func (x *GetRecordsResponse) Reset() {
- *x = GetRecordsResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetRecordsResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetRecordsResponse) ProtoMessage() {}
- func (x *GetRecordsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetRecordsResponse.ProtoReflect.Descriptor instead.
- func (*GetRecordsResponse) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{9}
- }
- func (x *GetRecordsResponse) GetNextCursor() string {
- if x != nil && x.NextCursor != nil {
- return *x.NextCursor
- }
- return ""
- }
- func (x *GetRecordsResponse) GetRecordCount() int32 {
- if x != nil && x.RecordCount != nil {
- return *x.RecordCount
- }
- return 0
- }
- func (x *GetRecordsResponse) GetStartSequence() int64 {
- if x != nil && x.StartSequence != nil {
- return *x.StartSequence
- }
- return 0
- }
- func (x *GetRecordsResponse) GetRecords() []*RecordEntry {
- if x != nil {
- return x.Records
- }
- return nil
- }
- func (x *GetRecordsResponse) GetLatestSequence() int64 {
- if x != nil && x.LatestSequence != nil {
- return *x.LatestSequence
- }
- return Default_GetRecordsResponse_LatestSequence
- }
- func (x *GetRecordsResponse) GetLatestTime() int64 {
- if x != nil && x.LatestTime != nil {
- return *x.LatestTime
- }
- return Default_GetRecordsResponse_LatestTime
- }
- type BinaryRecordEntry struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Cursor *string `protobuf:"bytes,1,opt,name=cursor" json:"cursor,omitempty"`
- NextCursor *string `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
- Sequence *int64 `protobuf:"varint,3,opt,name=sequence" json:"sequence,omitempty"`
- SystemTime *int64 `protobuf:"varint,4,opt,name=system_time,json=systemTime" json:"system_time,omitempty"`
- Serial *uint32 `protobuf:"varint,5,opt,name=serial,def=0" json:"serial,omitempty"`
- Data []byte `protobuf:"bytes,6,opt,name=data" json:"data,omitempty"`
- }
- // Default values for BinaryRecordEntry fields.
- const (
- Default_BinaryRecordEntry_Serial = uint32(0)
- )
- func (x *BinaryRecordEntry) Reset() {
- *x = BinaryRecordEntry{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *BinaryRecordEntry) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*BinaryRecordEntry) ProtoMessage() {}
- func (x *BinaryRecordEntry) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use BinaryRecordEntry.ProtoReflect.Descriptor instead.
- func (*BinaryRecordEntry) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{10}
- }
- func (x *BinaryRecordEntry) GetCursor() string {
- if x != nil && x.Cursor != nil {
- return *x.Cursor
- }
- return ""
- }
- func (x *BinaryRecordEntry) GetNextCursor() string {
- if x != nil && x.NextCursor != nil {
- return *x.NextCursor
- }
- return ""
- }
- func (x *BinaryRecordEntry) GetSequence() int64 {
- if x != nil && x.Sequence != nil {
- return *x.Sequence
- }
- return 0
- }
- func (x *BinaryRecordEntry) GetSystemTime() int64 {
- if x != nil && x.SystemTime != nil {
- return *x.SystemTime
- }
- return 0
- }
- func (x *BinaryRecordEntry) GetSerial() uint32 {
- if x != nil && x.Serial != nil {
- return *x.Serial
- }
- return Default_BinaryRecordEntry_Serial
- }
- func (x *BinaryRecordEntry) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type PutBinaryRecordsRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Records []*BinaryRecordEntry `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
- }
- func (x *PutBinaryRecordsRequest) Reset() {
- *x = PutBinaryRecordsRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PutBinaryRecordsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PutBinaryRecordsRequest) ProtoMessage() {}
- func (x *PutBinaryRecordsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[11]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use PutBinaryRecordsRequest.ProtoReflect.Descriptor instead.
- func (*PutBinaryRecordsRequest) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{11}
- }
- func (x *PutBinaryRecordsRequest) GetRecords() []*BinaryRecordEntry {
- if x != nil {
- return x.Records
- }
- return nil
- }
- type GetBinaryRecordsResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- NextCursor *string `protobuf:"bytes,1,req,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
- RecordCount *int32 `protobuf:"varint,2,req,name=record_count,json=recordCount" json:"record_count,omitempty"`
- StartSequence *int64 `protobuf:"varint,3,opt,name=start_sequence,json=startSequence" json:"start_sequence,omitempty"`
- Records []*BinaryRecordEntry `protobuf:"bytes,4,rep,name=records" json:"records,omitempty"`
- LatestSequence *int64 `protobuf:"varint,5,opt,name=latest_sequence,json=latestSequence,def=-1" json:"latest_sequence,omitempty"`
- LatestTime *int64 `protobuf:"varint,6,opt,name=latest_time,json=latestTime,def=-1" json:"latest_time,omitempty"`
- }
- // Default values for GetBinaryRecordsResponse fields.
- const (
- Default_GetBinaryRecordsResponse_LatestSequence = int64(-1)
- Default_GetBinaryRecordsResponse_LatestTime = int64(-1)
- )
- func (x *GetBinaryRecordsResponse) Reset() {
- *x = GetBinaryRecordsResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_datahub_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetBinaryRecordsResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetBinaryRecordsResponse) ProtoMessage() {}
- func (x *GetBinaryRecordsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_datahub_proto_msgTypes[12]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetBinaryRecordsResponse.ProtoReflect.Descriptor instead.
- func (*GetBinaryRecordsResponse) Descriptor() ([]byte, []int) {
- return file_datahub_proto_rawDescGZIP(), []int{12}
- }
- func (x *GetBinaryRecordsResponse) GetNextCursor() string {
- if x != nil && x.NextCursor != nil {
- return *x.NextCursor
- }
- return ""
- }
- func (x *GetBinaryRecordsResponse) GetRecordCount() int32 {
- if x != nil && x.RecordCount != nil {
- return *x.RecordCount
- }
- return 0
- }
- func (x *GetBinaryRecordsResponse) GetStartSequence() int64 {
- if x != nil && x.StartSequence != nil {
- return *x.StartSequence
- }
- return 0
- }
- func (x *GetBinaryRecordsResponse) GetRecords() []*BinaryRecordEntry {
- if x != nil {
- return x.Records
- }
- return nil
- }
- func (x *GetBinaryRecordsResponse) GetLatestSequence() int64 {
- if x != nil && x.LatestSequence != nil {
- return *x.LatestSequence
- }
- return Default_GetBinaryRecordsResponse_LatestSequence
- }
- func (x *GetBinaryRecordsResponse) GetLatestTime() int64 {
- if x != nil && x.LatestTime != nil {
- return *x.LatestTime
- }
- return Default_GetBinaryRecordsResponse_LatestTime
- }
- var File_datahub_proto protoreflect.FileDescriptor
- var file_datahub_proto_rawDesc = []byte{
- 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x68, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x07, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x34, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69,
- 0x6e, 0x67, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
- 0x02, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
- 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21,
- 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x76,
- 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
- 0x65, 0x22, 0x47, 0x0a, 0x10, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69,
- 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
- 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x6d, 0x6f,
- 0x64, 0x65, 0x6c, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a,
- 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x0a, 0x52, 0x65,
- 0x63, 0x6f, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
- 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
- 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
- 0x22, 0xc2, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79,
- 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x68,
- 0x61, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68,
- 0x61, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
- 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70,
- 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63,
- 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72,
- 0x73, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73,
- 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75,
- 0x72, 0x73, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
- 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18,
- 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e,
- 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73,
- 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x04,
- 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x6d,
- 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52,
- 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x43, 0x0a, 0x11, 0x50, 0x75, 0x74, 0x52, 0x65, 0x63, 0x6f,
- 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65,
- 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x62,
- 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72,
- 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x68, 0x0a, 0x0c, 0x46, 0x61,
- 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e,
- 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78,
- 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12,
- 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x22, 0x75, 0x0a, 0x12, 0x50, 0x75, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72,
- 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61,
- 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3c, 0x0a,
- 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18,
- 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e,
- 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x0d, 0x66, 0x61,
- 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x44, 0x0a, 0x11, 0x47,
- 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09,
- 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,
- 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x01, 0x31, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69,
- 0x74, 0x22, 0x81, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74,
- 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x0a, 0x6e,
- 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63,
- 0x6f, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x02, 0x28, 0x05, 0x52,
- 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e,
- 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65,
- 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x04,
- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x52,
- 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f,
- 0x72, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65,
- 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x2d, 0x31,
- 0x52, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
- 0x12, 0x23, 0x0a, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x73,
- 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x11, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79,
- 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63,
- 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72,
- 0x73, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73,
- 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75,
- 0x72, 0x73, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
- 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x19, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x0d, 0x3a, 0x01, 0x30, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04,
- 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
- 0x22, 0x4f, 0x0a, 0x17, 0x50, 0x75, 0x74, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x63,
- 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72,
- 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70,
- 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x63,
- 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
- 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52,
- 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f,
- 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20,
- 0x02, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12,
- 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
- 0x02, 0x20, 0x02, 0x28, 0x05, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x75,
- 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75,
- 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72,
- 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x63,
- 0x6f, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x6d,
- 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72,
- 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12,
- 0x2b, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
- 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x0e, 0x6c, 0x61,
- 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0b,
- 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x03, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d,
- 0x65, 0x42, 0x39, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6c, 0x69, 0x79, 0x75, 0x6e, 0x2e,
- 0x64, 0x61, 0x74, 0x61, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x6d,
- 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0d, 0x44,
- 0x61, 0x74, 0x61, 0x68, 0x75, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73,
- }
- var (
- file_datahub_proto_rawDescOnce sync.Once
- file_datahub_proto_rawDescData = file_datahub_proto_rawDesc
- )
- func file_datahub_proto_rawDescGZIP() []byte {
- file_datahub_proto_rawDescOnce.Do(func() {
- file_datahub_proto_rawDescData = protoimpl.X.CompressGZIP(file_datahub_proto_rawDescData)
- })
- return file_datahub_proto_rawDescData
- }
- var file_datahub_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
- var file_datahub_proto_goTypes = []interface{}{
- (*StringPair)(nil), // 0: pbmodel.StringPair
- (*FieldData)(nil), // 1: pbmodel.FieldData
- (*RecordAttributes)(nil), // 2: pbmodel.RecordAttributes
- (*RecordData)(nil), // 3: pbmodel.RecordData
- (*RecordEntry)(nil), // 4: pbmodel.RecordEntry
- (*PutRecordsRequest)(nil), // 5: pbmodel.PutRecordsRequest
- (*FailedRecord)(nil), // 6: pbmodel.FailedRecord
- (*PutRecordsResponse)(nil), // 7: pbmodel.PutRecordsResponse
- (*GetRecordsRequest)(nil), // 8: pbmodel.GetRecordsRequest
- (*GetRecordsResponse)(nil), // 9: pbmodel.GetRecordsResponse
- (*BinaryRecordEntry)(nil), // 10: pbmodel.BinaryRecordEntry
- (*PutBinaryRecordsRequest)(nil), // 11: pbmodel.PutBinaryRecordsRequest
- (*GetBinaryRecordsResponse)(nil), // 12: pbmodel.GetBinaryRecordsResponse
- }
- var file_datahub_proto_depIdxs = []int32{
- 0, // 0: pbmodel.RecordAttributes.attributes:type_name -> pbmodel.StringPair
- 1, // 1: pbmodel.RecordData.data:type_name -> pbmodel.FieldData
- 2, // 2: pbmodel.RecordEntry.attributes:type_name -> pbmodel.RecordAttributes
- 3, // 3: pbmodel.RecordEntry.data:type_name -> pbmodel.RecordData
- 4, // 4: pbmodel.PutRecordsRequest.records:type_name -> pbmodel.RecordEntry
- 6, // 5: pbmodel.PutRecordsResponse.failed_records:type_name -> pbmodel.FailedRecord
- 4, // 6: pbmodel.GetRecordsResponse.records:type_name -> pbmodel.RecordEntry
- 10, // 7: pbmodel.PutBinaryRecordsRequest.records:type_name -> pbmodel.BinaryRecordEntry
- 10, // 8: pbmodel.GetBinaryRecordsResponse.records:type_name -> pbmodel.BinaryRecordEntry
- 9, // [9:9] is the sub-list for method output_type
- 9, // [9:9] is the sub-list for method input_type
- 9, // [9:9] is the sub-list for extension type_name
- 9, // [9:9] is the sub-list for extension extendee
- 0, // [0:9] is the sub-list for field type_name
- }
- func init() { file_datahub_proto_init() }
- func file_datahub_proto_init() {
- if File_datahub_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_datahub_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*StringPair); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FieldData); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RecordAttributes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RecordData); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RecordEntry); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PutRecordsRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FailedRecord); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PutRecordsResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetRecordsRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetRecordsResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*BinaryRecordEntry); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PutBinaryRecordsRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_datahub_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetBinaryRecordsResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_datahub_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 13,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_datahub_proto_goTypes,
- DependencyIndexes: file_datahub_proto_depIdxs,
- MessageInfos: file_datahub_proto_msgTypes,
- }.Build()
- File_datahub_proto = out.File
- file_datahub_proto_rawDesc = nil
- file_datahub_proto_goTypes = nil
- file_datahub_proto_depIdxs = nil
- }
|