git.frostfs.info/TrueCloudLab/frostfs-sdk-go@v0.0.0-20241022124111-5361f0ecebd3/pool/tree/service/types.pb.go (about)

     1  //*
     2  // Auxiliary structures to use with tree service.
     3  
     4  // Code generated by protoc-gen-go. DO NOT EDIT.
     5  // versions:
     6  // 	protoc-gen-go v1.33.0
     7  // 	protoc        v4.25.0
     8  // source: pkg/services/tree/types.proto
     9  
    10  package tree
    11  
    12  import (
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  // KeyValue represents key-value pair attached to an object.
    27  type KeyValue struct {
    28  	state         protoimpl.MessageState
    29  	sizeCache     protoimpl.SizeCache
    30  	unknownFields protoimpl.UnknownFields
    31  
    32  	// Attribute name.
    33  	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    34  	// Attribute value.
    35  	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    36  }
    37  
    38  func (x *KeyValue) Reset() {
    39  	*x = KeyValue{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_pkg_services_tree_types_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *KeyValue) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*KeyValue) ProtoMessage() {}
    52  
    53  func (x *KeyValue) ProtoReflect() protoreflect.Message {
    54  	mi := &file_pkg_services_tree_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 KeyValue.ProtoReflect.Descriptor instead.
    66  func (*KeyValue) Descriptor() ([]byte, []int) {
    67  	return file_pkg_services_tree_types_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *KeyValue) GetKey() string {
    71  	if x != nil {
    72  		return x.Key
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *KeyValue) GetValue() []byte {
    78  	if x != nil {
    79  		return x.Value
    80  	}
    81  	return nil
    82  }
    83  
    84  // LogMove represents log-entry for a single move operation.
    85  type LogMove struct {
    86  	state         protoimpl.MessageState
    87  	sizeCache     protoimpl.SizeCache
    88  	unknownFields protoimpl.UnknownFields
    89  
    90  	// ID of the parent node.
    91  	ParentId uint64 `protobuf:"varint,1,opt,name=parent_id,json=parentID,proto3" json:"parent_id,omitempty"`
    92  	// Node meta information, including operation timestamp.
    93  	Meta []byte `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
    94  	// ID of the node to move.
    95  	ChildId uint64 `protobuf:"varint,3,opt,name=child_id,json=childID,proto3" json:"child_id,omitempty"`
    96  }
    97  
    98  func (x *LogMove) Reset() {
    99  	*x = LogMove{}
   100  	if protoimpl.UnsafeEnabled {
   101  		mi := &file_pkg_services_tree_types_proto_msgTypes[1]
   102  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   103  		ms.StoreMessageInfo(mi)
   104  	}
   105  }
   106  
   107  func (x *LogMove) String() string {
   108  	return protoimpl.X.MessageStringOf(x)
   109  }
   110  
   111  func (*LogMove) ProtoMessage() {}
   112  
   113  func (x *LogMove) ProtoReflect() protoreflect.Message {
   114  	mi := &file_pkg_services_tree_types_proto_msgTypes[1]
   115  	if protoimpl.UnsafeEnabled && x != nil {
   116  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   117  		if ms.LoadMessageInfo() == nil {
   118  			ms.StoreMessageInfo(mi)
   119  		}
   120  		return ms
   121  	}
   122  	return mi.MessageOf(x)
   123  }
   124  
   125  // Deprecated: Use LogMove.ProtoReflect.Descriptor instead.
   126  func (*LogMove) Descriptor() ([]byte, []int) {
   127  	return file_pkg_services_tree_types_proto_rawDescGZIP(), []int{1}
   128  }
   129  
   130  func (x *LogMove) GetParentId() uint64 {
   131  	if x != nil {
   132  		return x.ParentId
   133  	}
   134  	return 0
   135  }
   136  
   137  func (x *LogMove) GetMeta() []byte {
   138  	if x != nil {
   139  		return x.Meta
   140  	}
   141  	return nil
   142  }
   143  
   144  func (x *LogMove) GetChildId() uint64 {
   145  	if x != nil {
   146  		return x.ChildId
   147  	}
   148  	return 0
   149  }
   150  
   151  // Signature of a message.
   152  type Signature struct {
   153  	state         protoimpl.MessageState
   154  	sizeCache     protoimpl.SizeCache
   155  	unknownFields protoimpl.UnknownFields
   156  
   157  	// Serialized public key as defined in FrostFS API.
   158  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   159  	// Signature of a message body.
   160  	Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
   161  }
   162  
   163  func (x *Signature) Reset() {
   164  	*x = Signature{}
   165  	if protoimpl.UnsafeEnabled {
   166  		mi := &file_pkg_services_tree_types_proto_msgTypes[2]
   167  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   168  		ms.StoreMessageInfo(mi)
   169  	}
   170  }
   171  
   172  func (x *Signature) String() string {
   173  	return protoimpl.X.MessageStringOf(x)
   174  }
   175  
   176  func (*Signature) ProtoMessage() {}
   177  
   178  func (x *Signature) ProtoReflect() protoreflect.Message {
   179  	mi := &file_pkg_services_tree_types_proto_msgTypes[2]
   180  	if protoimpl.UnsafeEnabled && x != nil {
   181  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   182  		if ms.LoadMessageInfo() == nil {
   183  			ms.StoreMessageInfo(mi)
   184  		}
   185  		return ms
   186  	}
   187  	return mi.MessageOf(x)
   188  }
   189  
   190  // Deprecated: Use Signature.ProtoReflect.Descriptor instead.
   191  func (*Signature) Descriptor() ([]byte, []int) {
   192  	return file_pkg_services_tree_types_proto_rawDescGZIP(), []int{2}
   193  }
   194  
   195  func (x *Signature) GetKey() []byte {
   196  	if x != nil {
   197  		return x.Key
   198  	}
   199  	return nil
   200  }
   201  
   202  func (x *Signature) GetSign() []byte {
   203  	if x != nil {
   204  		return x.Sign
   205  	}
   206  	return nil
   207  }
   208  
   209  var File_pkg_services_tree_types_proto protoreflect.FileDescriptor
   210  
   211  var file_pkg_services_tree_types_proto_rawDesc = []byte{
   212  	0x0a, 0x1d, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74,
   213  	0x72, 0x65, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   214  	0x04, 0x74, 0x72, 0x65, 0x65, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75,
   215  	0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
   216  	0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
   217  	0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x55, 0x0a, 0x07, 0x4c, 0x6f, 0x67,
   218  	0x4d, 0x6f, 0x76, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69,
   219  	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49,
   220  	0x44, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52,
   221  	0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69,
   222  	0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x49, 0x44,
   223  	0x22, 0x36, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a,
   224  	0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
   225  	0x17, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73,
   226  	0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e,
   227  	0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x54, 0x72, 0x75,
   228  	0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66,
   229  	0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   230  	0x63, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x65, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   231  }
   232  
   233  var (
   234  	file_pkg_services_tree_types_proto_rawDescOnce sync.Once
   235  	file_pkg_services_tree_types_proto_rawDescData = file_pkg_services_tree_types_proto_rawDesc
   236  )
   237  
   238  func file_pkg_services_tree_types_proto_rawDescGZIP() []byte {
   239  	file_pkg_services_tree_types_proto_rawDescOnce.Do(func() {
   240  		file_pkg_services_tree_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_services_tree_types_proto_rawDescData)
   241  	})
   242  	return file_pkg_services_tree_types_proto_rawDescData
   243  }
   244  
   245  var file_pkg_services_tree_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   246  var file_pkg_services_tree_types_proto_goTypes = []interface{}{
   247  	(*KeyValue)(nil),  // 0: tree.KeyValue
   248  	(*LogMove)(nil),   // 1: tree.LogMove
   249  	(*Signature)(nil), // 2: tree.Signature
   250  }
   251  var file_pkg_services_tree_types_proto_depIdxs = []int32{
   252  	0, // [0:0] is the sub-list for method output_type
   253  	0, // [0:0] is the sub-list for method input_type
   254  	0, // [0:0] is the sub-list for extension type_name
   255  	0, // [0:0] is the sub-list for extension extendee
   256  	0, // [0:0] is the sub-list for field type_name
   257  }
   258  
   259  func init() { file_pkg_services_tree_types_proto_init() }
   260  func file_pkg_services_tree_types_proto_init() {
   261  	if File_pkg_services_tree_types_proto != nil {
   262  		return
   263  	}
   264  	if !protoimpl.UnsafeEnabled {
   265  		file_pkg_services_tree_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   266  			switch v := v.(*KeyValue); i {
   267  			case 0:
   268  				return &v.state
   269  			case 1:
   270  				return &v.sizeCache
   271  			case 2:
   272  				return &v.unknownFields
   273  			default:
   274  				return nil
   275  			}
   276  		}
   277  		file_pkg_services_tree_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   278  			switch v := v.(*LogMove); i {
   279  			case 0:
   280  				return &v.state
   281  			case 1:
   282  				return &v.sizeCache
   283  			case 2:
   284  				return &v.unknownFields
   285  			default:
   286  				return nil
   287  			}
   288  		}
   289  		file_pkg_services_tree_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   290  			switch v := v.(*Signature); i {
   291  			case 0:
   292  				return &v.state
   293  			case 1:
   294  				return &v.sizeCache
   295  			case 2:
   296  				return &v.unknownFields
   297  			default:
   298  				return nil
   299  			}
   300  		}
   301  	}
   302  	type x struct{}
   303  	out := protoimpl.TypeBuilder{
   304  		File: protoimpl.DescBuilder{
   305  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   306  			RawDescriptor: file_pkg_services_tree_types_proto_rawDesc,
   307  			NumEnums:      0,
   308  			NumMessages:   3,
   309  			NumExtensions: 0,
   310  			NumServices:   0,
   311  		},
   312  		GoTypes:           file_pkg_services_tree_types_proto_goTypes,
   313  		DependencyIndexes: file_pkg_services_tree_types_proto_depIdxs,
   314  		MessageInfos:      file_pkg_services_tree_types_proto_msgTypes,
   315  	}.Build()
   316  	File_pkg_services_tree_types_proto = out.File
   317  	file_pkg_services_tree_types_proto_rawDesc = nil
   318  	file_pkg_services_tree_types_proto_goTypes = nil
   319  	file_pkg_services_tree_types_proto_depIdxs = nil
   320  }