github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/tombstone/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: tombstone/grpc/types.proto
     6  
     7  package tombstone
     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  // Tombstone keeps record of deleted objects for a few epochs until they are
    25  // purged from the NeoFS network.
    26  type Tombstone struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	// Last NeoFS epoch number of the tombstone lifetime. It's set by the tombstone
    32  	// creator depending on the current NeoFS network settings. A tombstone object
    33  	// must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH`
    34  	// attribute. Otherwise, the tombstone will be rejected by a storage node.
    35  	ExpirationEpoch uint64 `protobuf:"varint,1,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"`
    36  	// 16 byte UUID used to identify the split object hierarchy parts. Must be
    37  	// unique inside a container. All objects participating in the split must
    38  	// have the same `split_id` value.
    39  	SplitId []byte `protobuf:"bytes,2,opt,name=split_id,json=splitID,proto3" json:"split_id,omitempty"`
    40  	// List of objects to be deleted.
    41  	Members []*grpc.ObjectID `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
    42  }
    43  
    44  func (x *Tombstone) Reset() {
    45  	*x = Tombstone{}
    46  	if protoimpl.UnsafeEnabled {
    47  		mi := &file_tombstone_grpc_types_proto_msgTypes[0]
    48  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  		ms.StoreMessageInfo(mi)
    50  	}
    51  }
    52  
    53  func (x *Tombstone) String() string {
    54  	return protoimpl.X.MessageStringOf(x)
    55  }
    56  
    57  func (*Tombstone) ProtoMessage() {}
    58  
    59  func (x *Tombstone) ProtoReflect() protoreflect.Message {
    60  	mi := &file_tombstone_grpc_types_proto_msgTypes[0]
    61  	if protoimpl.UnsafeEnabled && x != nil {
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		if ms.LoadMessageInfo() == nil {
    64  			ms.StoreMessageInfo(mi)
    65  		}
    66  		return ms
    67  	}
    68  	return mi.MessageOf(x)
    69  }
    70  
    71  // Deprecated: Use Tombstone.ProtoReflect.Descriptor instead.
    72  func (*Tombstone) Descriptor() ([]byte, []int) {
    73  	return file_tombstone_grpc_types_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  func (x *Tombstone) GetExpirationEpoch() uint64 {
    77  	if x != nil {
    78  		return x.ExpirationEpoch
    79  	}
    80  	return 0
    81  }
    82  
    83  func (x *Tombstone) GetSplitId() []byte {
    84  	if x != nil {
    85  		return x.SplitId
    86  	}
    87  	return nil
    88  }
    89  
    90  func (x *Tombstone) GetMembers() []*grpc.ObjectID {
    91  	if x != nil {
    92  		return x.Members
    93  	}
    94  	return nil
    95  }
    96  
    97  var File_tombstone_grpc_types_proto protoreflect.FileDescriptor
    98  
    99  var file_tombstone_grpc_types_proto_rawDesc = []byte{
   100  	0x0a, 0x1a, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x2f, 0x67, 0x72, 0x70, 0x63,
   101  	0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6e, 0x65,
   102  	0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e,
   103  	0x65, 0x1a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70,
   104  	0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6d,
   105  	0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61,
   106  	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
   107  	0x52, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x70, 0x6f, 0x63,
   108  	0x68, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
   109  	0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x49, 0x44, 0x12, 0x32, 0x0a, 0x07,
   110  	0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,
   111  	0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f,
   112  	0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
   113  	0x42, 0x64, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54,
   114  	0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73,
   115  	0x74, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f,
   116  	0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x74, 0x6f, 0x6d,
   117  	0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0xaa, 0x02, 0x1d, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c,
   118  	0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x54, 0x6f, 0x6d,
   119  	0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   120  }
   121  
   122  var (
   123  	file_tombstone_grpc_types_proto_rawDescOnce sync.Once
   124  	file_tombstone_grpc_types_proto_rawDescData = file_tombstone_grpc_types_proto_rawDesc
   125  )
   126  
   127  func file_tombstone_grpc_types_proto_rawDescGZIP() []byte {
   128  	file_tombstone_grpc_types_proto_rawDescOnce.Do(func() {
   129  		file_tombstone_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_tombstone_grpc_types_proto_rawDescData)
   130  	})
   131  	return file_tombstone_grpc_types_proto_rawDescData
   132  }
   133  
   134  var file_tombstone_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   135  var file_tombstone_grpc_types_proto_goTypes = []interface{}{
   136  	(*Tombstone)(nil),     // 0: neo.fs.v2.tombstone.Tombstone
   137  	(*grpc.ObjectID)(nil), // 1: neo.fs.v2.refs.ObjectID
   138  }
   139  var file_tombstone_grpc_types_proto_depIdxs = []int32{
   140  	1, // 0: neo.fs.v2.tombstone.Tombstone.members:type_name -> neo.fs.v2.refs.ObjectID
   141  	1, // [1:1] is the sub-list for method output_type
   142  	1, // [1:1] is the sub-list for method input_type
   143  	1, // [1:1] is the sub-list for extension type_name
   144  	1, // [1:1] is the sub-list for extension extendee
   145  	0, // [0:1] is the sub-list for field type_name
   146  }
   147  
   148  func init() { file_tombstone_grpc_types_proto_init() }
   149  func file_tombstone_grpc_types_proto_init() {
   150  	if File_tombstone_grpc_types_proto != nil {
   151  		return
   152  	}
   153  	if !protoimpl.UnsafeEnabled {
   154  		file_tombstone_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   155  			switch v := v.(*Tombstone); i {
   156  			case 0:
   157  				return &v.state
   158  			case 1:
   159  				return &v.sizeCache
   160  			case 2:
   161  				return &v.unknownFields
   162  			default:
   163  				return nil
   164  			}
   165  		}
   166  	}
   167  	type x struct{}
   168  	out := protoimpl.TypeBuilder{
   169  		File: protoimpl.DescBuilder{
   170  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   171  			RawDescriptor: file_tombstone_grpc_types_proto_rawDesc,
   172  			NumEnums:      0,
   173  			NumMessages:   1,
   174  			NumExtensions: 0,
   175  			NumServices:   0,
   176  		},
   177  		GoTypes:           file_tombstone_grpc_types_proto_goTypes,
   178  		DependencyIndexes: file_tombstone_grpc_types_proto_depIdxs,
   179  		MessageInfos:      file_tombstone_grpc_types_proto_msgTypes,
   180  	}.Build()
   181  	File_tombstone_grpc_types_proto = out.File
   182  	file_tombstone_grpc_types_proto_rawDesc = nil
   183  	file_tombstone_grpc_types_proto_goTypes = nil
   184  	file_tombstone_grpc_types_proto_depIdxs = nil
   185  }