|
- // 使用的语法版本
-
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.30.0
- // protoc v4.22.3
- // source: pkgs/grpc/agent/agent.proto
-
- package agent
-
- import (
- 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)
- )
-
- type StreamDataPacketType int32
-
- const (
- StreamDataPacketType_EOF StreamDataPacketType = 0
- StreamDataPacketType_Data StreamDataPacketType = 1
- StreamDataPacketType_SendArgs StreamDataPacketType = 2
- )
-
- // Enum value maps for StreamDataPacketType.
- var (
- StreamDataPacketType_name = map[int32]string{
- 0: "EOF",
- 1: "Data",
- 2: "SendArgs",
- }
- StreamDataPacketType_value = map[string]int32{
- "EOF": 0,
- "Data": 1,
- "SendArgs": 2,
- }
- )
-
- func (x StreamDataPacketType) Enum() *StreamDataPacketType {
- p := new(StreamDataPacketType)
- *p = x
- return p
- }
-
- func (x StreamDataPacketType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
-
- func (StreamDataPacketType) Descriptor() protoreflect.EnumDescriptor {
- return file_pkgs_grpc_agent_agent_proto_enumTypes[0].Descriptor()
- }
-
- func (StreamDataPacketType) Type() protoreflect.EnumType {
- return &file_pkgs_grpc_agent_agent_proto_enumTypes[0]
- }
-
- func (x StreamDataPacketType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
-
- // Deprecated: Use StreamDataPacketType.Descriptor instead.
- func (StreamDataPacketType) EnumDescriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{0}
- }
-
- // 文件数据。注意:只在Type为Data的时候,Data字段才能有数据
- type FileDataPacket struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Type StreamDataPacketType `protobuf:"varint,1,opt,name=Type,proto3,enum=StreamDataPacketType" json:"Type,omitempty"`
- Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
- }
-
- func (x *FileDataPacket) Reset() {
- *x = FileDataPacket{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *FileDataPacket) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*FileDataPacket) ProtoMessage() {}
-
- func (x *FileDataPacket) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 FileDataPacket.ProtoReflect.Descriptor instead.
- func (*FileDataPacket) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{0}
- }
-
- func (x *FileDataPacket) GetType() StreamDataPacketType {
- if x != nil {
- return x.Type
- }
- return StreamDataPacketType_EOF
- }
-
- func (x *FileDataPacket) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
-
- type SendIPFSFileResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- FileHash string `protobuf:"bytes,1,opt,name=FileHash,proto3" json:"FileHash,omitempty"`
- }
-
- func (x *SendIPFSFileResp) Reset() {
- *x = SendIPFSFileResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SendIPFSFileResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SendIPFSFileResp) ProtoMessage() {}
-
- func (x *SendIPFSFileResp) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 SendIPFSFileResp.ProtoReflect.Descriptor instead.
- func (*SendIPFSFileResp) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{1}
- }
-
- func (x *SendIPFSFileResp) GetFileHash() string {
- if x != nil {
- return x.FileHash
- }
- return ""
- }
-
- type GetIPFSFileReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- FileHash string `protobuf:"bytes,1,opt,name=FileHash,proto3" json:"FileHash,omitempty"`
- }
-
- func (x *GetIPFSFileReq) Reset() {
- *x = GetIPFSFileReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *GetIPFSFileReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*GetIPFSFileReq) ProtoMessage() {}
-
- func (x *GetIPFSFileReq) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 GetIPFSFileReq.ProtoReflect.Descriptor instead.
- func (*GetIPFSFileReq) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{2}
- }
-
- func (x *GetIPFSFileReq) GetFileHash() string {
- if x != nil {
- return x.FileHash
- }
- return ""
- }
-
- // 注:EOF时data也可能有数据
- type StreamDataPacket struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Type StreamDataPacketType `protobuf:"varint,1,opt,name=Type,proto3,enum=StreamDataPacketType" json:"Type,omitempty"`
- PlanID string `protobuf:"bytes,2,opt,name=PlanID,proto3" json:"PlanID,omitempty"`
- StreamID string `protobuf:"bytes,3,opt,name=StreamID,proto3" json:"StreamID,omitempty"`
- Data []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"`
- }
-
- func (x *StreamDataPacket) Reset() {
- *x = StreamDataPacket{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *StreamDataPacket) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*StreamDataPacket) ProtoMessage() {}
-
- func (x *StreamDataPacket) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 StreamDataPacket.ProtoReflect.Descriptor instead.
- func (*StreamDataPacket) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{3}
- }
-
- func (x *StreamDataPacket) GetType() StreamDataPacketType {
- if x != nil {
- return x.Type
- }
- return StreamDataPacketType_EOF
- }
-
- func (x *StreamDataPacket) GetPlanID() string {
- if x != nil {
- return x.PlanID
- }
- return ""
- }
-
- func (x *StreamDataPacket) GetStreamID() string {
- if x != nil {
- return x.StreamID
- }
- return ""
- }
-
- func (x *StreamDataPacket) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
-
- type SendStreamResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
-
- func (x *SendStreamResp) Reset() {
- *x = SendStreamResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SendStreamResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SendStreamResp) ProtoMessage() {}
-
- func (x *SendStreamResp) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 SendStreamResp.ProtoReflect.Descriptor instead.
- func (*SendStreamResp) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{4}
- }
-
- type FetchStreamReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- PlanID string `protobuf:"bytes,1,opt,name=PlanID,proto3" json:"PlanID,omitempty"`
- StreamID string `protobuf:"bytes,2,opt,name=StreamID,proto3" json:"StreamID,omitempty"`
- }
-
- func (x *FetchStreamReq) Reset() {
- *x = FetchStreamReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *FetchStreamReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*FetchStreamReq) ProtoMessage() {}
-
- func (x *FetchStreamReq) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 FetchStreamReq.ProtoReflect.Descriptor instead.
- func (*FetchStreamReq) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{5}
- }
-
- func (x *FetchStreamReq) GetPlanID() string {
- if x != nil {
- return x.PlanID
- }
- return ""
- }
-
- func (x *FetchStreamReq) GetStreamID() string {
- if x != nil {
- return x.StreamID
- }
- return ""
- }
-
- type PingReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
-
- func (x *PingReq) Reset() {
- *x = PingReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *PingReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*PingReq) ProtoMessage() {}
-
- func (x *PingReq) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 PingReq.ProtoReflect.Descriptor instead.
- func (*PingReq) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{6}
- }
-
- type PingResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
-
- func (x *PingResp) Reset() {
- *x = PingResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_grpc_agent_agent_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *PingResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*PingResp) ProtoMessage() {}
-
- func (x *PingResp) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_grpc_agent_agent_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 PingResp.ProtoReflect.Descriptor instead.
- func (*PingResp) Descriptor() ([]byte, []int) {
- return file_pkgs_grpc_agent_agent_proto_rawDescGZIP(), []int{7}
- }
-
- var File_pkgs_grpc_agent_agent_proto protoreflect.FileDescriptor
-
- var file_pkgs_grpc_agent_agent_proto_rawDesc = []byte{
- 0x0a, 0x1b, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x67, 0x65, 0x6e,
- 0x74, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a,
- 0x0e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12,
- 0x29, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
- 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74,
- 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61,
- 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x2e,
- 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x50, 0x46, 0x53, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
- 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x61, 0x73, 0x68, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x61, 0x73, 0x68, 0x22, 0x2c,
- 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x49, 0x50, 0x46, 0x53, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71,
- 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x61, 0x73, 0x68, 0x22, 0x85, 0x01, 0x0a,
- 0x10, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65,
- 0x74, 0x12, 0x29, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
- 0x15, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b,
- 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
- 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x50, 0x6c,
- 0x61, 0x6e, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x44,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x44,
- 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
- 0x44, 0x61, 0x74, 0x61, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x65,
- 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x22, 0x44, 0x0a, 0x0e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x53,
- 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x6c, 0x61, 0x6e,
- 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x44,
- 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x08, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x44, 0x22, 0x09, 0x0a, 0x07,
- 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x22, 0x0a, 0x0a, 0x08, 0x50, 0x69, 0x6e, 0x67, 0x52,
- 0x65, 0x73, 0x70, 0x2a, 0x37, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x61, 0x74,
- 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x45,
- 0x4f, 0x46, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x10, 0x01, 0x12, 0x0c,
- 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x72, 0x67, 0x73, 0x10, 0x02, 0x32, 0x80, 0x02, 0x0a,
- 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x50,
- 0x46, 0x53, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x61, 0x74,
- 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x11, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x50,
- 0x46, 0x53, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x28, 0x01, 0x12, 0x33,
- 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x50, 0x46, 0x53, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0f, 0x2e,
- 0x47, 0x65, 0x74, 0x49, 0x50, 0x46, 0x53, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f,
- 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22,
- 0x00, 0x30, 0x01, 0x12, 0x34, 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61,
- 0x6d, 0x12, 0x11, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61,
- 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x0f, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61,
- 0x6d, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x28, 0x01, 0x12, 0x35, 0x0a, 0x0b, 0x46, 0x65, 0x74,
- 0x63, 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x0f, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68,
- 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x53, 0x74, 0x72, 0x65,
- 0x61, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x00, 0x30, 0x01,
- 0x12, 0x1d, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x08, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52,
- 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42,
- 0x09, 0x5a, 0x07, 0x2e, 0x3b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
- }
-
- var (
- file_pkgs_grpc_agent_agent_proto_rawDescOnce sync.Once
- file_pkgs_grpc_agent_agent_proto_rawDescData = file_pkgs_grpc_agent_agent_proto_rawDesc
- )
-
- func file_pkgs_grpc_agent_agent_proto_rawDescGZIP() []byte {
- file_pkgs_grpc_agent_agent_proto_rawDescOnce.Do(func() {
- file_pkgs_grpc_agent_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkgs_grpc_agent_agent_proto_rawDescData)
- })
- return file_pkgs_grpc_agent_agent_proto_rawDescData
- }
-
- var file_pkgs_grpc_agent_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_pkgs_grpc_agent_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
- var file_pkgs_grpc_agent_agent_proto_goTypes = []interface{}{
- (StreamDataPacketType)(0), // 0: StreamDataPacketType
- (*FileDataPacket)(nil), // 1: FileDataPacket
- (*SendIPFSFileResp)(nil), // 2: SendIPFSFileResp
- (*GetIPFSFileReq)(nil), // 3: GetIPFSFileReq
- (*StreamDataPacket)(nil), // 4: StreamDataPacket
- (*SendStreamResp)(nil), // 5: SendStreamResp
- (*FetchStreamReq)(nil), // 6: FetchStreamReq
- (*PingReq)(nil), // 7: PingReq
- (*PingResp)(nil), // 8: PingResp
- }
- var file_pkgs_grpc_agent_agent_proto_depIdxs = []int32{
- 0, // 0: FileDataPacket.Type:type_name -> StreamDataPacketType
- 0, // 1: StreamDataPacket.Type:type_name -> StreamDataPacketType
- 1, // 2: Agent.SendIPFSFile:input_type -> FileDataPacket
- 3, // 3: Agent.GetIPFSFile:input_type -> GetIPFSFileReq
- 4, // 4: Agent.SendStream:input_type -> StreamDataPacket
- 6, // 5: Agent.FetchStream:input_type -> FetchStreamReq
- 7, // 6: Agent.Ping:input_type -> PingReq
- 2, // 7: Agent.SendIPFSFile:output_type -> SendIPFSFileResp
- 1, // 8: Agent.GetIPFSFile:output_type -> FileDataPacket
- 5, // 9: Agent.SendStream:output_type -> SendStreamResp
- 4, // 10: Agent.FetchStream:output_type -> StreamDataPacket
- 8, // 11: Agent.Ping:output_type -> PingResp
- 7, // [7:12] is the sub-list for method output_type
- 2, // [2:7] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
-
- func init() { file_pkgs_grpc_agent_agent_proto_init() }
- func file_pkgs_grpc_agent_agent_proto_init() {
- if File_pkgs_grpc_agent_agent_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_pkgs_grpc_agent_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FileDataPacket); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SendIPFSFileResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetIPFSFileReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*StreamDataPacket); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SendStreamResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FetchStreamReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PingReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_grpc_agent_agent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PingResp); 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_pkgs_grpc_agent_agent_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 8,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_pkgs_grpc_agent_agent_proto_goTypes,
- DependencyIndexes: file_pkgs_grpc_agent_agent_proto_depIdxs,
- EnumInfos: file_pkgs_grpc_agent_agent_proto_enumTypes,
- MessageInfos: file_pkgs_grpc_agent_agent_proto_msgTypes,
- }.Build()
- File_pkgs_grpc_agent_agent_proto = out.File
- file_pkgs_grpc_agent_agent_proto_rawDesc = nil
- file_pkgs_grpc_agent_agent_proto_goTypes = nil
- file_pkgs_grpc_agent_agent_proto_depIdxs = nil
- }
|