github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/lock/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: lock/grpc/types.proto
     6  
     7  package lock
     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  // Lock objects protects a list of objects from being deleted. The lifetime of a
    25  // lock object is limited similar to regular objects in
    26  // `__NEOFS__EXPIRATION_EPOCH` attribute. Lock object MUST have expiration epoch.
    27  // It is impossible to delete a lock object via ObjectService.Delete RPC call.
    28  type Lock struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	// List of objects to lock. Must not be empty or carry empty IDs.
    34  	// All members must be of the `REGULAR` type.
    35  	Members []*grpc.ObjectID `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
    36  }
    37  
    38  func (x *Lock) Reset() {
    39  	*x = Lock{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_lock_grpc_types_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Lock) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Lock) ProtoMessage() {}
    52  
    53  func (x *Lock) ProtoReflect() protoreflect.Message {
    54  	mi := &file_lock_grpc_types_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Lock.ProtoReflect.Descriptor instead.
    66  func (*Lock) Descriptor() ([]byte, []int) {
    67  	return file_lock_grpc_types_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Lock) GetMembers() []*grpc.ObjectID {
    71  	if x != nil {
    72  		return x.Members
    73  	}
    74  	return nil
    75  }
    76  
    77  var File_lock_grpc_types_proto protoreflect.FileDescriptor
    78  
    79  var file_lock_grpc_types_proto_rawDesc = []byte{
    80  	0x0a, 0x15, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65,
    81  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
    82  	0x76, 0x32, 0x2e, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72,
    83  	0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3a,
    84  	0x0a, 0x04, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72,
    85  	0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73,
    86  	0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49,
    87  	0x44, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x42, 0x55, 0x5a, 0x38, 0x67, 0x69,
    88  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f,
    89  	0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70,
    90  	0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x67, 0x72, 0x70,
    91  	0x63, 0x3b, 0x6c, 0x6f, 0x63, 0x6b, 0xaa, 0x02, 0x18, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c,
    92  	0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x4c, 0x6f, 0x63,
    93  	0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    94  }
    95  
    96  var (
    97  	file_lock_grpc_types_proto_rawDescOnce sync.Once
    98  	file_lock_grpc_types_proto_rawDescData = file_lock_grpc_types_proto_rawDesc
    99  )
   100  
   101  func file_lock_grpc_types_proto_rawDescGZIP() []byte {
   102  	file_lock_grpc_types_proto_rawDescOnce.Do(func() {
   103  		file_lock_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_lock_grpc_types_proto_rawDescData)
   104  	})
   105  	return file_lock_grpc_types_proto_rawDescData
   106  }
   107  
   108  var file_lock_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   109  var file_lock_grpc_types_proto_goTypes = []interface{}{
   110  	(*Lock)(nil),          // 0: neo.fs.v2.lock.Lock
   111  	(*grpc.ObjectID)(nil), // 1: neo.fs.v2.refs.ObjectID
   112  }
   113  var file_lock_grpc_types_proto_depIdxs = []int32{
   114  	1, // 0: neo.fs.v2.lock.Lock.members:type_name -> neo.fs.v2.refs.ObjectID
   115  	1, // [1:1] is the sub-list for method output_type
   116  	1, // [1:1] is the sub-list for method input_type
   117  	1, // [1:1] is the sub-list for extension type_name
   118  	1, // [1:1] is the sub-list for extension extendee
   119  	0, // [0:1] is the sub-list for field type_name
   120  }
   121  
   122  func init() { file_lock_grpc_types_proto_init() }
   123  func file_lock_grpc_types_proto_init() {
   124  	if File_lock_grpc_types_proto != nil {
   125  		return
   126  	}
   127  	if !protoimpl.UnsafeEnabled {
   128  		file_lock_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   129  			switch v := v.(*Lock); i {
   130  			case 0:
   131  				return &v.state
   132  			case 1:
   133  				return &v.sizeCache
   134  			case 2:
   135  				return &v.unknownFields
   136  			default:
   137  				return nil
   138  			}
   139  		}
   140  	}
   141  	type x struct{}
   142  	out := protoimpl.TypeBuilder{
   143  		File: protoimpl.DescBuilder{
   144  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   145  			RawDescriptor: file_lock_grpc_types_proto_rawDesc,
   146  			NumEnums:      0,
   147  			NumMessages:   1,
   148  			NumExtensions: 0,
   149  			NumServices:   0,
   150  		},
   151  		GoTypes:           file_lock_grpc_types_proto_goTypes,
   152  		DependencyIndexes: file_lock_grpc_types_proto_depIdxs,
   153  		MessageInfos:      file_lock_grpc_types_proto_msgTypes,
   154  	}.Build()
   155  	File_lock_grpc_types_proto = out.File
   156  	file_lock_grpc_types_proto_rawDesc = nil
   157  	file_lock_grpc_types_proto_goTypes = nil
   158  	file_lock_grpc_types_proto_depIdxs = nil
   159  }