github.com/s7techlab/cckit@v0.10.5/state/schema/schema.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        (unknown)
     5  // source: schema/schema.proto
     6  
     7  package schema
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	anypb "google.golang.org/protobuf/types/known/anypb"
    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  // KeyRefId  id part of key reference
    25  type KeyRefId struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	// entity type
    31  	Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
    32  	// idx name from entity type
    33  	Idx string `protobuf:"bytes,2,opt,name=idx,proto3" json:"idx,omitempty"`
    34  	// referred key
    35  	RefKey []string `protobuf:"bytes,3,rep,name=ref_key,json=refKey,proto3" json:"ref_key,omitempty"`
    36  }
    37  
    38  func (x *KeyRefId) Reset() {
    39  	*x = KeyRefId{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_schema_schema_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *KeyRefId) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*KeyRefId) ProtoMessage() {}
    52  
    53  func (x *KeyRefId) ProtoReflect() protoreflect.Message {
    54  	mi := &file_schema_schema_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 KeyRefId.ProtoReflect.Descriptor instead.
    66  func (*KeyRefId) Descriptor() ([]byte, []int) {
    67  	return file_schema_schema_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *KeyRefId) GetSchema() string {
    71  	if x != nil {
    72  		return x.Schema
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *KeyRefId) GetIdx() string {
    78  	if x != nil {
    79  		return x.Idx
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *KeyRefId) GetRefKey() []string {
    85  	if x != nil {
    86  		return x.RefKey
    87  	}
    88  	return nil
    89  }
    90  
    91  type KeyRef struct {
    92  	state         protoimpl.MessageState
    93  	sizeCache     protoimpl.SizeCache
    94  	unknownFields protoimpl.UnknownFields
    95  
    96  	// entity type
    97  	Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
    98  	// idx name from entity type
    99  	Idx string `protobuf:"bytes,2,opt,name=idx,proto3" json:"idx,omitempty"`
   100  	// referred key
   101  	RefKey []string `protobuf:"bytes,3,rep,name=ref_key,json=refKey,proto3" json:"ref_key,omitempty"`
   102  	// primary key instance linked to
   103  	PKey []string `protobuf:"bytes,4,rep,name=p_key,json=pKey,proto3" json:"p_key,omitempty"`
   104  }
   105  
   106  func (x *KeyRef) Reset() {
   107  	*x = KeyRef{}
   108  	if protoimpl.UnsafeEnabled {
   109  		mi := &file_schema_schema_proto_msgTypes[1]
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		ms.StoreMessageInfo(mi)
   112  	}
   113  }
   114  
   115  func (x *KeyRef) String() string {
   116  	return protoimpl.X.MessageStringOf(x)
   117  }
   118  
   119  func (*KeyRef) ProtoMessage() {}
   120  
   121  func (x *KeyRef) ProtoReflect() protoreflect.Message {
   122  	mi := &file_schema_schema_proto_msgTypes[1]
   123  	if protoimpl.UnsafeEnabled && x != nil {
   124  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   125  		if ms.LoadMessageInfo() == nil {
   126  			ms.StoreMessageInfo(mi)
   127  		}
   128  		return ms
   129  	}
   130  	return mi.MessageOf(x)
   131  }
   132  
   133  // Deprecated: Use KeyRef.ProtoReflect.Descriptor instead.
   134  func (*KeyRef) Descriptor() ([]byte, []int) {
   135  	return file_schema_schema_proto_rawDescGZIP(), []int{1}
   136  }
   137  
   138  func (x *KeyRef) GetSchema() string {
   139  	if x != nil {
   140  		return x.Schema
   141  	}
   142  	return ""
   143  }
   144  
   145  func (x *KeyRef) GetIdx() string {
   146  	if x != nil {
   147  		return x.Idx
   148  	}
   149  	return ""
   150  }
   151  
   152  func (x *KeyRef) GetRefKey() []string {
   153  	if x != nil {
   154  		return x.RefKey
   155  	}
   156  	return nil
   157  }
   158  
   159  func (x *KeyRef) GetPKey() []string {
   160  	if x != nil {
   161  		return x.PKey
   162  	}
   163  	return nil
   164  }
   165  
   166  type List struct {
   167  	state         protoimpl.MessageState
   168  	sizeCache     protoimpl.SizeCache
   169  	unknownFields protoimpl.UnknownFields
   170  
   171  	Items []*anypb.Any `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
   172  }
   173  
   174  func (x *List) Reset() {
   175  	*x = List{}
   176  	if protoimpl.UnsafeEnabled {
   177  		mi := &file_schema_schema_proto_msgTypes[2]
   178  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   179  		ms.StoreMessageInfo(mi)
   180  	}
   181  }
   182  
   183  func (x *List) String() string {
   184  	return protoimpl.X.MessageStringOf(x)
   185  }
   186  
   187  func (*List) ProtoMessage() {}
   188  
   189  func (x *List) ProtoReflect() protoreflect.Message {
   190  	mi := &file_schema_schema_proto_msgTypes[2]
   191  	if protoimpl.UnsafeEnabled && x != nil {
   192  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   193  		if ms.LoadMessageInfo() == nil {
   194  			ms.StoreMessageInfo(mi)
   195  		}
   196  		return ms
   197  	}
   198  	return mi.MessageOf(x)
   199  }
   200  
   201  // Deprecated: Use List.ProtoReflect.Descriptor instead.
   202  func (*List) Descriptor() ([]byte, []int) {
   203  	return file_schema_schema_proto_rawDescGZIP(), []int{2}
   204  }
   205  
   206  func (x *List) GetItems() []*anypb.Any {
   207  	if x != nil {
   208  		return x.Items
   209  	}
   210  	return nil
   211  }
   212  
   213  var File_schema_schema_proto protoreflect.FileDescriptor
   214  
   215  var file_schema_schema_proto_rawDesc = []byte{
   216  	0x0a, 0x13, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,
   217  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x73, 0x63, 0x68,
   218  	0x65, 0x6d, 0x61, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   219  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4d,
   220  	0x0a, 0x08, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x66, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,
   221  	0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65,
   222  	0x6d, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   223  	0x03, 0x69, 0x64, 0x78, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x5f, 0x6b, 0x65, 0x79, 0x18,
   224  	0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x66, 0x4b, 0x65, 0x79, 0x22, 0x60, 0x0a,
   225  	0x06, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
   226  	0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,
   227  	0x10, 0x0a, 0x03, 0x69, 0x64, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64,
   228  	0x78, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x03,
   229  	0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x66, 0x4b, 0x65, 0x79, 0x12, 0x13, 0x0a, 0x05, 0x70, 0x5f,
   230  	0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x70, 0x4b, 0x65, 0x79, 0x22,
   231  	0x32, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
   232  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   233  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x69, 0x74,
   234  	0x65, 0x6d, 0x73, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   235  	0x6d, 0x2f, 0x73, 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69,
   236  	0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06,
   237  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   238  }
   239  
   240  var (
   241  	file_schema_schema_proto_rawDescOnce sync.Once
   242  	file_schema_schema_proto_rawDescData = file_schema_schema_proto_rawDesc
   243  )
   244  
   245  func file_schema_schema_proto_rawDescGZIP() []byte {
   246  	file_schema_schema_proto_rawDescOnce.Do(func() {
   247  		file_schema_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_schema_schema_proto_rawDescData)
   248  	})
   249  	return file_schema_schema_proto_rawDescData
   250  }
   251  
   252  var file_schema_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   253  var file_schema_schema_proto_goTypes = []interface{}{
   254  	(*KeyRefId)(nil),  // 0: state.schema.KeyRefId
   255  	(*KeyRef)(nil),    // 1: state.schema.KeyRef
   256  	(*List)(nil),      // 2: state.schema.List
   257  	(*anypb.Any)(nil), // 3: google.protobuf.Any
   258  }
   259  var file_schema_schema_proto_depIdxs = []int32{
   260  	3, // 0: state.schema.List.items:type_name -> google.protobuf.Any
   261  	1, // [1:1] is the sub-list for method output_type
   262  	1, // [1:1] is the sub-list for method input_type
   263  	1, // [1:1] is the sub-list for extension type_name
   264  	1, // [1:1] is the sub-list for extension extendee
   265  	0, // [0:1] is the sub-list for field type_name
   266  }
   267  
   268  func init() { file_schema_schema_proto_init() }
   269  func file_schema_schema_proto_init() {
   270  	if File_schema_schema_proto != nil {
   271  		return
   272  	}
   273  	if !protoimpl.UnsafeEnabled {
   274  		file_schema_schema_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   275  			switch v := v.(*KeyRefId); i {
   276  			case 0:
   277  				return &v.state
   278  			case 1:
   279  				return &v.sizeCache
   280  			case 2:
   281  				return &v.unknownFields
   282  			default:
   283  				return nil
   284  			}
   285  		}
   286  		file_schema_schema_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   287  			switch v := v.(*KeyRef); i {
   288  			case 0:
   289  				return &v.state
   290  			case 1:
   291  				return &v.sizeCache
   292  			case 2:
   293  				return &v.unknownFields
   294  			default:
   295  				return nil
   296  			}
   297  		}
   298  		file_schema_schema_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   299  			switch v := v.(*List); i {
   300  			case 0:
   301  				return &v.state
   302  			case 1:
   303  				return &v.sizeCache
   304  			case 2:
   305  				return &v.unknownFields
   306  			default:
   307  				return nil
   308  			}
   309  		}
   310  	}
   311  	type x struct{}
   312  	out := protoimpl.TypeBuilder{
   313  		File: protoimpl.DescBuilder{
   314  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   315  			RawDescriptor: file_schema_schema_proto_rawDesc,
   316  			NumEnums:      0,
   317  			NumMessages:   3,
   318  			NumExtensions: 0,
   319  			NumServices:   0,
   320  		},
   321  		GoTypes:           file_schema_schema_proto_goTypes,
   322  		DependencyIndexes: file_schema_schema_proto_depIdxs,
   323  		MessageInfos:      file_schema_schema_proto_msgTypes,
   324  	}.Build()
   325  	File_schema_schema_proto = out.File
   326  	file_schema_schema_proto_rawDesc = nil
   327  	file_schema_schema_proto_goTypes = nil
   328  	file_schema_schema_proto_depIdxs = nil
   329  }