github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/storagegroup/grpc/types.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v3.21.9 5 // source: storagegroup/grpc/types.proto 6 7 package storagegroup 8 9 import ( 10 grpc "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // StorageGroup keeps verification information for Data Audit sessions. Objects 25 // that require paid storage guarantees are gathered in `StorageGroups` with 26 // additional information used for the proof of storage. `StorageGroup` only 27 // contains objects from the same container. 28 // 29 // Being an object payload, StorageGroup may have expiration Epoch set with 30 // `__NEOFS__EXPIRATION_EPOCH` well-known attribute. When expired, StorageGroup 31 // will be ignored by InnerRing nodes during Data Audit cycles and will be 32 // deleted by Storage Nodes. 33 type StorageGroup struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // Total size of the payloads of objects in the storage group 39 ValidationDataSize uint64 `protobuf:"varint,1,opt,name=validation_data_size,json=validationDataSize,proto3" json:"validation_data_size,omitempty"` 40 // Homomorphic hash from the concatenation of the payloads of the storage 41 // group members. The order of concatenation is the same as the order of the 42 // members in the `members` field. 43 ValidationHash *grpc.Checksum `protobuf:"bytes,2,opt,name=validation_hash,json=validationHash,proto3" json:"validation_hash,omitempty"` 44 // DEPRECATED. Last NeoFS epoch number of the storage group lifetime 45 // 46 // Deprecated: Do not use. 47 ExpirationEpoch uint64 `protobuf:"varint,3,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"` 48 // Strictly ordered list of storage group member objects. Members MUST be unique 49 Members []*grpc.ObjectID `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` 50 } 51 52 func (x *StorageGroup) Reset() { 53 *x = StorageGroup{} 54 if protoimpl.UnsafeEnabled { 55 mi := &file_storagegroup_grpc_types_proto_msgTypes[0] 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 ms.StoreMessageInfo(mi) 58 } 59 } 60 61 func (x *StorageGroup) String() string { 62 return protoimpl.X.MessageStringOf(x) 63 } 64 65 func (*StorageGroup) ProtoMessage() {} 66 67 func (x *StorageGroup) ProtoReflect() protoreflect.Message { 68 mi := &file_storagegroup_grpc_types_proto_msgTypes[0] 69 if protoimpl.UnsafeEnabled && x != nil { 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 if ms.LoadMessageInfo() == nil { 72 ms.StoreMessageInfo(mi) 73 } 74 return ms 75 } 76 return mi.MessageOf(x) 77 } 78 79 // Deprecated: Use StorageGroup.ProtoReflect.Descriptor instead. 80 func (*StorageGroup) Descriptor() ([]byte, []int) { 81 return file_storagegroup_grpc_types_proto_rawDescGZIP(), []int{0} 82 } 83 84 func (x *StorageGroup) GetValidationDataSize() uint64 { 85 if x != nil { 86 return x.ValidationDataSize 87 } 88 return 0 89 } 90 91 func (x *StorageGroup) GetValidationHash() *grpc.Checksum { 92 if x != nil { 93 return x.ValidationHash 94 } 95 return nil 96 } 97 98 // Deprecated: Do not use. 99 func (x *StorageGroup) GetExpirationEpoch() uint64 { 100 if x != nil { 101 return x.ExpirationEpoch 102 } 103 return 0 104 } 105 106 func (x *StorageGroup) GetMembers() []*grpc.ObjectID { 107 if x != nil { 108 return x.Members 109 } 110 return nil 111 } 112 113 var File_storagegroup_grpc_types_proto protoreflect.FileDescriptor 114 115 var file_storagegroup_grpc_types_proto_rawDesc = []byte{ 116 0x0a, 0x1d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x67, 117 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 118 0x16, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 119 0x67, 0x65, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 120 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 121 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 122 0x30, 0x0a, 0x14, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 123 0x74, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x76, 124 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x69, 0x7a, 125 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 126 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 127 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x43, 0x68, 0x65, 0x63, 128 0x6b, 0x73, 0x75, 0x6d, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 129 0x48, 0x61, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 130 0x6f, 0x6e, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 131 0x18, 0x01, 0x52, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x70, 132 0x6f, 0x63, 0x68, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x04, 133 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 134 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x52, 0x07, 135 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x42, 0x6d, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 136 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 137 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 138 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x67, 0x72, 0x6f, 0x75, 139 0x70, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x67, 0x72, 140 0x6f, 0x75, 0x70, 0xaa, 0x02, 0x20, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 141 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 142 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 143 } 144 145 var ( 146 file_storagegroup_grpc_types_proto_rawDescOnce sync.Once 147 file_storagegroup_grpc_types_proto_rawDescData = file_storagegroup_grpc_types_proto_rawDesc 148 ) 149 150 func file_storagegroup_grpc_types_proto_rawDescGZIP() []byte { 151 file_storagegroup_grpc_types_proto_rawDescOnce.Do(func() { 152 file_storagegroup_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_storagegroup_grpc_types_proto_rawDescData) 153 }) 154 return file_storagegroup_grpc_types_proto_rawDescData 155 } 156 157 var file_storagegroup_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 158 var file_storagegroup_grpc_types_proto_goTypes = []interface{}{ 159 (*StorageGroup)(nil), // 0: neo.fs.v2.storagegroup.StorageGroup 160 (*grpc.Checksum)(nil), // 1: neo.fs.v2.refs.Checksum 161 (*grpc.ObjectID)(nil), // 2: neo.fs.v2.refs.ObjectID 162 } 163 var file_storagegroup_grpc_types_proto_depIdxs = []int32{ 164 1, // 0: neo.fs.v2.storagegroup.StorageGroup.validation_hash:type_name -> neo.fs.v2.refs.Checksum 165 2, // 1: neo.fs.v2.storagegroup.StorageGroup.members:type_name -> neo.fs.v2.refs.ObjectID 166 2, // [2:2] is the sub-list for method output_type 167 2, // [2:2] is the sub-list for method input_type 168 2, // [2:2] is the sub-list for extension type_name 169 2, // [2:2] is the sub-list for extension extendee 170 0, // [0:2] is the sub-list for field type_name 171 } 172 173 func init() { file_storagegroup_grpc_types_proto_init() } 174 func file_storagegroup_grpc_types_proto_init() { 175 if File_storagegroup_grpc_types_proto != nil { 176 return 177 } 178 if !protoimpl.UnsafeEnabled { 179 file_storagegroup_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 180 switch v := v.(*StorageGroup); i { 181 case 0: 182 return &v.state 183 case 1: 184 return &v.sizeCache 185 case 2: 186 return &v.unknownFields 187 default: 188 return nil 189 } 190 } 191 } 192 type x struct{} 193 out := protoimpl.TypeBuilder{ 194 File: protoimpl.DescBuilder{ 195 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 196 RawDescriptor: file_storagegroup_grpc_types_proto_rawDesc, 197 NumEnums: 0, 198 NumMessages: 1, 199 NumExtensions: 0, 200 NumServices: 0, 201 }, 202 GoTypes: file_storagegroup_grpc_types_proto_goTypes, 203 DependencyIndexes: file_storagegroup_grpc_types_proto_depIdxs, 204 MessageInfos: file_storagegroup_grpc_types_proto_msgTypes, 205 }.Build() 206 File_storagegroup_grpc_types_proto = out.File 207 file_storagegroup_grpc_types_proto_rawDesc = nil 208 file_storagegroup_grpc_types_proto_goTypes = nil 209 file_storagegroup_grpc_types_proto_depIdxs = nil 210 }