vitess.io/vitess@v0.16.2/go/vt/proto/tableacl/tableacl.pb.go (about)

     1  //
     2  //Copyright 2019 The Vitess Authors.
     3  //
     4  //Licensed under the Apache License, Version 2.0 (the "License");
     5  //you may not use this file except in compliance with the License.
     6  //You may obtain a copy of the License at
     7  //
     8  //http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  //Unless required by applicable law or agreed to in writing, software
    11  //distributed under the License is distributed on an "AS IS" BASIS,
    12  //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  //See the License for the specific language governing permissions and
    14  //limitations under the License.
    15  
    16  // Table ACL proto definitions.
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.28.1
    21  // 	protoc        v3.21.3
    22  // source: tableacl.proto
    23  
    24  package tableacl
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  // TableGroupSpec defines ACLs for a group of tables.
    41  type TableGroupSpec struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    47  	// either tables or a table name prefixes (if it ends in a %)
    48  	TableNamesOrPrefixes []string `protobuf:"bytes,2,rep,name=table_names_or_prefixes,json=tableNamesOrPrefixes,proto3" json:"table_names_or_prefixes,omitempty"`
    49  	Readers              []string `protobuf:"bytes,3,rep,name=readers,proto3" json:"readers,omitempty"`
    50  	Writers              []string `protobuf:"bytes,4,rep,name=writers,proto3" json:"writers,omitempty"`
    51  	Admins               []string `protobuf:"bytes,5,rep,name=admins,proto3" json:"admins,omitempty"`
    52  }
    53  
    54  func (x *TableGroupSpec) Reset() {
    55  	*x = TableGroupSpec{}
    56  	if protoimpl.UnsafeEnabled {
    57  		mi := &file_tableacl_proto_msgTypes[0]
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		ms.StoreMessageInfo(mi)
    60  	}
    61  }
    62  
    63  func (x *TableGroupSpec) String() string {
    64  	return protoimpl.X.MessageStringOf(x)
    65  }
    66  
    67  func (*TableGroupSpec) ProtoMessage() {}
    68  
    69  func (x *TableGroupSpec) ProtoReflect() protoreflect.Message {
    70  	mi := &file_tableacl_proto_msgTypes[0]
    71  	if protoimpl.UnsafeEnabled && x != nil {
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    73  		if ms.LoadMessageInfo() == nil {
    74  			ms.StoreMessageInfo(mi)
    75  		}
    76  		return ms
    77  	}
    78  	return mi.MessageOf(x)
    79  }
    80  
    81  // Deprecated: Use TableGroupSpec.ProtoReflect.Descriptor instead.
    82  func (*TableGroupSpec) Descriptor() ([]byte, []int) {
    83  	return file_tableacl_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  func (x *TableGroupSpec) GetName() string {
    87  	if x != nil {
    88  		return x.Name
    89  	}
    90  	return ""
    91  }
    92  
    93  func (x *TableGroupSpec) GetTableNamesOrPrefixes() []string {
    94  	if x != nil {
    95  		return x.TableNamesOrPrefixes
    96  	}
    97  	return nil
    98  }
    99  
   100  func (x *TableGroupSpec) GetReaders() []string {
   101  	if x != nil {
   102  		return x.Readers
   103  	}
   104  	return nil
   105  }
   106  
   107  func (x *TableGroupSpec) GetWriters() []string {
   108  	if x != nil {
   109  		return x.Writers
   110  	}
   111  	return nil
   112  }
   113  
   114  func (x *TableGroupSpec) GetAdmins() []string {
   115  	if x != nil {
   116  		return x.Admins
   117  	}
   118  	return nil
   119  }
   120  
   121  type Config struct {
   122  	state         protoimpl.MessageState
   123  	sizeCache     protoimpl.SizeCache
   124  	unknownFields protoimpl.UnknownFields
   125  
   126  	TableGroups []*TableGroupSpec `protobuf:"bytes,1,rep,name=table_groups,json=tableGroups,proto3" json:"table_groups,omitempty"`
   127  }
   128  
   129  func (x *Config) Reset() {
   130  	*x = Config{}
   131  	if protoimpl.UnsafeEnabled {
   132  		mi := &file_tableacl_proto_msgTypes[1]
   133  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   134  		ms.StoreMessageInfo(mi)
   135  	}
   136  }
   137  
   138  func (x *Config) String() string {
   139  	return protoimpl.X.MessageStringOf(x)
   140  }
   141  
   142  func (*Config) ProtoMessage() {}
   143  
   144  func (x *Config) ProtoReflect() protoreflect.Message {
   145  	mi := &file_tableacl_proto_msgTypes[1]
   146  	if protoimpl.UnsafeEnabled && x != nil {
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		if ms.LoadMessageInfo() == nil {
   149  			ms.StoreMessageInfo(mi)
   150  		}
   151  		return ms
   152  	}
   153  	return mi.MessageOf(x)
   154  }
   155  
   156  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
   157  func (*Config) Descriptor() ([]byte, []int) {
   158  	return file_tableacl_proto_rawDescGZIP(), []int{1}
   159  }
   160  
   161  func (x *Config) GetTableGroups() []*TableGroupSpec {
   162  	if x != nil {
   163  		return x.TableGroups
   164  	}
   165  	return nil
   166  }
   167  
   168  var File_tableacl_proto protoreflect.FileDescriptor
   169  
   170  var file_tableacl_proto_rawDesc = []byte{
   171  	0x0a, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x61, 0x63, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   172  	0x12, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x61, 0x63, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x0e, 0x54,
   173  	0x61, 0x62, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a,
   174  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
   175  	0x65, 0x12, 0x35, 0x0a, 0x17, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73,
   176  	0x5f, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,
   177  	0x28, 0x09, 0x52, 0x14, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4f, 0x72,
   178  	0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x64,
   179  	0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x61, 0x64, 0x65,
   180  	0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20,
   181  	0x03, 0x28, 0x09, 0x52, 0x07, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06,
   182  	0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, 0x64,
   183  	0x6d, 0x69, 0x6e, 0x73, 0x22, 0x45, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b,
   184  	0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01,
   185  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x61, 0x63, 0x6c, 0x2e,
   186  	0x54, 0x61, 0x62, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0b,
   187  	0x74, 0x61, 0x62, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x27, 0x5a, 0x25, 0x76,
   188  	0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f,
   189  	0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x61, 0x62, 0x6c,
   190  	0x65, 0x61, 0x63, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   191  }
   192  
   193  var (
   194  	file_tableacl_proto_rawDescOnce sync.Once
   195  	file_tableacl_proto_rawDescData = file_tableacl_proto_rawDesc
   196  )
   197  
   198  func file_tableacl_proto_rawDescGZIP() []byte {
   199  	file_tableacl_proto_rawDescOnce.Do(func() {
   200  		file_tableacl_proto_rawDescData = protoimpl.X.CompressGZIP(file_tableacl_proto_rawDescData)
   201  	})
   202  	return file_tableacl_proto_rawDescData
   203  }
   204  
   205  var file_tableacl_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   206  var file_tableacl_proto_goTypes = []interface{}{
   207  	(*TableGroupSpec)(nil), // 0: tableacl.TableGroupSpec
   208  	(*Config)(nil),         // 1: tableacl.Config
   209  }
   210  var file_tableacl_proto_depIdxs = []int32{
   211  	0, // 0: tableacl.Config.table_groups:type_name -> tableacl.TableGroupSpec
   212  	1, // [1:1] is the sub-list for method output_type
   213  	1, // [1:1] is the sub-list for method input_type
   214  	1, // [1:1] is the sub-list for extension type_name
   215  	1, // [1:1] is the sub-list for extension extendee
   216  	0, // [0:1] is the sub-list for field type_name
   217  }
   218  
   219  func init() { file_tableacl_proto_init() }
   220  func file_tableacl_proto_init() {
   221  	if File_tableacl_proto != nil {
   222  		return
   223  	}
   224  	if !protoimpl.UnsafeEnabled {
   225  		file_tableacl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   226  			switch v := v.(*TableGroupSpec); i {
   227  			case 0:
   228  				return &v.state
   229  			case 1:
   230  				return &v.sizeCache
   231  			case 2:
   232  				return &v.unknownFields
   233  			default:
   234  				return nil
   235  			}
   236  		}
   237  		file_tableacl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   238  			switch v := v.(*Config); i {
   239  			case 0:
   240  				return &v.state
   241  			case 1:
   242  				return &v.sizeCache
   243  			case 2:
   244  				return &v.unknownFields
   245  			default:
   246  				return nil
   247  			}
   248  		}
   249  	}
   250  	type x struct{}
   251  	out := protoimpl.TypeBuilder{
   252  		File: protoimpl.DescBuilder{
   253  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   254  			RawDescriptor: file_tableacl_proto_rawDesc,
   255  			NumEnums:      0,
   256  			NumMessages:   2,
   257  			NumExtensions: 0,
   258  			NumServices:   0,
   259  		},
   260  		GoTypes:           file_tableacl_proto_goTypes,
   261  		DependencyIndexes: file_tableacl_proto_depIdxs,
   262  		MessageInfos:      file_tableacl_proto_msgTypes,
   263  	}.Build()
   264  	File_tableacl_proto = out.File
   265  	file_tableacl_proto_rawDesc = nil
   266  	file_tableacl_proto_goTypes = nil
   267  	file_tableacl_proto_depIdxs = nil
   268  }