github.com/simpleiot/simpleiot@v0.18.3/internal/pb/file-chunk.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.21.12
     5  // source: file-chunk.proto
     6  
     7  package pb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type FileChunk_State int32
    24  
    25  const (
    26  	FileChunk_NONE  FileChunk_State = 0
    27  	FileChunk_DONE  FileChunk_State = 2
    28  	FileChunk_ERROR FileChunk_State = 3
    29  )
    30  
    31  // Enum value maps for FileChunk_State.
    32  var (
    33  	FileChunk_State_name = map[int32]string{
    34  		0: "NONE",
    35  		2: "DONE",
    36  		3: "ERROR",
    37  	}
    38  	FileChunk_State_value = map[string]int32{
    39  		"NONE":  0,
    40  		"DONE":  2,
    41  		"ERROR": 3,
    42  	}
    43  )
    44  
    45  func (x FileChunk_State) Enum() *FileChunk_State {
    46  	p := new(FileChunk_State)
    47  	*p = x
    48  	return p
    49  }
    50  
    51  func (x FileChunk_State) String() string {
    52  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    53  }
    54  
    55  func (FileChunk_State) Descriptor() protoreflect.EnumDescriptor {
    56  	return file_file_chunk_proto_enumTypes[0].Descriptor()
    57  }
    58  
    59  func (FileChunk_State) Type() protoreflect.EnumType {
    60  	return &file_file_chunk_proto_enumTypes[0]
    61  }
    62  
    63  func (x FileChunk_State) Number() protoreflect.EnumNumber {
    64  	return protoreflect.EnumNumber(x)
    65  }
    66  
    67  // Deprecated: Use FileChunk_State.Descriptor instead.
    68  func (FileChunk_State) EnumDescriptor() ([]byte, []int) {
    69  	return file_file_chunk_proto_rawDescGZIP(), []int{0, 0}
    70  }
    71  
    72  type FileChunk struct {
    73  	state         protoimpl.MessageState
    74  	sizeCache     protoimpl.SizeCache
    75  	unknownFields protoimpl.UnknownFields
    76  
    77  	State    FileChunk_State `protobuf:"varint,1,opt,name=state,proto3,enum=pb.FileChunk_State" json:"state,omitempty"`
    78  	Seq      int32           `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
    79  	Data     []byte          `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
    80  	FileName string          `protobuf:"bytes,4,opt,name=fileName,proto3" json:"fileName,omitempty"`
    81  }
    82  
    83  func (x *FileChunk) Reset() {
    84  	*x = FileChunk{}
    85  	if protoimpl.UnsafeEnabled {
    86  		mi := &file_file_chunk_proto_msgTypes[0]
    87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    88  		ms.StoreMessageInfo(mi)
    89  	}
    90  }
    91  
    92  func (x *FileChunk) String() string {
    93  	return protoimpl.X.MessageStringOf(x)
    94  }
    95  
    96  func (*FileChunk) ProtoMessage() {}
    97  
    98  func (x *FileChunk) ProtoReflect() protoreflect.Message {
    99  	mi := &file_file_chunk_proto_msgTypes[0]
   100  	if protoimpl.UnsafeEnabled && x != nil {
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		if ms.LoadMessageInfo() == nil {
   103  			ms.StoreMessageInfo(mi)
   104  		}
   105  		return ms
   106  	}
   107  	return mi.MessageOf(x)
   108  }
   109  
   110  // Deprecated: Use FileChunk.ProtoReflect.Descriptor instead.
   111  func (*FileChunk) Descriptor() ([]byte, []int) {
   112  	return file_file_chunk_proto_rawDescGZIP(), []int{0}
   113  }
   114  
   115  func (x *FileChunk) GetState() FileChunk_State {
   116  	if x != nil {
   117  		return x.State
   118  	}
   119  	return FileChunk_NONE
   120  }
   121  
   122  func (x *FileChunk) GetSeq() int32 {
   123  	if x != nil {
   124  		return x.Seq
   125  	}
   126  	return 0
   127  }
   128  
   129  func (x *FileChunk) GetData() []byte {
   130  	if x != nil {
   131  		return x.Data
   132  	}
   133  	return nil
   134  }
   135  
   136  func (x *FileChunk) GetFileName() string {
   137  	if x != nil {
   138  		return x.FileName
   139  	}
   140  	return ""
   141  }
   142  
   143  var File_file_chunk_proto protoreflect.FileDescriptor
   144  
   145  var file_file_chunk_proto_rawDesc = []byte{
   146  	0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x2d, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
   147  	0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xa0, 0x01, 0x0a, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x43,
   148  	0x68, 0x75, 0x6e, 0x6b, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20,
   149  	0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x68, 0x75,
   150  	0x6e, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
   151  	0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65,
   152  	0x71, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
   153  	0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d,
   154  	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d,
   155  	0x65, 0x22, 0x26, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f,
   156  	0x4e, 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x09,
   157  	0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b, 0x69, 0x6e, 0x74,
   158  	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   159  }
   160  
   161  var (
   162  	file_file_chunk_proto_rawDescOnce sync.Once
   163  	file_file_chunk_proto_rawDescData = file_file_chunk_proto_rawDesc
   164  )
   165  
   166  func file_file_chunk_proto_rawDescGZIP() []byte {
   167  	file_file_chunk_proto_rawDescOnce.Do(func() {
   168  		file_file_chunk_proto_rawDescData = protoimpl.X.CompressGZIP(file_file_chunk_proto_rawDescData)
   169  	})
   170  	return file_file_chunk_proto_rawDescData
   171  }
   172  
   173  var file_file_chunk_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   174  var file_file_chunk_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   175  var file_file_chunk_proto_goTypes = []interface{}{
   176  	(FileChunk_State)(0), // 0: pb.FileChunk.State
   177  	(*FileChunk)(nil),    // 1: pb.FileChunk
   178  }
   179  var file_file_chunk_proto_depIdxs = []int32{
   180  	0, // 0: pb.FileChunk.state:type_name -> pb.FileChunk.State
   181  	1, // [1:1] is the sub-list for method output_type
   182  	1, // [1:1] is the sub-list for method input_type
   183  	1, // [1:1] is the sub-list for extension type_name
   184  	1, // [1:1] is the sub-list for extension extendee
   185  	0, // [0:1] is the sub-list for field type_name
   186  }
   187  
   188  func init() { file_file_chunk_proto_init() }
   189  func file_file_chunk_proto_init() {
   190  	if File_file_chunk_proto != nil {
   191  		return
   192  	}
   193  	if !protoimpl.UnsafeEnabled {
   194  		file_file_chunk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   195  			switch v := v.(*FileChunk); i {
   196  			case 0:
   197  				return &v.state
   198  			case 1:
   199  				return &v.sizeCache
   200  			case 2:
   201  				return &v.unknownFields
   202  			default:
   203  				return nil
   204  			}
   205  		}
   206  	}
   207  	type x struct{}
   208  	out := protoimpl.TypeBuilder{
   209  		File: protoimpl.DescBuilder{
   210  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   211  			RawDescriptor: file_file_chunk_proto_rawDesc,
   212  			NumEnums:      1,
   213  			NumMessages:   1,
   214  			NumExtensions: 0,
   215  			NumServices:   0,
   216  		},
   217  		GoTypes:           file_file_chunk_proto_goTypes,
   218  		DependencyIndexes: file_file_chunk_proto_depIdxs,
   219  		EnumInfos:         file_file_chunk_proto_enumTypes,
   220  		MessageInfos:      file_file_chunk_proto_msgTypes,
   221  	}.Build()
   222  	File_file_chunk_proto = out.File
   223  	file_file_chunk_proto_rawDesc = nil
   224  	file_file_chunk_proto_goTypes = nil
   225  	file_file_chunk_proto_depIdxs = nil
   226  }