...

Source file src/github.com/openshift/api/authorization/v1/generated.pb.go

Documentation: github.com/openshift/api/authorization/v1

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/openshift/api/authorization/v1/generated.proto
     3  
     4  package v1
     5  
     6  import (
     7  	fmt "fmt"
     8  
     9  	io "io"
    10  
    11  	proto "github.com/gogo/protobuf/proto"
    12  	v12 "k8s.io/api/core/v1"
    13  	v11 "k8s.io/api/rbac/v1"
    14  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    15  
    16  	math "math"
    17  	math_bits "math/bits"
    18  	reflect "reflect"
    19  	strings "strings"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  func (m *Action) Reset()      { *m = Action{} }
    34  func (*Action) ProtoMessage() {}
    35  func (*Action) Descriptor() ([]byte, []int) {
    36  	return fileDescriptor_39b89822f939ca46, []int{0}
    37  }
    38  func (m *Action) XXX_Unmarshal(b []byte) error {
    39  	return m.Unmarshal(b)
    40  }
    41  func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	b = b[:cap(b)]
    43  	n, err := m.MarshalToSizedBuffer(b)
    44  	if err != nil {
    45  		return nil, err
    46  	}
    47  	return b[:n], nil
    48  }
    49  func (m *Action) XXX_Merge(src proto.Message) {
    50  	xxx_messageInfo_Action.Merge(m, src)
    51  }
    52  func (m *Action) XXX_Size() int {
    53  	return m.Size()
    54  }
    55  func (m *Action) XXX_DiscardUnknown() {
    56  	xxx_messageInfo_Action.DiscardUnknown(m)
    57  }
    58  
    59  var xxx_messageInfo_Action proto.InternalMessageInfo
    60  
    61  func (m *ClusterRole) Reset()      { *m = ClusterRole{} }
    62  func (*ClusterRole) ProtoMessage() {}
    63  func (*ClusterRole) Descriptor() ([]byte, []int) {
    64  	return fileDescriptor_39b89822f939ca46, []int{1}
    65  }
    66  func (m *ClusterRole) XXX_Unmarshal(b []byte) error {
    67  	return m.Unmarshal(b)
    68  }
    69  func (m *ClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    70  	b = b[:cap(b)]
    71  	n, err := m.MarshalToSizedBuffer(b)
    72  	if err != nil {
    73  		return nil, err
    74  	}
    75  	return b[:n], nil
    76  }
    77  func (m *ClusterRole) XXX_Merge(src proto.Message) {
    78  	xxx_messageInfo_ClusterRole.Merge(m, src)
    79  }
    80  func (m *ClusterRole) XXX_Size() int {
    81  	return m.Size()
    82  }
    83  func (m *ClusterRole) XXX_DiscardUnknown() {
    84  	xxx_messageInfo_ClusterRole.DiscardUnknown(m)
    85  }
    86  
    87  var xxx_messageInfo_ClusterRole proto.InternalMessageInfo
    88  
    89  func (m *ClusterRoleBinding) Reset()      { *m = ClusterRoleBinding{} }
    90  func (*ClusterRoleBinding) ProtoMessage() {}
    91  func (*ClusterRoleBinding) Descriptor() ([]byte, []int) {
    92  	return fileDescriptor_39b89822f939ca46, []int{2}
    93  }
    94  func (m *ClusterRoleBinding) XXX_Unmarshal(b []byte) error {
    95  	return m.Unmarshal(b)
    96  }
    97  func (m *ClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    98  	b = b[:cap(b)]
    99  	n, err := m.MarshalToSizedBuffer(b)
   100  	if err != nil {
   101  		return nil, err
   102  	}
   103  	return b[:n], nil
   104  }
   105  func (m *ClusterRoleBinding) XXX_Merge(src proto.Message) {
   106  	xxx_messageInfo_ClusterRoleBinding.Merge(m, src)
   107  }
   108  func (m *ClusterRoleBinding) XXX_Size() int {
   109  	return m.Size()
   110  }
   111  func (m *ClusterRoleBinding) XXX_DiscardUnknown() {
   112  	xxx_messageInfo_ClusterRoleBinding.DiscardUnknown(m)
   113  }
   114  
   115  var xxx_messageInfo_ClusterRoleBinding proto.InternalMessageInfo
   116  
   117  func (m *ClusterRoleBindingList) Reset()      { *m = ClusterRoleBindingList{} }
   118  func (*ClusterRoleBindingList) ProtoMessage() {}
   119  func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) {
   120  	return fileDescriptor_39b89822f939ca46, []int{3}
   121  }
   122  func (m *ClusterRoleBindingList) XXX_Unmarshal(b []byte) error {
   123  	return m.Unmarshal(b)
   124  }
   125  func (m *ClusterRoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   126  	b = b[:cap(b)]
   127  	n, err := m.MarshalToSizedBuffer(b)
   128  	if err != nil {
   129  		return nil, err
   130  	}
   131  	return b[:n], nil
   132  }
   133  func (m *ClusterRoleBindingList) XXX_Merge(src proto.Message) {
   134  	xxx_messageInfo_ClusterRoleBindingList.Merge(m, src)
   135  }
   136  func (m *ClusterRoleBindingList) XXX_Size() int {
   137  	return m.Size()
   138  }
   139  func (m *ClusterRoleBindingList) XXX_DiscardUnknown() {
   140  	xxx_messageInfo_ClusterRoleBindingList.DiscardUnknown(m)
   141  }
   142  
   143  var xxx_messageInfo_ClusterRoleBindingList proto.InternalMessageInfo
   144  
   145  func (m *ClusterRoleList) Reset()      { *m = ClusterRoleList{} }
   146  func (*ClusterRoleList) ProtoMessage() {}
   147  func (*ClusterRoleList) Descriptor() ([]byte, []int) {
   148  	return fileDescriptor_39b89822f939ca46, []int{4}
   149  }
   150  func (m *ClusterRoleList) XXX_Unmarshal(b []byte) error {
   151  	return m.Unmarshal(b)
   152  }
   153  func (m *ClusterRoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   154  	b = b[:cap(b)]
   155  	n, err := m.MarshalToSizedBuffer(b)
   156  	if err != nil {
   157  		return nil, err
   158  	}
   159  	return b[:n], nil
   160  }
   161  func (m *ClusterRoleList) XXX_Merge(src proto.Message) {
   162  	xxx_messageInfo_ClusterRoleList.Merge(m, src)
   163  }
   164  func (m *ClusterRoleList) XXX_Size() int {
   165  	return m.Size()
   166  }
   167  func (m *ClusterRoleList) XXX_DiscardUnknown() {
   168  	xxx_messageInfo_ClusterRoleList.DiscardUnknown(m)
   169  }
   170  
   171  var xxx_messageInfo_ClusterRoleList proto.InternalMessageInfo
   172  
   173  func (m *GroupRestriction) Reset()      { *m = GroupRestriction{} }
   174  func (*GroupRestriction) ProtoMessage() {}
   175  func (*GroupRestriction) Descriptor() ([]byte, []int) {
   176  	return fileDescriptor_39b89822f939ca46, []int{5}
   177  }
   178  func (m *GroupRestriction) XXX_Unmarshal(b []byte) error {
   179  	return m.Unmarshal(b)
   180  }
   181  func (m *GroupRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   182  	b = b[:cap(b)]
   183  	n, err := m.MarshalToSizedBuffer(b)
   184  	if err != nil {
   185  		return nil, err
   186  	}
   187  	return b[:n], nil
   188  }
   189  func (m *GroupRestriction) XXX_Merge(src proto.Message) {
   190  	xxx_messageInfo_GroupRestriction.Merge(m, src)
   191  }
   192  func (m *GroupRestriction) XXX_Size() int {
   193  	return m.Size()
   194  }
   195  func (m *GroupRestriction) XXX_DiscardUnknown() {
   196  	xxx_messageInfo_GroupRestriction.DiscardUnknown(m)
   197  }
   198  
   199  var xxx_messageInfo_GroupRestriction proto.InternalMessageInfo
   200  
   201  func (m *IsPersonalSubjectAccessReview) Reset()      { *m = IsPersonalSubjectAccessReview{} }
   202  func (*IsPersonalSubjectAccessReview) ProtoMessage() {}
   203  func (*IsPersonalSubjectAccessReview) Descriptor() ([]byte, []int) {
   204  	return fileDescriptor_39b89822f939ca46, []int{6}
   205  }
   206  func (m *IsPersonalSubjectAccessReview) XXX_Unmarshal(b []byte) error {
   207  	return m.Unmarshal(b)
   208  }
   209  func (m *IsPersonalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   210  	b = b[:cap(b)]
   211  	n, err := m.MarshalToSizedBuffer(b)
   212  	if err != nil {
   213  		return nil, err
   214  	}
   215  	return b[:n], nil
   216  }
   217  func (m *IsPersonalSubjectAccessReview) XXX_Merge(src proto.Message) {
   218  	xxx_messageInfo_IsPersonalSubjectAccessReview.Merge(m, src)
   219  }
   220  func (m *IsPersonalSubjectAccessReview) XXX_Size() int {
   221  	return m.Size()
   222  }
   223  func (m *IsPersonalSubjectAccessReview) XXX_DiscardUnknown() {
   224  	xxx_messageInfo_IsPersonalSubjectAccessReview.DiscardUnknown(m)
   225  }
   226  
   227  var xxx_messageInfo_IsPersonalSubjectAccessReview proto.InternalMessageInfo
   228  
   229  func (m *LocalResourceAccessReview) Reset()      { *m = LocalResourceAccessReview{} }
   230  func (*LocalResourceAccessReview) ProtoMessage() {}
   231  func (*LocalResourceAccessReview) Descriptor() ([]byte, []int) {
   232  	return fileDescriptor_39b89822f939ca46, []int{7}
   233  }
   234  func (m *LocalResourceAccessReview) XXX_Unmarshal(b []byte) error {
   235  	return m.Unmarshal(b)
   236  }
   237  func (m *LocalResourceAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   238  	b = b[:cap(b)]
   239  	n, err := m.MarshalToSizedBuffer(b)
   240  	if err != nil {
   241  		return nil, err
   242  	}
   243  	return b[:n], nil
   244  }
   245  func (m *LocalResourceAccessReview) XXX_Merge(src proto.Message) {
   246  	xxx_messageInfo_LocalResourceAccessReview.Merge(m, src)
   247  }
   248  func (m *LocalResourceAccessReview) XXX_Size() int {
   249  	return m.Size()
   250  }
   251  func (m *LocalResourceAccessReview) XXX_DiscardUnknown() {
   252  	xxx_messageInfo_LocalResourceAccessReview.DiscardUnknown(m)
   253  }
   254  
   255  var xxx_messageInfo_LocalResourceAccessReview proto.InternalMessageInfo
   256  
   257  func (m *LocalSubjectAccessReview) Reset()      { *m = LocalSubjectAccessReview{} }
   258  func (*LocalSubjectAccessReview) ProtoMessage() {}
   259  func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int) {
   260  	return fileDescriptor_39b89822f939ca46, []int{8}
   261  }
   262  func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error {
   263  	return m.Unmarshal(b)
   264  }
   265  func (m *LocalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   266  	b = b[:cap(b)]
   267  	n, err := m.MarshalToSizedBuffer(b)
   268  	if err != nil {
   269  		return nil, err
   270  	}
   271  	return b[:n], nil
   272  }
   273  func (m *LocalSubjectAccessReview) XXX_Merge(src proto.Message) {
   274  	xxx_messageInfo_LocalSubjectAccessReview.Merge(m, src)
   275  }
   276  func (m *LocalSubjectAccessReview) XXX_Size() int {
   277  	return m.Size()
   278  }
   279  func (m *LocalSubjectAccessReview) XXX_DiscardUnknown() {
   280  	xxx_messageInfo_LocalSubjectAccessReview.DiscardUnknown(m)
   281  }
   282  
   283  var xxx_messageInfo_LocalSubjectAccessReview proto.InternalMessageInfo
   284  
   285  func (m *NamedClusterRole) Reset()      { *m = NamedClusterRole{} }
   286  func (*NamedClusterRole) ProtoMessage() {}
   287  func (*NamedClusterRole) Descriptor() ([]byte, []int) {
   288  	return fileDescriptor_39b89822f939ca46, []int{9}
   289  }
   290  func (m *NamedClusterRole) XXX_Unmarshal(b []byte) error {
   291  	return m.Unmarshal(b)
   292  }
   293  func (m *NamedClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   294  	b = b[:cap(b)]
   295  	n, err := m.MarshalToSizedBuffer(b)
   296  	if err != nil {
   297  		return nil, err
   298  	}
   299  	return b[:n], nil
   300  }
   301  func (m *NamedClusterRole) XXX_Merge(src proto.Message) {
   302  	xxx_messageInfo_NamedClusterRole.Merge(m, src)
   303  }
   304  func (m *NamedClusterRole) XXX_Size() int {
   305  	return m.Size()
   306  }
   307  func (m *NamedClusterRole) XXX_DiscardUnknown() {
   308  	xxx_messageInfo_NamedClusterRole.DiscardUnknown(m)
   309  }
   310  
   311  var xxx_messageInfo_NamedClusterRole proto.InternalMessageInfo
   312  
   313  func (m *NamedClusterRoleBinding) Reset()      { *m = NamedClusterRoleBinding{} }
   314  func (*NamedClusterRoleBinding) ProtoMessage() {}
   315  func (*NamedClusterRoleBinding) Descriptor() ([]byte, []int) {
   316  	return fileDescriptor_39b89822f939ca46, []int{10}
   317  }
   318  func (m *NamedClusterRoleBinding) XXX_Unmarshal(b []byte) error {
   319  	return m.Unmarshal(b)
   320  }
   321  func (m *NamedClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   322  	b = b[:cap(b)]
   323  	n, err := m.MarshalToSizedBuffer(b)
   324  	if err != nil {
   325  		return nil, err
   326  	}
   327  	return b[:n], nil
   328  }
   329  func (m *NamedClusterRoleBinding) XXX_Merge(src proto.Message) {
   330  	xxx_messageInfo_NamedClusterRoleBinding.Merge(m, src)
   331  }
   332  func (m *NamedClusterRoleBinding) XXX_Size() int {
   333  	return m.Size()
   334  }
   335  func (m *NamedClusterRoleBinding) XXX_DiscardUnknown() {
   336  	xxx_messageInfo_NamedClusterRoleBinding.DiscardUnknown(m)
   337  }
   338  
   339  var xxx_messageInfo_NamedClusterRoleBinding proto.InternalMessageInfo
   340  
   341  func (m *NamedRole) Reset()      { *m = NamedRole{} }
   342  func (*NamedRole) ProtoMessage() {}
   343  func (*NamedRole) Descriptor() ([]byte, []int) {
   344  	return fileDescriptor_39b89822f939ca46, []int{11}
   345  }
   346  func (m *NamedRole) XXX_Unmarshal(b []byte) error {
   347  	return m.Unmarshal(b)
   348  }
   349  func (m *NamedRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   350  	b = b[:cap(b)]
   351  	n, err := m.MarshalToSizedBuffer(b)
   352  	if err != nil {
   353  		return nil, err
   354  	}
   355  	return b[:n], nil
   356  }
   357  func (m *NamedRole) XXX_Merge(src proto.Message) {
   358  	xxx_messageInfo_NamedRole.Merge(m, src)
   359  }
   360  func (m *NamedRole) XXX_Size() int {
   361  	return m.Size()
   362  }
   363  func (m *NamedRole) XXX_DiscardUnknown() {
   364  	xxx_messageInfo_NamedRole.DiscardUnknown(m)
   365  }
   366  
   367  var xxx_messageInfo_NamedRole proto.InternalMessageInfo
   368  
   369  func (m *NamedRoleBinding) Reset()      { *m = NamedRoleBinding{} }
   370  func (*NamedRoleBinding) ProtoMessage() {}
   371  func (*NamedRoleBinding) Descriptor() ([]byte, []int) {
   372  	return fileDescriptor_39b89822f939ca46, []int{12}
   373  }
   374  func (m *NamedRoleBinding) XXX_Unmarshal(b []byte) error {
   375  	return m.Unmarshal(b)
   376  }
   377  func (m *NamedRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   378  	b = b[:cap(b)]
   379  	n, err := m.MarshalToSizedBuffer(b)
   380  	if err != nil {
   381  		return nil, err
   382  	}
   383  	return b[:n], nil
   384  }
   385  func (m *NamedRoleBinding) XXX_Merge(src proto.Message) {
   386  	xxx_messageInfo_NamedRoleBinding.Merge(m, src)
   387  }
   388  func (m *NamedRoleBinding) XXX_Size() int {
   389  	return m.Size()
   390  }
   391  func (m *NamedRoleBinding) XXX_DiscardUnknown() {
   392  	xxx_messageInfo_NamedRoleBinding.DiscardUnknown(m)
   393  }
   394  
   395  var xxx_messageInfo_NamedRoleBinding proto.InternalMessageInfo
   396  
   397  func (m *OptionalNames) Reset()      { *m = OptionalNames{} }
   398  func (*OptionalNames) ProtoMessage() {}
   399  func (*OptionalNames) Descriptor() ([]byte, []int) {
   400  	return fileDescriptor_39b89822f939ca46, []int{13}
   401  }
   402  func (m *OptionalNames) XXX_Unmarshal(b []byte) error {
   403  	return m.Unmarshal(b)
   404  }
   405  func (m *OptionalNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   406  	b = b[:cap(b)]
   407  	n, err := m.MarshalToSizedBuffer(b)
   408  	if err != nil {
   409  		return nil, err
   410  	}
   411  	return b[:n], nil
   412  }
   413  func (m *OptionalNames) XXX_Merge(src proto.Message) {
   414  	xxx_messageInfo_OptionalNames.Merge(m, src)
   415  }
   416  func (m *OptionalNames) XXX_Size() int {
   417  	return m.Size()
   418  }
   419  func (m *OptionalNames) XXX_DiscardUnknown() {
   420  	xxx_messageInfo_OptionalNames.DiscardUnknown(m)
   421  }
   422  
   423  var xxx_messageInfo_OptionalNames proto.InternalMessageInfo
   424  
   425  func (m *OptionalScopes) Reset()      { *m = OptionalScopes{} }
   426  func (*OptionalScopes) ProtoMessage() {}
   427  func (*OptionalScopes) Descriptor() ([]byte, []int) {
   428  	return fileDescriptor_39b89822f939ca46, []int{14}
   429  }
   430  func (m *OptionalScopes) XXX_Unmarshal(b []byte) error {
   431  	return m.Unmarshal(b)
   432  }
   433  func (m *OptionalScopes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   434  	b = b[:cap(b)]
   435  	n, err := m.MarshalToSizedBuffer(b)
   436  	if err != nil {
   437  		return nil, err
   438  	}
   439  	return b[:n], nil
   440  }
   441  func (m *OptionalScopes) XXX_Merge(src proto.Message) {
   442  	xxx_messageInfo_OptionalScopes.Merge(m, src)
   443  }
   444  func (m *OptionalScopes) XXX_Size() int {
   445  	return m.Size()
   446  }
   447  func (m *OptionalScopes) XXX_DiscardUnknown() {
   448  	xxx_messageInfo_OptionalScopes.DiscardUnknown(m)
   449  }
   450  
   451  var xxx_messageInfo_OptionalScopes proto.InternalMessageInfo
   452  
   453  func (m *PolicyRule) Reset()      { *m = PolicyRule{} }
   454  func (*PolicyRule) ProtoMessage() {}
   455  func (*PolicyRule) Descriptor() ([]byte, []int) {
   456  	return fileDescriptor_39b89822f939ca46, []int{15}
   457  }
   458  func (m *PolicyRule) XXX_Unmarshal(b []byte) error {
   459  	return m.Unmarshal(b)
   460  }
   461  func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   462  	b = b[:cap(b)]
   463  	n, err := m.MarshalToSizedBuffer(b)
   464  	if err != nil {
   465  		return nil, err
   466  	}
   467  	return b[:n], nil
   468  }
   469  func (m *PolicyRule) XXX_Merge(src proto.Message) {
   470  	xxx_messageInfo_PolicyRule.Merge(m, src)
   471  }
   472  func (m *PolicyRule) XXX_Size() int {
   473  	return m.Size()
   474  }
   475  func (m *PolicyRule) XXX_DiscardUnknown() {
   476  	xxx_messageInfo_PolicyRule.DiscardUnknown(m)
   477  }
   478  
   479  var xxx_messageInfo_PolicyRule proto.InternalMessageInfo
   480  
   481  func (m *ResourceAccessReview) Reset()      { *m = ResourceAccessReview{} }
   482  func (*ResourceAccessReview) ProtoMessage() {}
   483  func (*ResourceAccessReview) Descriptor() ([]byte, []int) {
   484  	return fileDescriptor_39b89822f939ca46, []int{16}
   485  }
   486  func (m *ResourceAccessReview) XXX_Unmarshal(b []byte) error {
   487  	return m.Unmarshal(b)
   488  }
   489  func (m *ResourceAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   490  	b = b[:cap(b)]
   491  	n, err := m.MarshalToSizedBuffer(b)
   492  	if err != nil {
   493  		return nil, err
   494  	}
   495  	return b[:n], nil
   496  }
   497  func (m *ResourceAccessReview) XXX_Merge(src proto.Message) {
   498  	xxx_messageInfo_ResourceAccessReview.Merge(m, src)
   499  }
   500  func (m *ResourceAccessReview) XXX_Size() int {
   501  	return m.Size()
   502  }
   503  func (m *ResourceAccessReview) XXX_DiscardUnknown() {
   504  	xxx_messageInfo_ResourceAccessReview.DiscardUnknown(m)
   505  }
   506  
   507  var xxx_messageInfo_ResourceAccessReview proto.InternalMessageInfo
   508  
   509  func (m *ResourceAccessReviewResponse) Reset()      { *m = ResourceAccessReviewResponse{} }
   510  func (*ResourceAccessReviewResponse) ProtoMessage() {}
   511  func (*ResourceAccessReviewResponse) Descriptor() ([]byte, []int) {
   512  	return fileDescriptor_39b89822f939ca46, []int{17}
   513  }
   514  func (m *ResourceAccessReviewResponse) XXX_Unmarshal(b []byte) error {
   515  	return m.Unmarshal(b)
   516  }
   517  func (m *ResourceAccessReviewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   518  	b = b[:cap(b)]
   519  	n, err := m.MarshalToSizedBuffer(b)
   520  	if err != nil {
   521  		return nil, err
   522  	}
   523  	return b[:n], nil
   524  }
   525  func (m *ResourceAccessReviewResponse) XXX_Merge(src proto.Message) {
   526  	xxx_messageInfo_ResourceAccessReviewResponse.Merge(m, src)
   527  }
   528  func (m *ResourceAccessReviewResponse) XXX_Size() int {
   529  	return m.Size()
   530  }
   531  func (m *ResourceAccessReviewResponse) XXX_DiscardUnknown() {
   532  	xxx_messageInfo_ResourceAccessReviewResponse.DiscardUnknown(m)
   533  }
   534  
   535  var xxx_messageInfo_ResourceAccessReviewResponse proto.InternalMessageInfo
   536  
   537  func (m *Role) Reset()      { *m = Role{} }
   538  func (*Role) ProtoMessage() {}
   539  func (*Role) Descriptor() ([]byte, []int) {
   540  	return fileDescriptor_39b89822f939ca46, []int{18}
   541  }
   542  func (m *Role) XXX_Unmarshal(b []byte) error {
   543  	return m.Unmarshal(b)
   544  }
   545  func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   546  	b = b[:cap(b)]
   547  	n, err := m.MarshalToSizedBuffer(b)
   548  	if err != nil {
   549  		return nil, err
   550  	}
   551  	return b[:n], nil
   552  }
   553  func (m *Role) XXX_Merge(src proto.Message) {
   554  	xxx_messageInfo_Role.Merge(m, src)
   555  }
   556  func (m *Role) XXX_Size() int {
   557  	return m.Size()
   558  }
   559  func (m *Role) XXX_DiscardUnknown() {
   560  	xxx_messageInfo_Role.DiscardUnknown(m)
   561  }
   562  
   563  var xxx_messageInfo_Role proto.InternalMessageInfo
   564  
   565  func (m *RoleBinding) Reset()      { *m = RoleBinding{} }
   566  func (*RoleBinding) ProtoMessage() {}
   567  func (*RoleBinding) Descriptor() ([]byte, []int) {
   568  	return fileDescriptor_39b89822f939ca46, []int{19}
   569  }
   570  func (m *RoleBinding) XXX_Unmarshal(b []byte) error {
   571  	return m.Unmarshal(b)
   572  }
   573  func (m *RoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   574  	b = b[:cap(b)]
   575  	n, err := m.MarshalToSizedBuffer(b)
   576  	if err != nil {
   577  		return nil, err
   578  	}
   579  	return b[:n], nil
   580  }
   581  func (m *RoleBinding) XXX_Merge(src proto.Message) {
   582  	xxx_messageInfo_RoleBinding.Merge(m, src)
   583  }
   584  func (m *RoleBinding) XXX_Size() int {
   585  	return m.Size()
   586  }
   587  func (m *RoleBinding) XXX_DiscardUnknown() {
   588  	xxx_messageInfo_RoleBinding.DiscardUnknown(m)
   589  }
   590  
   591  var xxx_messageInfo_RoleBinding proto.InternalMessageInfo
   592  
   593  func (m *RoleBindingList) Reset()      { *m = RoleBindingList{} }
   594  func (*RoleBindingList) ProtoMessage() {}
   595  func (*RoleBindingList) Descriptor() ([]byte, []int) {
   596  	return fileDescriptor_39b89822f939ca46, []int{20}
   597  }
   598  func (m *RoleBindingList) XXX_Unmarshal(b []byte) error {
   599  	return m.Unmarshal(b)
   600  }
   601  func (m *RoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   602  	b = b[:cap(b)]
   603  	n, err := m.MarshalToSizedBuffer(b)
   604  	if err != nil {
   605  		return nil, err
   606  	}
   607  	return b[:n], nil
   608  }
   609  func (m *RoleBindingList) XXX_Merge(src proto.Message) {
   610  	xxx_messageInfo_RoleBindingList.Merge(m, src)
   611  }
   612  func (m *RoleBindingList) XXX_Size() int {
   613  	return m.Size()
   614  }
   615  func (m *RoleBindingList) XXX_DiscardUnknown() {
   616  	xxx_messageInfo_RoleBindingList.DiscardUnknown(m)
   617  }
   618  
   619  var xxx_messageInfo_RoleBindingList proto.InternalMessageInfo
   620  
   621  func (m *RoleBindingRestriction) Reset()      { *m = RoleBindingRestriction{} }
   622  func (*RoleBindingRestriction) ProtoMessage() {}
   623  func (*RoleBindingRestriction) Descriptor() ([]byte, []int) {
   624  	return fileDescriptor_39b89822f939ca46, []int{21}
   625  }
   626  func (m *RoleBindingRestriction) XXX_Unmarshal(b []byte) error {
   627  	return m.Unmarshal(b)
   628  }
   629  func (m *RoleBindingRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   630  	b = b[:cap(b)]
   631  	n, err := m.MarshalToSizedBuffer(b)
   632  	if err != nil {
   633  		return nil, err
   634  	}
   635  	return b[:n], nil
   636  }
   637  func (m *RoleBindingRestriction) XXX_Merge(src proto.Message) {
   638  	xxx_messageInfo_RoleBindingRestriction.Merge(m, src)
   639  }
   640  func (m *RoleBindingRestriction) XXX_Size() int {
   641  	return m.Size()
   642  }
   643  func (m *RoleBindingRestriction) XXX_DiscardUnknown() {
   644  	xxx_messageInfo_RoleBindingRestriction.DiscardUnknown(m)
   645  }
   646  
   647  var xxx_messageInfo_RoleBindingRestriction proto.InternalMessageInfo
   648  
   649  func (m *RoleBindingRestrictionList) Reset()      { *m = RoleBindingRestrictionList{} }
   650  func (*RoleBindingRestrictionList) ProtoMessage() {}
   651  func (*RoleBindingRestrictionList) Descriptor() ([]byte, []int) {
   652  	return fileDescriptor_39b89822f939ca46, []int{22}
   653  }
   654  func (m *RoleBindingRestrictionList) XXX_Unmarshal(b []byte) error {
   655  	return m.Unmarshal(b)
   656  }
   657  func (m *RoleBindingRestrictionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   658  	b = b[:cap(b)]
   659  	n, err := m.MarshalToSizedBuffer(b)
   660  	if err != nil {
   661  		return nil, err
   662  	}
   663  	return b[:n], nil
   664  }
   665  func (m *RoleBindingRestrictionList) XXX_Merge(src proto.Message) {
   666  	xxx_messageInfo_RoleBindingRestrictionList.Merge(m, src)
   667  }
   668  func (m *RoleBindingRestrictionList) XXX_Size() int {
   669  	return m.Size()
   670  }
   671  func (m *RoleBindingRestrictionList) XXX_DiscardUnknown() {
   672  	xxx_messageInfo_RoleBindingRestrictionList.DiscardUnknown(m)
   673  }
   674  
   675  var xxx_messageInfo_RoleBindingRestrictionList proto.InternalMessageInfo
   676  
   677  func (m *RoleBindingRestrictionSpec) Reset()      { *m = RoleBindingRestrictionSpec{} }
   678  func (*RoleBindingRestrictionSpec) ProtoMessage() {}
   679  func (*RoleBindingRestrictionSpec) Descriptor() ([]byte, []int) {
   680  	return fileDescriptor_39b89822f939ca46, []int{23}
   681  }
   682  func (m *RoleBindingRestrictionSpec) XXX_Unmarshal(b []byte) error {
   683  	return m.Unmarshal(b)
   684  }
   685  func (m *RoleBindingRestrictionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   686  	b = b[:cap(b)]
   687  	n, err := m.MarshalToSizedBuffer(b)
   688  	if err != nil {
   689  		return nil, err
   690  	}
   691  	return b[:n], nil
   692  }
   693  func (m *RoleBindingRestrictionSpec) XXX_Merge(src proto.Message) {
   694  	xxx_messageInfo_RoleBindingRestrictionSpec.Merge(m, src)
   695  }
   696  func (m *RoleBindingRestrictionSpec) XXX_Size() int {
   697  	return m.Size()
   698  }
   699  func (m *RoleBindingRestrictionSpec) XXX_DiscardUnknown() {
   700  	xxx_messageInfo_RoleBindingRestrictionSpec.DiscardUnknown(m)
   701  }
   702  
   703  var xxx_messageInfo_RoleBindingRestrictionSpec proto.InternalMessageInfo
   704  
   705  func (m *RoleList) Reset()      { *m = RoleList{} }
   706  func (*RoleList) ProtoMessage() {}
   707  func (*RoleList) Descriptor() ([]byte, []int) {
   708  	return fileDescriptor_39b89822f939ca46, []int{24}
   709  }
   710  func (m *RoleList) XXX_Unmarshal(b []byte) error {
   711  	return m.Unmarshal(b)
   712  }
   713  func (m *RoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   714  	b = b[:cap(b)]
   715  	n, err := m.MarshalToSizedBuffer(b)
   716  	if err != nil {
   717  		return nil, err
   718  	}
   719  	return b[:n], nil
   720  }
   721  func (m *RoleList) XXX_Merge(src proto.Message) {
   722  	xxx_messageInfo_RoleList.Merge(m, src)
   723  }
   724  func (m *RoleList) XXX_Size() int {
   725  	return m.Size()
   726  }
   727  func (m *RoleList) XXX_DiscardUnknown() {
   728  	xxx_messageInfo_RoleList.DiscardUnknown(m)
   729  }
   730  
   731  var xxx_messageInfo_RoleList proto.InternalMessageInfo
   732  
   733  func (m *SelfSubjectRulesReview) Reset()      { *m = SelfSubjectRulesReview{} }
   734  func (*SelfSubjectRulesReview) ProtoMessage() {}
   735  func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int) {
   736  	return fileDescriptor_39b89822f939ca46, []int{25}
   737  }
   738  func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error {
   739  	return m.Unmarshal(b)
   740  }
   741  func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   742  	b = b[:cap(b)]
   743  	n, err := m.MarshalToSizedBuffer(b)
   744  	if err != nil {
   745  		return nil, err
   746  	}
   747  	return b[:n], nil
   748  }
   749  func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message) {
   750  	xxx_messageInfo_SelfSubjectRulesReview.Merge(m, src)
   751  }
   752  func (m *SelfSubjectRulesReview) XXX_Size() int {
   753  	return m.Size()
   754  }
   755  func (m *SelfSubjectRulesReview) XXX_DiscardUnknown() {
   756  	xxx_messageInfo_SelfSubjectRulesReview.DiscardUnknown(m)
   757  }
   758  
   759  var xxx_messageInfo_SelfSubjectRulesReview proto.InternalMessageInfo
   760  
   761  func (m *SelfSubjectRulesReviewSpec) Reset()      { *m = SelfSubjectRulesReviewSpec{} }
   762  func (*SelfSubjectRulesReviewSpec) ProtoMessage() {}
   763  func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int) {
   764  	return fileDescriptor_39b89822f939ca46, []int{26}
   765  }
   766  func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error {
   767  	return m.Unmarshal(b)
   768  }
   769  func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   770  	b = b[:cap(b)]
   771  	n, err := m.MarshalToSizedBuffer(b)
   772  	if err != nil {
   773  		return nil, err
   774  	}
   775  	return b[:n], nil
   776  }
   777  func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message) {
   778  	xxx_messageInfo_SelfSubjectRulesReviewSpec.Merge(m, src)
   779  }
   780  func (m *SelfSubjectRulesReviewSpec) XXX_Size() int {
   781  	return m.Size()
   782  }
   783  func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown() {
   784  	xxx_messageInfo_SelfSubjectRulesReviewSpec.DiscardUnknown(m)
   785  }
   786  
   787  var xxx_messageInfo_SelfSubjectRulesReviewSpec proto.InternalMessageInfo
   788  
   789  func (m *ServiceAccountReference) Reset()      { *m = ServiceAccountReference{} }
   790  func (*ServiceAccountReference) ProtoMessage() {}
   791  func (*ServiceAccountReference) Descriptor() ([]byte, []int) {
   792  	return fileDescriptor_39b89822f939ca46, []int{27}
   793  }
   794  func (m *ServiceAccountReference) XXX_Unmarshal(b []byte) error {
   795  	return m.Unmarshal(b)
   796  }
   797  func (m *ServiceAccountReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   798  	b = b[:cap(b)]
   799  	n, err := m.MarshalToSizedBuffer(b)
   800  	if err != nil {
   801  		return nil, err
   802  	}
   803  	return b[:n], nil
   804  }
   805  func (m *ServiceAccountReference) XXX_Merge(src proto.Message) {
   806  	xxx_messageInfo_ServiceAccountReference.Merge(m, src)
   807  }
   808  func (m *ServiceAccountReference) XXX_Size() int {
   809  	return m.Size()
   810  }
   811  func (m *ServiceAccountReference) XXX_DiscardUnknown() {
   812  	xxx_messageInfo_ServiceAccountReference.DiscardUnknown(m)
   813  }
   814  
   815  var xxx_messageInfo_ServiceAccountReference proto.InternalMessageInfo
   816  
   817  func (m *ServiceAccountRestriction) Reset()      { *m = ServiceAccountRestriction{} }
   818  func (*ServiceAccountRestriction) ProtoMessage() {}
   819  func (*ServiceAccountRestriction) Descriptor() ([]byte, []int) {
   820  	return fileDescriptor_39b89822f939ca46, []int{28}
   821  }
   822  func (m *ServiceAccountRestriction) XXX_Unmarshal(b []byte) error {
   823  	return m.Unmarshal(b)
   824  }
   825  func (m *ServiceAccountRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   826  	b = b[:cap(b)]
   827  	n, err := m.MarshalToSizedBuffer(b)
   828  	if err != nil {
   829  		return nil, err
   830  	}
   831  	return b[:n], nil
   832  }
   833  func (m *ServiceAccountRestriction) XXX_Merge(src proto.Message) {
   834  	xxx_messageInfo_ServiceAccountRestriction.Merge(m, src)
   835  }
   836  func (m *ServiceAccountRestriction) XXX_Size() int {
   837  	return m.Size()
   838  }
   839  func (m *ServiceAccountRestriction) XXX_DiscardUnknown() {
   840  	xxx_messageInfo_ServiceAccountRestriction.DiscardUnknown(m)
   841  }
   842  
   843  var xxx_messageInfo_ServiceAccountRestriction proto.InternalMessageInfo
   844  
   845  func (m *SubjectAccessReview) Reset()      { *m = SubjectAccessReview{} }
   846  func (*SubjectAccessReview) ProtoMessage() {}
   847  func (*SubjectAccessReview) Descriptor() ([]byte, []int) {
   848  	return fileDescriptor_39b89822f939ca46, []int{29}
   849  }
   850  func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error {
   851  	return m.Unmarshal(b)
   852  }
   853  func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   854  	b = b[:cap(b)]
   855  	n, err := m.MarshalToSizedBuffer(b)
   856  	if err != nil {
   857  		return nil, err
   858  	}
   859  	return b[:n], nil
   860  }
   861  func (m *SubjectAccessReview) XXX_Merge(src proto.Message) {
   862  	xxx_messageInfo_SubjectAccessReview.Merge(m, src)
   863  }
   864  func (m *SubjectAccessReview) XXX_Size() int {
   865  	return m.Size()
   866  }
   867  func (m *SubjectAccessReview) XXX_DiscardUnknown() {
   868  	xxx_messageInfo_SubjectAccessReview.DiscardUnknown(m)
   869  }
   870  
   871  var xxx_messageInfo_SubjectAccessReview proto.InternalMessageInfo
   872  
   873  func (m *SubjectAccessReviewResponse) Reset()      { *m = SubjectAccessReviewResponse{} }
   874  func (*SubjectAccessReviewResponse) ProtoMessage() {}
   875  func (*SubjectAccessReviewResponse) Descriptor() ([]byte, []int) {
   876  	return fileDescriptor_39b89822f939ca46, []int{30}
   877  }
   878  func (m *SubjectAccessReviewResponse) XXX_Unmarshal(b []byte) error {
   879  	return m.Unmarshal(b)
   880  }
   881  func (m *SubjectAccessReviewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   882  	b = b[:cap(b)]
   883  	n, err := m.MarshalToSizedBuffer(b)
   884  	if err != nil {
   885  		return nil, err
   886  	}
   887  	return b[:n], nil
   888  }
   889  func (m *SubjectAccessReviewResponse) XXX_Merge(src proto.Message) {
   890  	xxx_messageInfo_SubjectAccessReviewResponse.Merge(m, src)
   891  }
   892  func (m *SubjectAccessReviewResponse) XXX_Size() int {
   893  	return m.Size()
   894  }
   895  func (m *SubjectAccessReviewResponse) XXX_DiscardUnknown() {
   896  	xxx_messageInfo_SubjectAccessReviewResponse.DiscardUnknown(m)
   897  }
   898  
   899  var xxx_messageInfo_SubjectAccessReviewResponse proto.InternalMessageInfo
   900  
   901  func (m *SubjectRulesReview) Reset()      { *m = SubjectRulesReview{} }
   902  func (*SubjectRulesReview) ProtoMessage() {}
   903  func (*SubjectRulesReview) Descriptor() ([]byte, []int) {
   904  	return fileDescriptor_39b89822f939ca46, []int{31}
   905  }
   906  func (m *SubjectRulesReview) XXX_Unmarshal(b []byte) error {
   907  	return m.Unmarshal(b)
   908  }
   909  func (m *SubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   910  	b = b[:cap(b)]
   911  	n, err := m.MarshalToSizedBuffer(b)
   912  	if err != nil {
   913  		return nil, err
   914  	}
   915  	return b[:n], nil
   916  }
   917  func (m *SubjectRulesReview) XXX_Merge(src proto.Message) {
   918  	xxx_messageInfo_SubjectRulesReview.Merge(m, src)
   919  }
   920  func (m *SubjectRulesReview) XXX_Size() int {
   921  	return m.Size()
   922  }
   923  func (m *SubjectRulesReview) XXX_DiscardUnknown() {
   924  	xxx_messageInfo_SubjectRulesReview.DiscardUnknown(m)
   925  }
   926  
   927  var xxx_messageInfo_SubjectRulesReview proto.InternalMessageInfo
   928  
   929  func (m *SubjectRulesReviewSpec) Reset()      { *m = SubjectRulesReviewSpec{} }
   930  func (*SubjectRulesReviewSpec) ProtoMessage() {}
   931  func (*SubjectRulesReviewSpec) Descriptor() ([]byte, []int) {
   932  	return fileDescriptor_39b89822f939ca46, []int{32}
   933  }
   934  func (m *SubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error {
   935  	return m.Unmarshal(b)
   936  }
   937  func (m *SubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   938  	b = b[:cap(b)]
   939  	n, err := m.MarshalToSizedBuffer(b)
   940  	if err != nil {
   941  		return nil, err
   942  	}
   943  	return b[:n], nil
   944  }
   945  func (m *SubjectRulesReviewSpec) XXX_Merge(src proto.Message) {
   946  	xxx_messageInfo_SubjectRulesReviewSpec.Merge(m, src)
   947  }
   948  func (m *SubjectRulesReviewSpec) XXX_Size() int {
   949  	return m.Size()
   950  }
   951  func (m *SubjectRulesReviewSpec) XXX_DiscardUnknown() {
   952  	xxx_messageInfo_SubjectRulesReviewSpec.DiscardUnknown(m)
   953  }
   954  
   955  var xxx_messageInfo_SubjectRulesReviewSpec proto.InternalMessageInfo
   956  
   957  func (m *SubjectRulesReviewStatus) Reset()      { *m = SubjectRulesReviewStatus{} }
   958  func (*SubjectRulesReviewStatus) ProtoMessage() {}
   959  func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int) {
   960  	return fileDescriptor_39b89822f939ca46, []int{33}
   961  }
   962  func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error {
   963  	return m.Unmarshal(b)
   964  }
   965  func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   966  	b = b[:cap(b)]
   967  	n, err := m.MarshalToSizedBuffer(b)
   968  	if err != nil {
   969  		return nil, err
   970  	}
   971  	return b[:n], nil
   972  }
   973  func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message) {
   974  	xxx_messageInfo_SubjectRulesReviewStatus.Merge(m, src)
   975  }
   976  func (m *SubjectRulesReviewStatus) XXX_Size() int {
   977  	return m.Size()
   978  }
   979  func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown() {
   980  	xxx_messageInfo_SubjectRulesReviewStatus.DiscardUnknown(m)
   981  }
   982  
   983  var xxx_messageInfo_SubjectRulesReviewStatus proto.InternalMessageInfo
   984  
   985  func (m *UserRestriction) Reset()      { *m = UserRestriction{} }
   986  func (*UserRestriction) ProtoMessage() {}
   987  func (*UserRestriction) Descriptor() ([]byte, []int) {
   988  	return fileDescriptor_39b89822f939ca46, []int{34}
   989  }
   990  func (m *UserRestriction) XXX_Unmarshal(b []byte) error {
   991  	return m.Unmarshal(b)
   992  }
   993  func (m *UserRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   994  	b = b[:cap(b)]
   995  	n, err := m.MarshalToSizedBuffer(b)
   996  	if err != nil {
   997  		return nil, err
   998  	}
   999  	return b[:n], nil
  1000  }
  1001  func (m *UserRestriction) XXX_Merge(src proto.Message) {
  1002  	xxx_messageInfo_UserRestriction.Merge(m, src)
  1003  }
  1004  func (m *UserRestriction) XXX_Size() int {
  1005  	return m.Size()
  1006  }
  1007  func (m *UserRestriction) XXX_DiscardUnknown() {
  1008  	xxx_messageInfo_UserRestriction.DiscardUnknown(m)
  1009  }
  1010  
  1011  var xxx_messageInfo_UserRestriction proto.InternalMessageInfo
  1012  
  1013  func init() {
  1014  	proto.RegisterType((*Action)(nil), "github.com.openshift.api.authorization.v1.Action")
  1015  	proto.RegisterType((*ClusterRole)(nil), "github.com.openshift.api.authorization.v1.ClusterRole")
  1016  	proto.RegisterType((*ClusterRoleBinding)(nil), "github.com.openshift.api.authorization.v1.ClusterRoleBinding")
  1017  	proto.RegisterType((*ClusterRoleBindingList)(nil), "github.com.openshift.api.authorization.v1.ClusterRoleBindingList")
  1018  	proto.RegisterType((*ClusterRoleList)(nil), "github.com.openshift.api.authorization.v1.ClusterRoleList")
  1019  	proto.RegisterType((*GroupRestriction)(nil), "github.com.openshift.api.authorization.v1.GroupRestriction")
  1020  	proto.RegisterType((*IsPersonalSubjectAccessReview)(nil), "github.com.openshift.api.authorization.v1.IsPersonalSubjectAccessReview")
  1021  	proto.RegisterType((*LocalResourceAccessReview)(nil), "github.com.openshift.api.authorization.v1.LocalResourceAccessReview")
  1022  	proto.RegisterType((*LocalSubjectAccessReview)(nil), "github.com.openshift.api.authorization.v1.LocalSubjectAccessReview")
  1023  	proto.RegisterType((*NamedClusterRole)(nil), "github.com.openshift.api.authorization.v1.NamedClusterRole")
  1024  	proto.RegisterType((*NamedClusterRoleBinding)(nil), "github.com.openshift.api.authorization.v1.NamedClusterRoleBinding")
  1025  	proto.RegisterType((*NamedRole)(nil), "github.com.openshift.api.authorization.v1.NamedRole")
  1026  	proto.RegisterType((*NamedRoleBinding)(nil), "github.com.openshift.api.authorization.v1.NamedRoleBinding")
  1027  	proto.RegisterType((*OptionalNames)(nil), "github.com.openshift.api.authorization.v1.OptionalNames")
  1028  	proto.RegisterType((*OptionalScopes)(nil), "github.com.openshift.api.authorization.v1.OptionalScopes")
  1029  	proto.RegisterType((*PolicyRule)(nil), "github.com.openshift.api.authorization.v1.PolicyRule")
  1030  	proto.RegisterType((*ResourceAccessReview)(nil), "github.com.openshift.api.authorization.v1.ResourceAccessReview")
  1031  	proto.RegisterType((*ResourceAccessReviewResponse)(nil), "github.com.openshift.api.authorization.v1.ResourceAccessReviewResponse")
  1032  	proto.RegisterType((*Role)(nil), "github.com.openshift.api.authorization.v1.Role")
  1033  	proto.RegisterType((*RoleBinding)(nil), "github.com.openshift.api.authorization.v1.RoleBinding")
  1034  	proto.RegisterType((*RoleBindingList)(nil), "github.com.openshift.api.authorization.v1.RoleBindingList")
  1035  	proto.RegisterType((*RoleBindingRestriction)(nil), "github.com.openshift.api.authorization.v1.RoleBindingRestriction")
  1036  	proto.RegisterType((*RoleBindingRestrictionList)(nil), "github.com.openshift.api.authorization.v1.RoleBindingRestrictionList")
  1037  	proto.RegisterType((*RoleBindingRestrictionSpec)(nil), "github.com.openshift.api.authorization.v1.RoleBindingRestrictionSpec")
  1038  	proto.RegisterType((*RoleList)(nil), "github.com.openshift.api.authorization.v1.RoleList")
  1039  	proto.RegisterType((*SelfSubjectRulesReview)(nil), "github.com.openshift.api.authorization.v1.SelfSubjectRulesReview")
  1040  	proto.RegisterType((*SelfSubjectRulesReviewSpec)(nil), "github.com.openshift.api.authorization.v1.SelfSubjectRulesReviewSpec")
  1041  	proto.RegisterType((*ServiceAccountReference)(nil), "github.com.openshift.api.authorization.v1.ServiceAccountReference")
  1042  	proto.RegisterType((*ServiceAccountRestriction)(nil), "github.com.openshift.api.authorization.v1.ServiceAccountRestriction")
  1043  	proto.RegisterType((*SubjectAccessReview)(nil), "github.com.openshift.api.authorization.v1.SubjectAccessReview")
  1044  	proto.RegisterType((*SubjectAccessReviewResponse)(nil), "github.com.openshift.api.authorization.v1.SubjectAccessReviewResponse")
  1045  	proto.RegisterType((*SubjectRulesReview)(nil), "github.com.openshift.api.authorization.v1.SubjectRulesReview")
  1046  	proto.RegisterType((*SubjectRulesReviewSpec)(nil), "github.com.openshift.api.authorization.v1.SubjectRulesReviewSpec")
  1047  	proto.RegisterType((*SubjectRulesReviewStatus)(nil), "github.com.openshift.api.authorization.v1.SubjectRulesReviewStatus")
  1048  	proto.RegisterType((*UserRestriction)(nil), "github.com.openshift.api.authorization.v1.UserRestriction")
  1049  }
  1050  
  1051  func init() {
  1052  	proto.RegisterFile("github.com/openshift/api/authorization/v1/generated.proto", fileDescriptor_39b89822f939ca46)
  1053  }
  1054  
  1055  var fileDescriptor_39b89822f939ca46 = []byte{
  1056  	// 1821 bytes of a gzipped FileDescriptorProto
  1057  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x19, 0xcd, 0x6f, 0x1b, 0x59,
  1058  	0x3d, 0xcf, 0x76, 0x1c, 0xfb, 0xe7, 0x26, 0xce, 0xbe, 0x66, 0xdb, 0x69, 0xa0, 0xb6, 0x35, 0x20,
  1059  	0x48, 0x05, 0x3b, 0x26, 0x01, 0x4a, 0xdb, 0x15, 0x5a, 0xd9, 0xdd, 0xa8, 0x8a, 0x54, 0x9a, 0xec,
  1060  	0x0b, 0xbb, 0x5a, 0x2d, 0x1f, 0x62, 0x3c, 0x79, 0xb1, 0x87, 0x8c, 0x67, 0xac, 0x79, 0xe3, 0x94,
  1061  	0x82, 0x90, 0x0a, 0x12, 0x07, 0x2e, 0x68, 0x2f, 0x20, 0x8e, 0x20, 0xfe, 0x00, 0xc4, 0x05, 0x09,
  1062  	0x24, 0x38, 0x71, 0xe8, 0x81, 0x43, 0x25, 0x2e, 0x15, 0x42, 0x86, 0xba, 0x88, 0x03, 0x07, 0xfe,
  1063  	0x06, 0xf4, 0xde, 0xbc, 0xf1, 0x7c, 0x78, 0xac, 0x78, 0x92, 0x26, 0x82, 0x55, 0x6f, 0x9e, 0xf7,
  1064  	0xfb, 0xfe, 0x7c, 0xbf, 0xdf, 0x33, 0xdc, 0xee, 0x9a, 0x5e, 0x6f, 0xd8, 0xd1, 0x0c, 0xa7, 0xdf,
  1065  	0x74, 0x06, 0xd4, 0x66, 0x3d, 0xf3, 0xd0, 0x6b, 0xea, 0x03, 0xb3, 0xa9, 0x0f, 0xbd, 0x9e, 0xe3,
  1066  	0x9a, 0xdf, 0xd5, 0x3d, 0xd3, 0xb1, 0x9b, 0xc7, 0x9b, 0xcd, 0x2e, 0xb5, 0xa9, 0xab, 0x7b, 0xf4,
  1067  	0x40, 0x1b, 0xb8, 0x8e, 0xe7, 0xe0, 0x1b, 0x21, 0xa9, 0x36, 0x21, 0xd5, 0xf4, 0x81, 0xa9, 0xc5,
  1068  	0x48, 0xb5, 0xe3, 0xcd, 0xf5, 0x37, 0x22, 0x52, 0xba, 0x4e, 0xd7, 0x69, 0x0a, 0x0e, 0x9d, 0xe1,
  1069  	0xa1, 0xf8, 0x12, 0x1f, 0xe2, 0x97, 0xcf, 0x79, 0x5d, 0x3d, 0xba, 0xc5, 0x34, 0xd3, 0x11, 0x6a,
  1070  	0x18, 0x8e, 0x4b, 0x53, 0xa4, 0xc7, 0x70, 0xdc, 0x8e, 0x6e, 0xa4, 0xe1, 0x7c, 0x21, 0xc4, 0xe9,
  1071  	0xeb, 0x46, 0xcf, 0xb4, 0xa9, 0xfb, 0xa8, 0x39, 0x38, 0xea, 0xf2, 0x03, 0xd6, 0xec, 0x53, 0x4f,
  1072  	0x4f, 0xa3, 0x6a, 0xce, 0xa2, 0x72, 0x87, 0xb6, 0x67, 0xf6, 0xe9, 0x14, 0xc1, 0xcd, 0x93, 0x08,
  1073  	0x98, 0xd1, 0xa3, 0x7d, 0x3d, 0x49, 0xa7, 0xfe, 0xa0, 0x00, 0xc5, 0x96, 0xc1, 0x7d, 0x84, 0x9b,
  1074  	0x50, 0xb6, 0xf5, 0x3e, 0x65, 0x03, 0xdd, 0xa0, 0x0a, 0x6a, 0xa0, 0x8d, 0x72, 0xfb, 0xb5, 0x27,
  1075  	0xa3, 0xfa, 0xc2, 0x78, 0x54, 0x2f, 0x3f, 0x08, 0x00, 0x24, 0xc4, 0xc1, 0x0d, 0x28, 0x1c, 0x53,
  1076  	0xb7, 0xa3, 0xe4, 0x04, 0xee, 0x25, 0x89, 0x5b, 0x78, 0x8f, 0xba, 0x1d, 0x22, 0x20, 0xf8, 0x36,
  1077  	0xac, 0xba, 0x94, 0x39, 0x43, 0xd7, 0xa0, 0xad, 0xbd, 0x9d, 0x7b, 0xae, 0x33, 0x1c, 0x28, 0x79,
  1078  	0x81, 0xbd, 0x2c, 0xb1, 0x17, 0xc5, 0x21, 0x99, 0x42, 0xc3, 0x6f, 0x01, 0x8e, 0x9c, 0xbd, 0x47,
  1079  	0x5d, 0x66, 0x3a, 0xb6, 0x52, 0x10, 0xc4, 0x55, 0x49, 0xbc, 0x24, 0x8f, 0x49, 0x0a, 0x2a, 0xfe,
  1080  	0x2c, 0x94, 0x82, 0x53, 0x65, 0x51, 0x90, 0xad, 0x4a, 0xb2, 0x12, 0x91, 0xe7, 0x64, 0x82, 0x81,
  1081  	0x6f, 0xc1, 0xa5, 0xe0, 0x37, 0xb7, 0x55, 0x29, 0x0a, 0x8a, 0x35, 0x49, 0x71, 0x89, 0x44, 0x60,
  1082  	0x24, 0x86, 0xc9, 0xbd, 0x30, 0xd0, 0xbd, 0x9e, 0x52, 0x8a, 0x7b, 0x61, 0x4f, 0xf7, 0x7a, 0x44,
  1083  	0x40, 0xf0, 0xdb, 0xb0, 0x6a, 0xb2, 0x07, 0x8e, 0x1d, 0x30, 0x79, 0x97, 0xdc, 0x57, 0xca, 0x0d,
  1084  	0xb4, 0x51, 0x6a, 0x2b, 0x12, 0x7b, 0x75, 0x27, 0x01, 0x27, 0x53, 0x14, 0xf8, 0x7d, 0x58, 0x32,
  1085  	0x1c, 0xdb, 0xa3, 0xb6, 0xa7, 0x2c, 0x35, 0xd0, 0x46, 0x65, 0xeb, 0x0d, 0xcd, 0x8f, 0xb9, 0x16,
  1086  	0x8d, 0xb9, 0x36, 0x38, 0xea, 0x6a, 0x32, 0xe6, 0x1a, 0xd1, 0x1f, 0x6e, 0x7f, 0xc7, 0xa3, 0x36,
  1087  	0xf7, 0x47, 0xe8, 0xb4, 0xbb, 0x3e, 0x17, 0x12, 0xb0, 0x53, 0x7f, 0x9d, 0x83, 0xca, 0x5d, 0x6b,
  1088  	0xc8, 0x3c, 0xea, 0x12, 0xc7, 0xa2, 0xf8, 0x5b, 0x50, 0xe2, 0x79, 0x79, 0xa0, 0x7b, 0xba, 0xc8,
  1089  	0x83, 0xca, 0xd6, 0xe7, 0x66, 0x8a, 0xe2, 0x59, 0xac, 0x71, 0x6c, 0xed, 0x78, 0x53, 0xdb, 0xed,
  1090  	0x7c, 0x9b, 0x1a, 0xde, 0x57, 0xa8, 0xa7, 0xb7, 0xb1, 0x94, 0x06, 0xe1, 0x19, 0x99, 0x70, 0xc5,
  1091  	0x1f, 0xc0, 0xa2, 0x3b, 0xb4, 0x28, 0x53, 0x72, 0x8d, 0xfc, 0x46, 0x65, 0xeb, 0x8b, 0xda, 0xdc,
  1092  	0x65, 0xac, 0xed, 0x39, 0x96, 0x69, 0x3c, 0x22, 0x43, 0x8b, 0x86, 0x39, 0xc4, 0xbf, 0x18, 0xf1,
  1093  	0x59, 0xe2, 0x0e, 0x54, 0xf5, 0x6e, 0xd7, 0xa5, 0x5d, 0x41, 0xc2, 0x41, 0x22, 0xe5, 0x2a, 0x5b,
  1094  	0x9f, 0x88, 0x18, 0xa1, 0xf1, 0x72, 0xe5, 0xec, 0x5a, 0x71, 0xd4, 0xf6, 0xe5, 0xf1, 0xa8, 0x5e,
  1095  	0x4d, 0x1c, 0x92, 0x24, 0x43, 0xf5, 0xdf, 0x79, 0xc0, 0x11, 0x8f, 0xb5, 0x4d, 0xfb, 0xc0, 0xb4,
  1096  	0xbb, 0x17, 0xe0, 0x38, 0x0a, 0xe5, 0x21, 0xa3, 0xae, 0x28, 0x47, 0x51, 0x77, 0x95, 0xad, 0x5b,
  1097  	0x19, 0x9c, 0xb7, 0x3b, 0xe0, 0xbf, 0x74, 0x4b, 0xd0, 0xb7, 0x97, 0x79, 0x65, 0xbf, 0x1b, 0xb0,
  1098  	0x23, 0x21, 0x67, 0xdc, 0x03, 0xe8, 0xf2, 0x2a, 0xf4, 0xe5, 0xe4, 0xcf, 0x28, 0x67, 0x85, 0x9b,
  1099  	0x73, 0x6f, 0xc2, 0x8f, 0x44, 0x78, 0xe3, 0x77, 0xa0, 0xc4, 0x86, 0xc2, 0x52, 0xa6, 0x14, 0x44,
  1100  	0x32, 0xc4, 0xc2, 0xc4, 0x3b, 0x6f, 0xe8, 0x20, 0x42, 0x0f, 0xa9, 0x4b, 0x6d, 0x83, 0x86, 0xa5,
  1101  	0xbc, 0x2f, 0x89, 0xc9, 0x84, 0x0d, 0x7e, 0x00, 0x4b, 0xae, 0x63, 0x51, 0x42, 0x0f, 0x45, 0xdd,
  1102  	0xcf, 0xc9, 0x71, 0x52, 0x1e, 0xc4, 0xa7, 0x25, 0x01, 0x13, 0xf5, 0xaf, 0x08, 0xae, 0x4c, 0x07,
  1103  	0xfb, 0xbe, 0xc9, 0x3c, 0xfc, 0xf5, 0xa9, 0x80, 0x6b, 0xf3, 0x05, 0x9c, 0x53, 0x8b, 0x70, 0x4f,
  1104  	0x0c, 0x09, 0x4e, 0x22, 0xc1, 0xee, 0xc0, 0xa2, 0xe9, 0xd1, 0x7e, 0x50, 0x25, 0x5f, 0xce, 0x10,
  1105  	0x80, 0x69, 0x7d, 0xc3, 0x6a, 0xd9, 0xe1, 0x3c, 0x89, 0xcf, 0x5a, 0xfd, 0x33, 0x82, 0x6a, 0x04,
  1106  	0xf9, 0x02, 0xac, 0xfa, 0x5a, 0xdc, 0xaa, 0x9b, 0xa7, 0xb4, 0x2a, 0xdd, 0x9c, 0x9f, 0x21, 0x58,
  1107  	0xf5, 0x6f, 0x14, 0xca, 0x3c, 0xd7, 0xf4, 0x2f, 0x36, 0x15, 0x8a, 0x22, 0xe3, 0x98, 0x82, 0x1a,
  1108  	0xf9, 0x8d, 0x72, 0x1b, 0xc6, 0xa3, 0x7a, 0x51, 0x60, 0x31, 0x22, 0x21, 0xf8, 0x9b, 0x50, 0xb4,
  1109  	0xf4, 0x0e, 0xb5, 0x02, 0xb5, 0x3e, 0x3f, 0xa7, 0xc5, 0x9c, 0x66, 0x9f, 0x5a, 0xd4, 0xf0, 0x1c,
  1110  	0x37, 0xbc, 0x2e, 0x83, 0x13, 0x46, 0x24, 0x57, 0xb5, 0x0e, 0xd7, 0x77, 0xd8, 0x1e, 0x75, 0x19,
  1111  	0x2f, 0x0b, 0x99, 0xb4, 0x2d, 0xc3, 0xa0, 0x8c, 0x11, 0x7a, 0x6c, 0xd2, 0x87, 0xaa, 0x05, 0xd7,
  1112  	0xee, 0x3b, 0x86, 0x6e, 0x05, 0x2d, 0x3f, 0x0a, 0xc4, 0xbb, 0xc1, 0x25, 0x2d, 0xe3, 0xb1, 0x99,
  1113  	0xc1, 0x69, 0x3e, 0x61, 0xbb, 0xc0, 0x75, 0x23, 0x92, 0x8d, 0xfa, 0xd3, 0x1c, 0x28, 0x42, 0x5c,
  1114  	0x8a, 0x2a, 0x2f, 0x5d, 0x1a, 0xbf, 0x22, 0x79, 0x6f, 0x49, 0x0e, 0x0a, 0xbc, 0xf5, 0x10, 0x01,
  1115  	0xc1, 0x9f, 0x9e, 0x84, 0x28, 0x2f, 0x42, 0x54, 0x1d, 0x8f, 0xea, 0x15, 0x3f, 0x44, 0xfb, 0x96,
  1116  	0x69, 0xd0, 0x49, 0x9c, 0xbe, 0x01, 0x45, 0x66, 0x38, 0x03, 0xca, 0xc4, 0x28, 0x50, 0xd9, 0xba,
  1117  	0x7d, 0x8a, 0xae, 0xb4, 0x2f, 0x18, 0xf8, 0x69, 0xe0, 0xff, 0x26, 0x92, 0xa9, 0xfa, 0x13, 0x04,
  1118  	0xab, 0xbc, 0x31, 0x1d, 0x44, 0xef, 0xc3, 0x06, 0x14, 0xf8, 0xd0, 0x23, 0x67, 0xa2, 0x89, 0xfa,
  1119  	0x62, 0x16, 0x10, 0x10, 0xfc, 0x3e, 0x14, 0x78, 0xb7, 0x90, 0x1d, 0xf9, 0xb4, 0x29, 0x3d, 0xe1,
  1120  	0x2c, 0x5a, 0x90, 0xe0, 0xa8, 0xfe, 0x06, 0xc1, 0xd5, 0xa4, 0x42, 0xc1, 0x75, 0x73, 0xb2, 0x5e,
  1121  	0x1e, 0x54, 0xdc, 0x90, 0x40, 0xaa, 0x77, 0xc6, 0x3e, 0x72, 0x59, 0xca, 0xa9, 0x44, 0x0e, 0x49,
  1122  	0x54, 0x8c, 0xfa, 0x18, 0x81, 0x18, 0x18, 0x0f, 0xe6, 0xf4, 0xde, 0x3b, 0x31, 0xef, 0x35, 0x33,
  1123  	0xa8, 0x37, 0xd3, 0x6d, 0xbf, 0x0a, 0xe2, 0x98, 0xcd, 0x5f, 0xfd, 0x34, 0x7f, 0xdd, 0xcc, 0xaa,
  1124  	0xd0, 0xdc, 0x8e, 0xba, 0x03, 0xcb, 0xb1, 0x9b, 0x12, 0xd7, 0x83, 0xde, 0xe8, 0x37, 0xaa, 0x72,
  1125  	0xb2, 0xbf, 0xdd, 0x29, 0xfd, 0xfc, 0x17, 0xf5, 0x85, 0xc7, 0x7f, 0x6b, 0x2c, 0xa8, 0x6f, 0xc2,
  1126  	0x4a, 0x3c, 0x9f, 0xb3, 0x10, 0xff, 0x38, 0x0f, 0x10, 0x0e, 0x52, 0x9c, 0x92, 0x8f, 0xeb, 0x31,
  1127  	0x4a, 0x3e, 0xc5, 0x33, 0xe2, 0x9f, 0xe3, 0x1f, 0x22, 0x78, 0x5d, 0xf7, 0x3c, 0xd7, 0xec, 0x0c,
  1128  	0x3d, 0x1a, 0x69, 0xad, 0xc1, 0x0c, 0x92, 0x71, 0x14, 0xbd, 0x2e, 0x3d, 0xf3, 0x7a, 0x2b, 0x8d,
  1129  	0x27, 0x49, 0x17, 0x85, 0x3f, 0x03, 0x65, 0x7d, 0x60, 0xde, 0x8b, 0xb6, 0x09, 0x31, 0xc1, 0x04,
  1130  	0x2b, 0x03, 0x23, 0x21, 0x9c, 0x23, 0x07, 0x53, 0xba, 0x3f, 0x58, 0x48, 0xe4, 0xa0, 0xbd, 0x32,
  1131  	0x12, 0xc2, 0xf1, 0x97, 0x60, 0x39, 0x3a, 0xd2, 0x33, 0x65, 0x51, 0x10, 0xbc, 0x36, 0x1e, 0xd5,
  1132  	0x97, 0xa3, 0x93, 0x3f, 0x23, 0x71, 0x3c, 0xdc, 0x86, 0xaa, 0x1d, 0x9b, 0xd2, 0x99, 0x52, 0x14,
  1133  	0xa4, 0xca, 0x78, 0x54, 0x5f, 0x8b, 0x0f, 0xf0, 0xb2, 0x91, 0x25, 0x09, 0xd4, 0x2e, 0xac, 0x5d,
  1134  	0x4c, 0xcf, 0xff, 0x3b, 0x82, 0x8f, 0xa7, 0x49, 0x22, 0x94, 0x0d, 0x1c, 0x9b, 0xd1, 0xec, 0x0b,
  1135  	0xe0, 0x27, 0x61, 0x91, 0x77, 0x6f, 0xff, 0xce, 0x2c, 0xfb, 0x73, 0x1e, 0x6f, 0xea, 0xd2, 0x54,
  1136  	0x1f, 0x38, 0x7f, 0x6f, 0x7f, 0x0b, 0x56, 0xe8, 0xb1, 0x6e, 0x0d, 0xb9, 0xb6, 0xdb, 0xae, 0xeb,
  1137  	0xb8, 0x72, 0xdd, 0xbb, 0x2a, 0x95, 0xa8, 0x6e, 0x73, 0xa8, 0x3e, 0x01, 0x93, 0x04, 0xba, 0xfa,
  1138  	0x27, 0x04, 0x85, 0xff, 0xff, 0x0d, 0x46, 0x7d, 0x91, 0x87, 0xca, 0xab, 0xb5, 0xe2, 0xa3, 0xbe,
  1139  	0x56, 0xf0, 0xc9, 0xfb, 0x62, 0xf7, 0x89, 0x33, 0x4c, 0xde, 0x27, 0x2f, 0x12, 0x2f, 0x10, 0x5c,
  1140  	0x89, 0x5e, 0x74, 0x91, 0xf9, 0xfb, 0xfc, 0xf3, 0xb7, 0x0b, 0x05, 0x36, 0xa0, 0x86, 0x4c, 0xdd,
  1141  	0xed, 0xd3, 0x19, 0x16, 0x51, 0x79, 0x7f, 0x40, 0x8d, 0x70, 0x40, 0xe0, 0x5f, 0x44, 0x08, 0x50,
  1142  	0xc7, 0x08, 0xd6, 0xd3, 0x49, 0x2e, 0x20, 0x7e, 0x87, 0xf1, 0xf8, 0xb5, 0xce, 0x6c, 0xe6, 0x8c,
  1143  	0x50, 0xfe, 0x3e, 0x3f, 0xcb, 0x48, 0xee, 0x09, 0xfc, 0x08, 0xaa, 0xbc, 0xa4, 0xdd, 0xf0, 0x58,
  1144  	0xda, 0x7a, 0x27, 0x83, 0x42, 0x62, 0xf6, 0x8f, 0x68, 0x22, 0xde, 0x5d, 0x12, 0x87, 0x24, 0x29,
  1145  	0x07, 0x7f, 0x1f, 0x56, 0x45, 0x91, 0x47, 0x65, 0xfb, 0x31, 0x7f, 0x33, 0x83, 0xec, 0xe4, 0x82,
  1146  	0xd8, 0x5e, 0x1b, 0x8f, 0xea, 0x53, 0x6b, 0x23, 0x99, 0x12, 0x85, 0x7f, 0x89, 0xe0, 0x1a, 0xa3,
  1147  	0xee, 0xb1, 0x69, 0x50, 0xdd, 0x30, 0x9c, 0xa1, 0xed, 0x45, 0x15, 0xf1, 0xfb, 0xd9, 0xdb, 0x19,
  1148  	0x14, 0xd9, 0xf7, 0x79, 0xb5, 0x7c, 0x5e, 0x51, 0x8d, 0xae, 0x8f, 0x47, 0xf5, 0x6b, 0x33, 0xc1,
  1149  	0x64, 0xb6, 0x16, 0xea, 0x1f, 0x11, 0x94, 0x2e, 0x68, 0x93, 0xff, 0x6a, 0x3c, 0x1f, 0x33, 0x0f,
  1150  	0xee, 0xe9, 0xd9, 0xf7, 0x1f, 0x04, 0x57, 0xf6, 0xa9, 0x75, 0x28, 0x5b, 0xb0, 0x7f, 0x33, 0xfa,
  1151  	0x23, 0x51, 0x50, 0xe6, 0x28, 0x73, 0x99, 0xa7, 0x33, 0x9c, 0x55, 0xe6, 0xf8, 0x08, 0x8a, 0xcc,
  1152  	0xd3, 0xbd, 0x61, 0x70, 0x19, 0xde, 0xcd, 0x22, 0x6a, 0x5a, 0x8c, 0x60, 0xd5, 0x5e, 0x91, 0x82,
  1153  	0x8a, 0xfe, 0x37, 0x91, 0x22, 0xd4, 0xef, 0xc1, 0xfa, 0x6c, 0xf5, 0x22, 0x0b, 0x2f, 0x3a, 0x8f,
  1154  	0x85, 0xd7, 0x82, 0xab, 0xc9, 0x34, 0x93, 0x57, 0xd7, 0x1c, 0xeb, 0x52, 0x6c, 0x60, 0xcc, 0x9d,
  1155  	0x3c, 0x30, 0xaa, 0x7f, 0x41, 0x30, 0x3b, 0xab, 0xf1, 0x8f, 0x10, 0x54, 0xe3, 0x89, 0xed, 0x6f,
  1156  	0x24, 0x95, 0xad, 0xf6, 0x19, 0x8a, 0x2a, 0xb8, 0x89, 0x27, 0x53, 0x64, 0x1c, 0x81, 0x91, 0xa4,
  1157  	0x4c, 0xac, 0x01, 0x4c, 0x54, 0x8e, 0xcd, 0xb6, 0x13, 0x9b, 0x18, 0x89, 0x60, 0xa8, 0x1f, 0xe6,
  1158  	0xe0, 0xf2, 0xab, 0x77, 0x94, 0x58, 0x5a, 0xfd, 0x13, 0xc1, 0xc7, 0x52, 0x5c, 0x72, 0xfa, 0x55,
  1159  	0xe3, 0x06, 0x2c, 0xe9, 0x96, 0xe5, 0x3c, 0xa4, 0x07, 0xc2, 0xfa, 0x52, 0x38, 0x58, 0xb5, 0xfc,
  1160  	0x63, 0x12, 0xc0, 0xf1, 0xa7, 0xa0, 0xe8, 0x52, 0x9d, 0xc9, 0x8e, 0x5c, 0x0e, 0xeb, 0x8e, 0x88,
  1161  	0x53, 0x22, 0xa1, 0xb8, 0x05, 0x55, 0x1a, 0x5f, 0x28, 0x4e, 0xda, 0x37, 0x92, 0xf8, 0xea, 0xbf,
  1162  	0x10, 0xe0, 0x94, 0x3e, 0x65, 0xc4, 0xfa, 0x54, 0xeb, 0x6c, 0xcd, 0xe3, 0x7f, 0xa2, 0x47, 0xfd,
  1163  	0x81, 0x37, 0xe5, 0xf4, 0x06, 0x15, 0x24, 0x25, 0x9a, 0x99, 0x94, 0xe1, 0xfb, 0x6b, 0x6e, 0xe6,
  1164  	0xfb, 0x6b, 0x98, 0x8f, 0xf9, 0xf3, 0xc8, 0xc7, 0xdf, 0x21, 0x50, 0x66, 0x19, 0x1d, 0xee, 0x72,
  1165  	0xe8, 0xe5, 0xff, 0x1b, 0x95, 0x92, 0x64, 0xb9, 0x8c, 0x49, 0xf6, 0x5b, 0x04, 0xc9, 0xc9, 0x08,
  1166  	0xd7, 0x83, 0xcd, 0x3b, 0xf2, 0x62, 0x23, 0x36, 0xef, 0x60, 0xe9, 0x9e, 0xc7, 0xe7, 0xe1, 0x9b,
  1167  	0x77, 0xfe, 0x3c, 0xde, 0xbc, 0xdb, 0xbb, 0x4f, 0x9e, 0xd7, 0x16, 0x9e, 0x3e, 0xaf, 0x2d, 0x3c,
  1168  	0x7b, 0x5e, 0x5b, 0x78, 0x3c, 0xae, 0xa1, 0x27, 0xe3, 0x1a, 0x7a, 0x3a, 0xae, 0xa1, 0x67, 0xe3,
  1169  	0x1a, 0xfa, 0xc7, 0xb8, 0x86, 0x3e, 0x7c, 0x51, 0x5b, 0xf8, 0xe0, 0xc6, 0xdc, 0xff, 0xfe, 0xff,
  1170  	0x37, 0x00, 0x00, 0xff, 0xff, 0xac, 0xa0, 0x30, 0xab, 0x29, 0x20, 0x00, 0x00,
  1171  }
  1172  
  1173  func (m *Action) Marshal() (dAtA []byte, err error) {
  1174  	size := m.Size()
  1175  	dAtA = make([]byte, size)
  1176  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1177  	if err != nil {
  1178  		return nil, err
  1179  	}
  1180  	return dAtA[:n], nil
  1181  }
  1182  
  1183  func (m *Action) MarshalTo(dAtA []byte) (int, error) {
  1184  	size := m.Size()
  1185  	return m.MarshalToSizedBuffer(dAtA[:size])
  1186  }
  1187  
  1188  func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1189  	i := len(dAtA)
  1190  	_ = i
  1191  	var l int
  1192  	_ = l
  1193  	i--
  1194  	if m.IsNonResourceURL {
  1195  		dAtA[i] = 1
  1196  	} else {
  1197  		dAtA[i] = 0
  1198  	}
  1199  	i--
  1200  	dAtA[i] = 0x48
  1201  	i -= len(m.Path)
  1202  	copy(dAtA[i:], m.Path)
  1203  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path)))
  1204  	i--
  1205  	dAtA[i] = 0x42
  1206  	{
  1207  		size, err := m.Content.MarshalToSizedBuffer(dAtA[:i])
  1208  		if err != nil {
  1209  			return 0, err
  1210  		}
  1211  		i -= size
  1212  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1213  	}
  1214  	i--
  1215  	dAtA[i] = 0x3a
  1216  	i -= len(m.ResourceName)
  1217  	copy(dAtA[i:], m.ResourceName)
  1218  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceName)))
  1219  	i--
  1220  	dAtA[i] = 0x32
  1221  	i -= len(m.Resource)
  1222  	copy(dAtA[i:], m.Resource)
  1223  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource)))
  1224  	i--
  1225  	dAtA[i] = 0x2a
  1226  	i -= len(m.Version)
  1227  	copy(dAtA[i:], m.Version)
  1228  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version)))
  1229  	i--
  1230  	dAtA[i] = 0x22
  1231  	i -= len(m.Group)
  1232  	copy(dAtA[i:], m.Group)
  1233  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group)))
  1234  	i--
  1235  	dAtA[i] = 0x1a
  1236  	i -= len(m.Verb)
  1237  	copy(dAtA[i:], m.Verb)
  1238  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb)))
  1239  	i--
  1240  	dAtA[i] = 0x12
  1241  	i -= len(m.Namespace)
  1242  	copy(dAtA[i:], m.Namespace)
  1243  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
  1244  	i--
  1245  	dAtA[i] = 0xa
  1246  	return len(dAtA) - i, nil
  1247  }
  1248  
  1249  func (m *ClusterRole) Marshal() (dAtA []byte, err error) {
  1250  	size := m.Size()
  1251  	dAtA = make([]byte, size)
  1252  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1253  	if err != nil {
  1254  		return nil, err
  1255  	}
  1256  	return dAtA[:n], nil
  1257  }
  1258  
  1259  func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) {
  1260  	size := m.Size()
  1261  	return m.MarshalToSizedBuffer(dAtA[:size])
  1262  }
  1263  
  1264  func (m *ClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1265  	i := len(dAtA)
  1266  	_ = i
  1267  	var l int
  1268  	_ = l
  1269  	if m.AggregationRule != nil {
  1270  		{
  1271  			size, err := m.AggregationRule.MarshalToSizedBuffer(dAtA[:i])
  1272  			if err != nil {
  1273  				return 0, err
  1274  			}
  1275  			i -= size
  1276  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  1277  		}
  1278  		i--
  1279  		dAtA[i] = 0x1a
  1280  	}
  1281  	if len(m.Rules) > 0 {
  1282  		for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
  1283  			{
  1284  				size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1285  				if err != nil {
  1286  					return 0, err
  1287  				}
  1288  				i -= size
  1289  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  1290  			}
  1291  			i--
  1292  			dAtA[i] = 0x12
  1293  		}
  1294  	}
  1295  	{
  1296  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1297  		if err != nil {
  1298  			return 0, err
  1299  		}
  1300  		i -= size
  1301  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1302  	}
  1303  	i--
  1304  	dAtA[i] = 0xa
  1305  	return len(dAtA) - i, nil
  1306  }
  1307  
  1308  func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) {
  1309  	size := m.Size()
  1310  	dAtA = make([]byte, size)
  1311  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1312  	if err != nil {
  1313  		return nil, err
  1314  	}
  1315  	return dAtA[:n], nil
  1316  }
  1317  
  1318  func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) {
  1319  	size := m.Size()
  1320  	return m.MarshalToSizedBuffer(dAtA[:size])
  1321  }
  1322  
  1323  func (m *ClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1324  	i := len(dAtA)
  1325  	_ = i
  1326  	var l int
  1327  	_ = l
  1328  	{
  1329  		size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i])
  1330  		if err != nil {
  1331  			return 0, err
  1332  		}
  1333  		i -= size
  1334  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1335  	}
  1336  	i--
  1337  	dAtA[i] = 0x2a
  1338  	if len(m.Subjects) > 0 {
  1339  		for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- {
  1340  			{
  1341  				size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1342  				if err != nil {
  1343  					return 0, err
  1344  				}
  1345  				i -= size
  1346  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  1347  			}
  1348  			i--
  1349  			dAtA[i] = 0x22
  1350  		}
  1351  	}
  1352  	if m.GroupNames != nil {
  1353  		{
  1354  			size, err := m.GroupNames.MarshalToSizedBuffer(dAtA[:i])
  1355  			if err != nil {
  1356  				return 0, err
  1357  			}
  1358  			i -= size
  1359  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  1360  		}
  1361  		i--
  1362  		dAtA[i] = 0x1a
  1363  	}
  1364  	if m.UserNames != nil {
  1365  		{
  1366  			size, err := m.UserNames.MarshalToSizedBuffer(dAtA[:i])
  1367  			if err != nil {
  1368  				return 0, err
  1369  			}
  1370  			i -= size
  1371  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  1372  		}
  1373  		i--
  1374  		dAtA[i] = 0x12
  1375  	}
  1376  	{
  1377  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1378  		if err != nil {
  1379  			return 0, err
  1380  		}
  1381  		i -= size
  1382  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1383  	}
  1384  	i--
  1385  	dAtA[i] = 0xa
  1386  	return len(dAtA) - i, nil
  1387  }
  1388  
  1389  func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) {
  1390  	size := m.Size()
  1391  	dAtA = make([]byte, size)
  1392  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1393  	if err != nil {
  1394  		return nil, err
  1395  	}
  1396  	return dAtA[:n], nil
  1397  }
  1398  
  1399  func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) {
  1400  	size := m.Size()
  1401  	return m.MarshalToSizedBuffer(dAtA[:size])
  1402  }
  1403  
  1404  func (m *ClusterRoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1405  	i := len(dAtA)
  1406  	_ = i
  1407  	var l int
  1408  	_ = l
  1409  	if len(m.Items) > 0 {
  1410  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1411  			{
  1412  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1413  				if err != nil {
  1414  					return 0, err
  1415  				}
  1416  				i -= size
  1417  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  1418  			}
  1419  			i--
  1420  			dAtA[i] = 0x12
  1421  		}
  1422  	}
  1423  	{
  1424  		size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1425  		if err != nil {
  1426  			return 0, err
  1427  		}
  1428  		i -= size
  1429  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1430  	}
  1431  	i--
  1432  	dAtA[i] = 0xa
  1433  	return len(dAtA) - i, nil
  1434  }
  1435  
  1436  func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) {
  1437  	size := m.Size()
  1438  	dAtA = make([]byte, size)
  1439  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1440  	if err != nil {
  1441  		return nil, err
  1442  	}
  1443  	return dAtA[:n], nil
  1444  }
  1445  
  1446  func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) {
  1447  	size := m.Size()
  1448  	return m.MarshalToSizedBuffer(dAtA[:size])
  1449  }
  1450  
  1451  func (m *ClusterRoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1452  	i := len(dAtA)
  1453  	_ = i
  1454  	var l int
  1455  	_ = l
  1456  	if len(m.Items) > 0 {
  1457  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1458  			{
  1459  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1460  				if err != nil {
  1461  					return 0, err
  1462  				}
  1463  				i -= size
  1464  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  1465  			}
  1466  			i--
  1467  			dAtA[i] = 0x12
  1468  		}
  1469  	}
  1470  	{
  1471  		size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1472  		if err != nil {
  1473  			return 0, err
  1474  		}
  1475  		i -= size
  1476  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1477  	}
  1478  	i--
  1479  	dAtA[i] = 0xa
  1480  	return len(dAtA) - i, nil
  1481  }
  1482  
  1483  func (m *GroupRestriction) Marshal() (dAtA []byte, err error) {
  1484  	size := m.Size()
  1485  	dAtA = make([]byte, size)
  1486  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1487  	if err != nil {
  1488  		return nil, err
  1489  	}
  1490  	return dAtA[:n], nil
  1491  }
  1492  
  1493  func (m *GroupRestriction) MarshalTo(dAtA []byte) (int, error) {
  1494  	size := m.Size()
  1495  	return m.MarshalToSizedBuffer(dAtA[:size])
  1496  }
  1497  
  1498  func (m *GroupRestriction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1499  	i := len(dAtA)
  1500  	_ = i
  1501  	var l int
  1502  	_ = l
  1503  	if len(m.Selectors) > 0 {
  1504  		for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- {
  1505  			{
  1506  				size, err := m.Selectors[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1507  				if err != nil {
  1508  					return 0, err
  1509  				}
  1510  				i -= size
  1511  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  1512  			}
  1513  			i--
  1514  			dAtA[i] = 0x12
  1515  		}
  1516  	}
  1517  	if len(m.Groups) > 0 {
  1518  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  1519  			i -= len(m.Groups[iNdEx])
  1520  			copy(dAtA[i:], m.Groups[iNdEx])
  1521  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx])))
  1522  			i--
  1523  			dAtA[i] = 0xa
  1524  		}
  1525  	}
  1526  	return len(dAtA) - i, nil
  1527  }
  1528  
  1529  func (m *IsPersonalSubjectAccessReview) Marshal() (dAtA []byte, err error) {
  1530  	size := m.Size()
  1531  	dAtA = make([]byte, size)
  1532  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1533  	if err != nil {
  1534  		return nil, err
  1535  	}
  1536  	return dAtA[:n], nil
  1537  }
  1538  
  1539  func (m *IsPersonalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) {
  1540  	size := m.Size()
  1541  	return m.MarshalToSizedBuffer(dAtA[:size])
  1542  }
  1543  
  1544  func (m *IsPersonalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1545  	i := len(dAtA)
  1546  	_ = i
  1547  	var l int
  1548  	_ = l
  1549  	return len(dAtA) - i, nil
  1550  }
  1551  
  1552  func (m *LocalResourceAccessReview) Marshal() (dAtA []byte, err error) {
  1553  	size := m.Size()
  1554  	dAtA = make([]byte, size)
  1555  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1556  	if err != nil {
  1557  		return nil, err
  1558  	}
  1559  	return dAtA[:n], nil
  1560  }
  1561  
  1562  func (m *LocalResourceAccessReview) MarshalTo(dAtA []byte) (int, error) {
  1563  	size := m.Size()
  1564  	return m.MarshalToSizedBuffer(dAtA[:size])
  1565  }
  1566  
  1567  func (m *LocalResourceAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1568  	i := len(dAtA)
  1569  	_ = i
  1570  	var l int
  1571  	_ = l
  1572  	{
  1573  		size, err := m.Action.MarshalToSizedBuffer(dAtA[:i])
  1574  		if err != nil {
  1575  			return 0, err
  1576  		}
  1577  		i -= size
  1578  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1579  	}
  1580  	i--
  1581  	dAtA[i] = 0xa
  1582  	return len(dAtA) - i, nil
  1583  }
  1584  
  1585  func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error) {
  1586  	size := m.Size()
  1587  	dAtA = make([]byte, size)
  1588  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1589  	if err != nil {
  1590  		return nil, err
  1591  	}
  1592  	return dAtA[:n], nil
  1593  }
  1594  
  1595  func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) {
  1596  	size := m.Size()
  1597  	return m.MarshalToSizedBuffer(dAtA[:size])
  1598  }
  1599  
  1600  func (m *LocalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1601  	i := len(dAtA)
  1602  	_ = i
  1603  	var l int
  1604  	_ = l
  1605  	if m.Scopes != nil {
  1606  		{
  1607  			size, err := m.Scopes.MarshalToSizedBuffer(dAtA[:i])
  1608  			if err != nil {
  1609  				return 0, err
  1610  			}
  1611  			i -= size
  1612  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  1613  		}
  1614  		i--
  1615  		dAtA[i] = 0x22
  1616  	}
  1617  	if len(m.GroupsSlice) > 0 {
  1618  		for iNdEx := len(m.GroupsSlice) - 1; iNdEx >= 0; iNdEx-- {
  1619  			i -= len(m.GroupsSlice[iNdEx])
  1620  			copy(dAtA[i:], m.GroupsSlice[iNdEx])
  1621  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.GroupsSlice[iNdEx])))
  1622  			i--
  1623  			dAtA[i] = 0x1a
  1624  		}
  1625  	}
  1626  	i -= len(m.User)
  1627  	copy(dAtA[i:], m.User)
  1628  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.User)))
  1629  	i--
  1630  	dAtA[i] = 0x12
  1631  	{
  1632  		size, err := m.Action.MarshalToSizedBuffer(dAtA[:i])
  1633  		if err != nil {
  1634  			return 0, err
  1635  		}
  1636  		i -= size
  1637  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1638  	}
  1639  	i--
  1640  	dAtA[i] = 0xa
  1641  	return len(dAtA) - i, nil
  1642  }
  1643  
  1644  func (m *NamedClusterRole) Marshal() (dAtA []byte, err error) {
  1645  	size := m.Size()
  1646  	dAtA = make([]byte, size)
  1647  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1648  	if err != nil {
  1649  		return nil, err
  1650  	}
  1651  	return dAtA[:n], nil
  1652  }
  1653  
  1654  func (m *NamedClusterRole) MarshalTo(dAtA []byte) (int, error) {
  1655  	size := m.Size()
  1656  	return m.MarshalToSizedBuffer(dAtA[:size])
  1657  }
  1658  
  1659  func (m *NamedClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1660  	i := len(dAtA)
  1661  	_ = i
  1662  	var l int
  1663  	_ = l
  1664  	{
  1665  		size, err := m.Role.MarshalToSizedBuffer(dAtA[:i])
  1666  		if err != nil {
  1667  			return 0, err
  1668  		}
  1669  		i -= size
  1670  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1671  	}
  1672  	i--
  1673  	dAtA[i] = 0x12
  1674  	i -= len(m.Name)
  1675  	copy(dAtA[i:], m.Name)
  1676  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1677  	i--
  1678  	dAtA[i] = 0xa
  1679  	return len(dAtA) - i, nil
  1680  }
  1681  
  1682  func (m *NamedClusterRoleBinding) Marshal() (dAtA []byte, err error) {
  1683  	size := m.Size()
  1684  	dAtA = make([]byte, size)
  1685  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1686  	if err != nil {
  1687  		return nil, err
  1688  	}
  1689  	return dAtA[:n], nil
  1690  }
  1691  
  1692  func (m *NamedClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) {
  1693  	size := m.Size()
  1694  	return m.MarshalToSizedBuffer(dAtA[:size])
  1695  }
  1696  
  1697  func (m *NamedClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1698  	i := len(dAtA)
  1699  	_ = i
  1700  	var l int
  1701  	_ = l
  1702  	{
  1703  		size, err := m.RoleBinding.MarshalToSizedBuffer(dAtA[:i])
  1704  		if err != nil {
  1705  			return 0, err
  1706  		}
  1707  		i -= size
  1708  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1709  	}
  1710  	i--
  1711  	dAtA[i] = 0x12
  1712  	i -= len(m.Name)
  1713  	copy(dAtA[i:], m.Name)
  1714  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1715  	i--
  1716  	dAtA[i] = 0xa
  1717  	return len(dAtA) - i, nil
  1718  }
  1719  
  1720  func (m *NamedRole) Marshal() (dAtA []byte, err error) {
  1721  	size := m.Size()
  1722  	dAtA = make([]byte, size)
  1723  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1724  	if err != nil {
  1725  		return nil, err
  1726  	}
  1727  	return dAtA[:n], nil
  1728  }
  1729  
  1730  func (m *NamedRole) MarshalTo(dAtA []byte) (int, error) {
  1731  	size := m.Size()
  1732  	return m.MarshalToSizedBuffer(dAtA[:size])
  1733  }
  1734  
  1735  func (m *NamedRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1736  	i := len(dAtA)
  1737  	_ = i
  1738  	var l int
  1739  	_ = l
  1740  	{
  1741  		size, err := m.Role.MarshalToSizedBuffer(dAtA[:i])
  1742  		if err != nil {
  1743  			return 0, err
  1744  		}
  1745  		i -= size
  1746  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1747  	}
  1748  	i--
  1749  	dAtA[i] = 0x12
  1750  	i -= len(m.Name)
  1751  	copy(dAtA[i:], m.Name)
  1752  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1753  	i--
  1754  	dAtA[i] = 0xa
  1755  	return len(dAtA) - i, nil
  1756  }
  1757  
  1758  func (m *NamedRoleBinding) Marshal() (dAtA []byte, err error) {
  1759  	size := m.Size()
  1760  	dAtA = make([]byte, size)
  1761  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1762  	if err != nil {
  1763  		return nil, err
  1764  	}
  1765  	return dAtA[:n], nil
  1766  }
  1767  
  1768  func (m *NamedRoleBinding) MarshalTo(dAtA []byte) (int, error) {
  1769  	size := m.Size()
  1770  	return m.MarshalToSizedBuffer(dAtA[:size])
  1771  }
  1772  
  1773  func (m *NamedRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1774  	i := len(dAtA)
  1775  	_ = i
  1776  	var l int
  1777  	_ = l
  1778  	{
  1779  		size, err := m.RoleBinding.MarshalToSizedBuffer(dAtA[:i])
  1780  		if err != nil {
  1781  			return 0, err
  1782  		}
  1783  		i -= size
  1784  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1785  	}
  1786  	i--
  1787  	dAtA[i] = 0x12
  1788  	i -= len(m.Name)
  1789  	copy(dAtA[i:], m.Name)
  1790  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1791  	i--
  1792  	dAtA[i] = 0xa
  1793  	return len(dAtA) - i, nil
  1794  }
  1795  
  1796  func (m OptionalNames) Marshal() (dAtA []byte, err error) {
  1797  	size := m.Size()
  1798  	dAtA = make([]byte, size)
  1799  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1800  	if err != nil {
  1801  		return nil, err
  1802  	}
  1803  	return dAtA[:n], nil
  1804  }
  1805  
  1806  func (m OptionalNames) MarshalTo(dAtA []byte) (int, error) {
  1807  	size := m.Size()
  1808  	return m.MarshalToSizedBuffer(dAtA[:size])
  1809  }
  1810  
  1811  func (m OptionalNames) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1812  	i := len(dAtA)
  1813  	_ = i
  1814  	var l int
  1815  	_ = l
  1816  	if len(m) > 0 {
  1817  		for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- {
  1818  			i -= len(m[iNdEx])
  1819  			copy(dAtA[i:], m[iNdEx])
  1820  			i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx])))
  1821  			i--
  1822  			dAtA[i] = 0xa
  1823  		}
  1824  	}
  1825  	return len(dAtA) - i, nil
  1826  }
  1827  
  1828  func (m OptionalScopes) Marshal() (dAtA []byte, err error) {
  1829  	size := m.Size()
  1830  	dAtA = make([]byte, size)
  1831  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1832  	if err != nil {
  1833  		return nil, err
  1834  	}
  1835  	return dAtA[:n], nil
  1836  }
  1837  
  1838  func (m OptionalScopes) MarshalTo(dAtA []byte) (int, error) {
  1839  	size := m.Size()
  1840  	return m.MarshalToSizedBuffer(dAtA[:size])
  1841  }
  1842  
  1843  func (m OptionalScopes) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1844  	i := len(dAtA)
  1845  	_ = i
  1846  	var l int
  1847  	_ = l
  1848  	if len(m) > 0 {
  1849  		for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- {
  1850  			i -= len(m[iNdEx])
  1851  			copy(dAtA[i:], m[iNdEx])
  1852  			i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx])))
  1853  			i--
  1854  			dAtA[i] = 0xa
  1855  		}
  1856  	}
  1857  	return len(dAtA) - i, nil
  1858  }
  1859  
  1860  func (m *PolicyRule) Marshal() (dAtA []byte, err error) {
  1861  	size := m.Size()
  1862  	dAtA = make([]byte, size)
  1863  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1864  	if err != nil {
  1865  		return nil, err
  1866  	}
  1867  	return dAtA[:n], nil
  1868  }
  1869  
  1870  func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) {
  1871  	size := m.Size()
  1872  	return m.MarshalToSizedBuffer(dAtA[:size])
  1873  }
  1874  
  1875  func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1876  	i := len(dAtA)
  1877  	_ = i
  1878  	var l int
  1879  	_ = l
  1880  	if len(m.NonResourceURLsSlice) > 0 {
  1881  		for iNdEx := len(m.NonResourceURLsSlice) - 1; iNdEx >= 0; iNdEx-- {
  1882  			i -= len(m.NonResourceURLsSlice[iNdEx])
  1883  			copy(dAtA[i:], m.NonResourceURLsSlice[iNdEx])
  1884  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLsSlice[iNdEx])))
  1885  			i--
  1886  			dAtA[i] = 0x32
  1887  		}
  1888  	}
  1889  	if len(m.ResourceNames) > 0 {
  1890  		for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- {
  1891  			i -= len(m.ResourceNames[iNdEx])
  1892  			copy(dAtA[i:], m.ResourceNames[iNdEx])
  1893  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx])))
  1894  			i--
  1895  			dAtA[i] = 0x2a
  1896  		}
  1897  	}
  1898  	if len(m.Resources) > 0 {
  1899  		for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- {
  1900  			i -= len(m.Resources[iNdEx])
  1901  			copy(dAtA[i:], m.Resources[iNdEx])
  1902  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx])))
  1903  			i--
  1904  			dAtA[i] = 0x22
  1905  		}
  1906  	}
  1907  	if len(m.APIGroups) > 0 {
  1908  		for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- {
  1909  			i -= len(m.APIGroups[iNdEx])
  1910  			copy(dAtA[i:], m.APIGroups[iNdEx])
  1911  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx])))
  1912  			i--
  1913  			dAtA[i] = 0x1a
  1914  		}
  1915  	}
  1916  	{
  1917  		size, err := m.AttributeRestrictions.MarshalToSizedBuffer(dAtA[:i])
  1918  		if err != nil {
  1919  			return 0, err
  1920  		}
  1921  		i -= size
  1922  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1923  	}
  1924  	i--
  1925  	dAtA[i] = 0x12
  1926  	if len(m.Verbs) > 0 {
  1927  		for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- {
  1928  			i -= len(m.Verbs[iNdEx])
  1929  			copy(dAtA[i:], m.Verbs[iNdEx])
  1930  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx])))
  1931  			i--
  1932  			dAtA[i] = 0xa
  1933  		}
  1934  	}
  1935  	return len(dAtA) - i, nil
  1936  }
  1937  
  1938  func (m *ResourceAccessReview) Marshal() (dAtA []byte, err error) {
  1939  	size := m.Size()
  1940  	dAtA = make([]byte, size)
  1941  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1942  	if err != nil {
  1943  		return nil, err
  1944  	}
  1945  	return dAtA[:n], nil
  1946  }
  1947  
  1948  func (m *ResourceAccessReview) MarshalTo(dAtA []byte) (int, error) {
  1949  	size := m.Size()
  1950  	return m.MarshalToSizedBuffer(dAtA[:size])
  1951  }
  1952  
  1953  func (m *ResourceAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1954  	i := len(dAtA)
  1955  	_ = i
  1956  	var l int
  1957  	_ = l
  1958  	{
  1959  		size, err := m.Action.MarshalToSizedBuffer(dAtA[:i])
  1960  		if err != nil {
  1961  			return 0, err
  1962  		}
  1963  		i -= size
  1964  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  1965  	}
  1966  	i--
  1967  	dAtA[i] = 0xa
  1968  	return len(dAtA) - i, nil
  1969  }
  1970  
  1971  func (m *ResourceAccessReviewResponse) Marshal() (dAtA []byte, err error) {
  1972  	size := m.Size()
  1973  	dAtA = make([]byte, size)
  1974  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1975  	if err != nil {
  1976  		return nil, err
  1977  	}
  1978  	return dAtA[:n], nil
  1979  }
  1980  
  1981  func (m *ResourceAccessReviewResponse) MarshalTo(dAtA []byte) (int, error) {
  1982  	size := m.Size()
  1983  	return m.MarshalToSizedBuffer(dAtA[:size])
  1984  }
  1985  
  1986  func (m *ResourceAccessReviewResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1987  	i := len(dAtA)
  1988  	_ = i
  1989  	var l int
  1990  	_ = l
  1991  	i -= len(m.EvaluationError)
  1992  	copy(dAtA[i:], m.EvaluationError)
  1993  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError)))
  1994  	i--
  1995  	dAtA[i] = 0x22
  1996  	if len(m.GroupsSlice) > 0 {
  1997  		for iNdEx := len(m.GroupsSlice) - 1; iNdEx >= 0; iNdEx-- {
  1998  			i -= len(m.GroupsSlice[iNdEx])
  1999  			copy(dAtA[i:], m.GroupsSlice[iNdEx])
  2000  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.GroupsSlice[iNdEx])))
  2001  			i--
  2002  			dAtA[i] = 0x1a
  2003  		}
  2004  	}
  2005  	if len(m.UsersSlice) > 0 {
  2006  		for iNdEx := len(m.UsersSlice) - 1; iNdEx >= 0; iNdEx-- {
  2007  			i -= len(m.UsersSlice[iNdEx])
  2008  			copy(dAtA[i:], m.UsersSlice[iNdEx])
  2009  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.UsersSlice[iNdEx])))
  2010  			i--
  2011  			dAtA[i] = 0x12
  2012  		}
  2013  	}
  2014  	i -= len(m.Namespace)
  2015  	copy(dAtA[i:], m.Namespace)
  2016  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
  2017  	i--
  2018  	dAtA[i] = 0xa
  2019  	return len(dAtA) - i, nil
  2020  }
  2021  
  2022  func (m *Role) Marshal() (dAtA []byte, err error) {
  2023  	size := m.Size()
  2024  	dAtA = make([]byte, size)
  2025  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2026  	if err != nil {
  2027  		return nil, err
  2028  	}
  2029  	return dAtA[:n], nil
  2030  }
  2031  
  2032  func (m *Role) MarshalTo(dAtA []byte) (int, error) {
  2033  	size := m.Size()
  2034  	return m.MarshalToSizedBuffer(dAtA[:size])
  2035  }
  2036  
  2037  func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2038  	i := len(dAtA)
  2039  	_ = i
  2040  	var l int
  2041  	_ = l
  2042  	if len(m.Rules) > 0 {
  2043  		for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
  2044  			{
  2045  				size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2046  				if err != nil {
  2047  					return 0, err
  2048  				}
  2049  				i -= size
  2050  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2051  			}
  2052  			i--
  2053  			dAtA[i] = 0x12
  2054  		}
  2055  	}
  2056  	{
  2057  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  2058  		if err != nil {
  2059  			return 0, err
  2060  		}
  2061  		i -= size
  2062  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2063  	}
  2064  	i--
  2065  	dAtA[i] = 0xa
  2066  	return len(dAtA) - i, nil
  2067  }
  2068  
  2069  func (m *RoleBinding) Marshal() (dAtA []byte, err error) {
  2070  	size := m.Size()
  2071  	dAtA = make([]byte, size)
  2072  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2073  	if err != nil {
  2074  		return nil, err
  2075  	}
  2076  	return dAtA[:n], nil
  2077  }
  2078  
  2079  func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) {
  2080  	size := m.Size()
  2081  	return m.MarshalToSizedBuffer(dAtA[:size])
  2082  }
  2083  
  2084  func (m *RoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2085  	i := len(dAtA)
  2086  	_ = i
  2087  	var l int
  2088  	_ = l
  2089  	{
  2090  		size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i])
  2091  		if err != nil {
  2092  			return 0, err
  2093  		}
  2094  		i -= size
  2095  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2096  	}
  2097  	i--
  2098  	dAtA[i] = 0x2a
  2099  	if len(m.Subjects) > 0 {
  2100  		for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- {
  2101  			{
  2102  				size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2103  				if err != nil {
  2104  					return 0, err
  2105  				}
  2106  				i -= size
  2107  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2108  			}
  2109  			i--
  2110  			dAtA[i] = 0x22
  2111  		}
  2112  	}
  2113  	if m.GroupNames != nil {
  2114  		{
  2115  			size, err := m.GroupNames.MarshalToSizedBuffer(dAtA[:i])
  2116  			if err != nil {
  2117  				return 0, err
  2118  			}
  2119  			i -= size
  2120  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2121  		}
  2122  		i--
  2123  		dAtA[i] = 0x1a
  2124  	}
  2125  	if m.UserNames != nil {
  2126  		{
  2127  			size, err := m.UserNames.MarshalToSizedBuffer(dAtA[:i])
  2128  			if err != nil {
  2129  				return 0, err
  2130  			}
  2131  			i -= size
  2132  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2133  		}
  2134  		i--
  2135  		dAtA[i] = 0x12
  2136  	}
  2137  	{
  2138  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  2139  		if err != nil {
  2140  			return 0, err
  2141  		}
  2142  		i -= size
  2143  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2144  	}
  2145  	i--
  2146  	dAtA[i] = 0xa
  2147  	return len(dAtA) - i, nil
  2148  }
  2149  
  2150  func (m *RoleBindingList) Marshal() (dAtA []byte, err error) {
  2151  	size := m.Size()
  2152  	dAtA = make([]byte, size)
  2153  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2154  	if err != nil {
  2155  		return nil, err
  2156  	}
  2157  	return dAtA[:n], nil
  2158  }
  2159  
  2160  func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) {
  2161  	size := m.Size()
  2162  	return m.MarshalToSizedBuffer(dAtA[:size])
  2163  }
  2164  
  2165  func (m *RoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2166  	i := len(dAtA)
  2167  	_ = i
  2168  	var l int
  2169  	_ = l
  2170  	if len(m.Items) > 0 {
  2171  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  2172  			{
  2173  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2174  				if err != nil {
  2175  					return 0, err
  2176  				}
  2177  				i -= size
  2178  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2179  			}
  2180  			i--
  2181  			dAtA[i] = 0x12
  2182  		}
  2183  	}
  2184  	{
  2185  		size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  2186  		if err != nil {
  2187  			return 0, err
  2188  		}
  2189  		i -= size
  2190  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2191  	}
  2192  	i--
  2193  	dAtA[i] = 0xa
  2194  	return len(dAtA) - i, nil
  2195  }
  2196  
  2197  func (m *RoleBindingRestriction) Marshal() (dAtA []byte, err error) {
  2198  	size := m.Size()
  2199  	dAtA = make([]byte, size)
  2200  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2201  	if err != nil {
  2202  		return nil, err
  2203  	}
  2204  	return dAtA[:n], nil
  2205  }
  2206  
  2207  func (m *RoleBindingRestriction) MarshalTo(dAtA []byte) (int, error) {
  2208  	size := m.Size()
  2209  	return m.MarshalToSizedBuffer(dAtA[:size])
  2210  }
  2211  
  2212  func (m *RoleBindingRestriction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2213  	i := len(dAtA)
  2214  	_ = i
  2215  	var l int
  2216  	_ = l
  2217  	{
  2218  		size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  2219  		if err != nil {
  2220  			return 0, err
  2221  		}
  2222  		i -= size
  2223  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2224  	}
  2225  	i--
  2226  	dAtA[i] = 0x12
  2227  	{
  2228  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  2229  		if err != nil {
  2230  			return 0, err
  2231  		}
  2232  		i -= size
  2233  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2234  	}
  2235  	i--
  2236  	dAtA[i] = 0xa
  2237  	return len(dAtA) - i, nil
  2238  }
  2239  
  2240  func (m *RoleBindingRestrictionList) Marshal() (dAtA []byte, err error) {
  2241  	size := m.Size()
  2242  	dAtA = make([]byte, size)
  2243  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2244  	if err != nil {
  2245  		return nil, err
  2246  	}
  2247  	return dAtA[:n], nil
  2248  }
  2249  
  2250  func (m *RoleBindingRestrictionList) MarshalTo(dAtA []byte) (int, error) {
  2251  	size := m.Size()
  2252  	return m.MarshalToSizedBuffer(dAtA[:size])
  2253  }
  2254  
  2255  func (m *RoleBindingRestrictionList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2256  	i := len(dAtA)
  2257  	_ = i
  2258  	var l int
  2259  	_ = l
  2260  	if len(m.Items) > 0 {
  2261  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  2262  			{
  2263  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2264  				if err != nil {
  2265  					return 0, err
  2266  				}
  2267  				i -= size
  2268  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2269  			}
  2270  			i--
  2271  			dAtA[i] = 0x12
  2272  		}
  2273  	}
  2274  	{
  2275  		size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  2276  		if err != nil {
  2277  			return 0, err
  2278  		}
  2279  		i -= size
  2280  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2281  	}
  2282  	i--
  2283  	dAtA[i] = 0xa
  2284  	return len(dAtA) - i, nil
  2285  }
  2286  
  2287  func (m *RoleBindingRestrictionSpec) Marshal() (dAtA []byte, err error) {
  2288  	size := m.Size()
  2289  	dAtA = make([]byte, size)
  2290  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2291  	if err != nil {
  2292  		return nil, err
  2293  	}
  2294  	return dAtA[:n], nil
  2295  }
  2296  
  2297  func (m *RoleBindingRestrictionSpec) MarshalTo(dAtA []byte) (int, error) {
  2298  	size := m.Size()
  2299  	return m.MarshalToSizedBuffer(dAtA[:size])
  2300  }
  2301  
  2302  func (m *RoleBindingRestrictionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2303  	i := len(dAtA)
  2304  	_ = i
  2305  	var l int
  2306  	_ = l
  2307  	if m.ServiceAccountRestriction != nil {
  2308  		{
  2309  			size, err := m.ServiceAccountRestriction.MarshalToSizedBuffer(dAtA[:i])
  2310  			if err != nil {
  2311  				return 0, err
  2312  			}
  2313  			i -= size
  2314  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2315  		}
  2316  		i--
  2317  		dAtA[i] = 0x1a
  2318  	}
  2319  	if m.GroupRestriction != nil {
  2320  		{
  2321  			size, err := m.GroupRestriction.MarshalToSizedBuffer(dAtA[:i])
  2322  			if err != nil {
  2323  				return 0, err
  2324  			}
  2325  			i -= size
  2326  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2327  		}
  2328  		i--
  2329  		dAtA[i] = 0x12
  2330  	}
  2331  	if m.UserRestriction != nil {
  2332  		{
  2333  			size, err := m.UserRestriction.MarshalToSizedBuffer(dAtA[:i])
  2334  			if err != nil {
  2335  				return 0, err
  2336  			}
  2337  			i -= size
  2338  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2339  		}
  2340  		i--
  2341  		dAtA[i] = 0xa
  2342  	}
  2343  	return len(dAtA) - i, nil
  2344  }
  2345  
  2346  func (m *RoleList) Marshal() (dAtA []byte, err error) {
  2347  	size := m.Size()
  2348  	dAtA = make([]byte, size)
  2349  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2350  	if err != nil {
  2351  		return nil, err
  2352  	}
  2353  	return dAtA[:n], nil
  2354  }
  2355  
  2356  func (m *RoleList) MarshalTo(dAtA []byte) (int, error) {
  2357  	size := m.Size()
  2358  	return m.MarshalToSizedBuffer(dAtA[:size])
  2359  }
  2360  
  2361  func (m *RoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2362  	i := len(dAtA)
  2363  	_ = i
  2364  	var l int
  2365  	_ = l
  2366  	if len(m.Items) > 0 {
  2367  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  2368  			{
  2369  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2370  				if err != nil {
  2371  					return 0, err
  2372  				}
  2373  				i -= size
  2374  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2375  			}
  2376  			i--
  2377  			dAtA[i] = 0x12
  2378  		}
  2379  	}
  2380  	{
  2381  		size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  2382  		if err != nil {
  2383  			return 0, err
  2384  		}
  2385  		i -= size
  2386  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2387  	}
  2388  	i--
  2389  	dAtA[i] = 0xa
  2390  	return len(dAtA) - i, nil
  2391  }
  2392  
  2393  func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error) {
  2394  	size := m.Size()
  2395  	dAtA = make([]byte, size)
  2396  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2397  	if err != nil {
  2398  		return nil, err
  2399  	}
  2400  	return dAtA[:n], nil
  2401  }
  2402  
  2403  func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error) {
  2404  	size := m.Size()
  2405  	return m.MarshalToSizedBuffer(dAtA[:size])
  2406  }
  2407  
  2408  func (m *SelfSubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2409  	i := len(dAtA)
  2410  	_ = i
  2411  	var l int
  2412  	_ = l
  2413  	{
  2414  		size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  2415  		if err != nil {
  2416  			return 0, err
  2417  		}
  2418  		i -= size
  2419  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2420  	}
  2421  	i--
  2422  	dAtA[i] = 0x12
  2423  	{
  2424  		size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  2425  		if err != nil {
  2426  			return 0, err
  2427  		}
  2428  		i -= size
  2429  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2430  	}
  2431  	i--
  2432  	dAtA[i] = 0xa
  2433  	return len(dAtA) - i, nil
  2434  }
  2435  
  2436  func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) {
  2437  	size := m.Size()
  2438  	dAtA = make([]byte, size)
  2439  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2440  	if err != nil {
  2441  		return nil, err
  2442  	}
  2443  	return dAtA[:n], nil
  2444  }
  2445  
  2446  func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) {
  2447  	size := m.Size()
  2448  	return m.MarshalToSizedBuffer(dAtA[:size])
  2449  }
  2450  
  2451  func (m *SelfSubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2452  	i := len(dAtA)
  2453  	_ = i
  2454  	var l int
  2455  	_ = l
  2456  	if m.Scopes != nil {
  2457  		{
  2458  			size, err := m.Scopes.MarshalToSizedBuffer(dAtA[:i])
  2459  			if err != nil {
  2460  				return 0, err
  2461  			}
  2462  			i -= size
  2463  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2464  		}
  2465  		i--
  2466  		dAtA[i] = 0xa
  2467  	}
  2468  	return len(dAtA) - i, nil
  2469  }
  2470  
  2471  func (m *ServiceAccountReference) Marshal() (dAtA []byte, err error) {
  2472  	size := m.Size()
  2473  	dAtA = make([]byte, size)
  2474  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2475  	if err != nil {
  2476  		return nil, err
  2477  	}
  2478  	return dAtA[:n], nil
  2479  }
  2480  
  2481  func (m *ServiceAccountReference) MarshalTo(dAtA []byte) (int, error) {
  2482  	size := m.Size()
  2483  	return m.MarshalToSizedBuffer(dAtA[:size])
  2484  }
  2485  
  2486  func (m *ServiceAccountReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2487  	i := len(dAtA)
  2488  	_ = i
  2489  	var l int
  2490  	_ = l
  2491  	i -= len(m.Namespace)
  2492  	copy(dAtA[i:], m.Namespace)
  2493  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
  2494  	i--
  2495  	dAtA[i] = 0x12
  2496  	i -= len(m.Name)
  2497  	copy(dAtA[i:], m.Name)
  2498  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  2499  	i--
  2500  	dAtA[i] = 0xa
  2501  	return len(dAtA) - i, nil
  2502  }
  2503  
  2504  func (m *ServiceAccountRestriction) Marshal() (dAtA []byte, err error) {
  2505  	size := m.Size()
  2506  	dAtA = make([]byte, size)
  2507  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2508  	if err != nil {
  2509  		return nil, err
  2510  	}
  2511  	return dAtA[:n], nil
  2512  }
  2513  
  2514  func (m *ServiceAccountRestriction) MarshalTo(dAtA []byte) (int, error) {
  2515  	size := m.Size()
  2516  	return m.MarshalToSizedBuffer(dAtA[:size])
  2517  }
  2518  
  2519  func (m *ServiceAccountRestriction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2520  	i := len(dAtA)
  2521  	_ = i
  2522  	var l int
  2523  	_ = l
  2524  	if len(m.Namespaces) > 0 {
  2525  		for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- {
  2526  			i -= len(m.Namespaces[iNdEx])
  2527  			copy(dAtA[i:], m.Namespaces[iNdEx])
  2528  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespaces[iNdEx])))
  2529  			i--
  2530  			dAtA[i] = 0x12
  2531  		}
  2532  	}
  2533  	if len(m.ServiceAccounts) > 0 {
  2534  		for iNdEx := len(m.ServiceAccounts) - 1; iNdEx >= 0; iNdEx-- {
  2535  			{
  2536  				size, err := m.ServiceAccounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2537  				if err != nil {
  2538  					return 0, err
  2539  				}
  2540  				i -= size
  2541  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2542  			}
  2543  			i--
  2544  			dAtA[i] = 0xa
  2545  		}
  2546  	}
  2547  	return len(dAtA) - i, nil
  2548  }
  2549  
  2550  func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error) {
  2551  	size := m.Size()
  2552  	dAtA = make([]byte, size)
  2553  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2554  	if err != nil {
  2555  		return nil, err
  2556  	}
  2557  	return dAtA[:n], nil
  2558  }
  2559  
  2560  func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error) {
  2561  	size := m.Size()
  2562  	return m.MarshalToSizedBuffer(dAtA[:size])
  2563  }
  2564  
  2565  func (m *SubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2566  	i := len(dAtA)
  2567  	_ = i
  2568  	var l int
  2569  	_ = l
  2570  	if m.Scopes != nil {
  2571  		{
  2572  			size, err := m.Scopes.MarshalToSizedBuffer(dAtA[:i])
  2573  			if err != nil {
  2574  				return 0, err
  2575  			}
  2576  			i -= size
  2577  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2578  		}
  2579  		i--
  2580  		dAtA[i] = 0x22
  2581  	}
  2582  	if len(m.GroupsSlice) > 0 {
  2583  		for iNdEx := len(m.GroupsSlice) - 1; iNdEx >= 0; iNdEx-- {
  2584  			i -= len(m.GroupsSlice[iNdEx])
  2585  			copy(dAtA[i:], m.GroupsSlice[iNdEx])
  2586  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.GroupsSlice[iNdEx])))
  2587  			i--
  2588  			dAtA[i] = 0x1a
  2589  		}
  2590  	}
  2591  	i -= len(m.User)
  2592  	copy(dAtA[i:], m.User)
  2593  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.User)))
  2594  	i--
  2595  	dAtA[i] = 0x12
  2596  	{
  2597  		size, err := m.Action.MarshalToSizedBuffer(dAtA[:i])
  2598  		if err != nil {
  2599  			return 0, err
  2600  		}
  2601  		i -= size
  2602  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2603  	}
  2604  	i--
  2605  	dAtA[i] = 0xa
  2606  	return len(dAtA) - i, nil
  2607  }
  2608  
  2609  func (m *SubjectAccessReviewResponse) Marshal() (dAtA []byte, err error) {
  2610  	size := m.Size()
  2611  	dAtA = make([]byte, size)
  2612  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2613  	if err != nil {
  2614  		return nil, err
  2615  	}
  2616  	return dAtA[:n], nil
  2617  }
  2618  
  2619  func (m *SubjectAccessReviewResponse) MarshalTo(dAtA []byte) (int, error) {
  2620  	size := m.Size()
  2621  	return m.MarshalToSizedBuffer(dAtA[:size])
  2622  }
  2623  
  2624  func (m *SubjectAccessReviewResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2625  	i := len(dAtA)
  2626  	_ = i
  2627  	var l int
  2628  	_ = l
  2629  	i -= len(m.EvaluationError)
  2630  	copy(dAtA[i:], m.EvaluationError)
  2631  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError)))
  2632  	i--
  2633  	dAtA[i] = 0x22
  2634  	i -= len(m.Reason)
  2635  	copy(dAtA[i:], m.Reason)
  2636  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  2637  	i--
  2638  	dAtA[i] = 0x1a
  2639  	i--
  2640  	if m.Allowed {
  2641  		dAtA[i] = 1
  2642  	} else {
  2643  		dAtA[i] = 0
  2644  	}
  2645  	i--
  2646  	dAtA[i] = 0x10
  2647  	i -= len(m.Namespace)
  2648  	copy(dAtA[i:], m.Namespace)
  2649  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
  2650  	i--
  2651  	dAtA[i] = 0xa
  2652  	return len(dAtA) - i, nil
  2653  }
  2654  
  2655  func (m *SubjectRulesReview) Marshal() (dAtA []byte, err error) {
  2656  	size := m.Size()
  2657  	dAtA = make([]byte, size)
  2658  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2659  	if err != nil {
  2660  		return nil, err
  2661  	}
  2662  	return dAtA[:n], nil
  2663  }
  2664  
  2665  func (m *SubjectRulesReview) MarshalTo(dAtA []byte) (int, error) {
  2666  	size := m.Size()
  2667  	return m.MarshalToSizedBuffer(dAtA[:size])
  2668  }
  2669  
  2670  func (m *SubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2671  	i := len(dAtA)
  2672  	_ = i
  2673  	var l int
  2674  	_ = l
  2675  	{
  2676  		size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  2677  		if err != nil {
  2678  			return 0, err
  2679  		}
  2680  		i -= size
  2681  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2682  	}
  2683  	i--
  2684  	dAtA[i] = 0x12
  2685  	{
  2686  		size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  2687  		if err != nil {
  2688  			return 0, err
  2689  		}
  2690  		i -= size
  2691  		i = encodeVarintGenerated(dAtA, i, uint64(size))
  2692  	}
  2693  	i--
  2694  	dAtA[i] = 0xa
  2695  	return len(dAtA) - i, nil
  2696  }
  2697  
  2698  func (m *SubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) {
  2699  	size := m.Size()
  2700  	dAtA = make([]byte, size)
  2701  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2702  	if err != nil {
  2703  		return nil, err
  2704  	}
  2705  	return dAtA[:n], nil
  2706  }
  2707  
  2708  func (m *SubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) {
  2709  	size := m.Size()
  2710  	return m.MarshalToSizedBuffer(dAtA[:size])
  2711  }
  2712  
  2713  func (m *SubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2714  	i := len(dAtA)
  2715  	_ = i
  2716  	var l int
  2717  	_ = l
  2718  	if m.Scopes != nil {
  2719  		{
  2720  			size, err := m.Scopes.MarshalToSizedBuffer(dAtA[:i])
  2721  			if err != nil {
  2722  				return 0, err
  2723  			}
  2724  			i -= size
  2725  			i = encodeVarintGenerated(dAtA, i, uint64(size))
  2726  		}
  2727  		i--
  2728  		dAtA[i] = 0x1a
  2729  	}
  2730  	if len(m.Groups) > 0 {
  2731  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  2732  			i -= len(m.Groups[iNdEx])
  2733  			copy(dAtA[i:], m.Groups[iNdEx])
  2734  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx])))
  2735  			i--
  2736  			dAtA[i] = 0x12
  2737  		}
  2738  	}
  2739  	i -= len(m.User)
  2740  	copy(dAtA[i:], m.User)
  2741  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.User)))
  2742  	i--
  2743  	dAtA[i] = 0xa
  2744  	return len(dAtA) - i, nil
  2745  }
  2746  
  2747  func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error) {
  2748  	size := m.Size()
  2749  	dAtA = make([]byte, size)
  2750  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2751  	if err != nil {
  2752  		return nil, err
  2753  	}
  2754  	return dAtA[:n], nil
  2755  }
  2756  
  2757  func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error) {
  2758  	size := m.Size()
  2759  	return m.MarshalToSizedBuffer(dAtA[:size])
  2760  }
  2761  
  2762  func (m *SubjectRulesReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2763  	i := len(dAtA)
  2764  	_ = i
  2765  	var l int
  2766  	_ = l
  2767  	i -= len(m.EvaluationError)
  2768  	copy(dAtA[i:], m.EvaluationError)
  2769  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError)))
  2770  	i--
  2771  	dAtA[i] = 0x12
  2772  	if len(m.Rules) > 0 {
  2773  		for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
  2774  			{
  2775  				size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2776  				if err != nil {
  2777  					return 0, err
  2778  				}
  2779  				i -= size
  2780  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2781  			}
  2782  			i--
  2783  			dAtA[i] = 0xa
  2784  		}
  2785  	}
  2786  	return len(dAtA) - i, nil
  2787  }
  2788  
  2789  func (m *UserRestriction) Marshal() (dAtA []byte, err error) {
  2790  	size := m.Size()
  2791  	dAtA = make([]byte, size)
  2792  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2793  	if err != nil {
  2794  		return nil, err
  2795  	}
  2796  	return dAtA[:n], nil
  2797  }
  2798  
  2799  func (m *UserRestriction) MarshalTo(dAtA []byte) (int, error) {
  2800  	size := m.Size()
  2801  	return m.MarshalToSizedBuffer(dAtA[:size])
  2802  }
  2803  
  2804  func (m *UserRestriction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2805  	i := len(dAtA)
  2806  	_ = i
  2807  	var l int
  2808  	_ = l
  2809  	if len(m.Selectors) > 0 {
  2810  		for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- {
  2811  			{
  2812  				size, err := m.Selectors[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2813  				if err != nil {
  2814  					return 0, err
  2815  				}
  2816  				i -= size
  2817  				i = encodeVarintGenerated(dAtA, i, uint64(size))
  2818  			}
  2819  			i--
  2820  			dAtA[i] = 0x1a
  2821  		}
  2822  	}
  2823  	if len(m.Groups) > 0 {
  2824  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  2825  			i -= len(m.Groups[iNdEx])
  2826  			copy(dAtA[i:], m.Groups[iNdEx])
  2827  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx])))
  2828  			i--
  2829  			dAtA[i] = 0x12
  2830  		}
  2831  	}
  2832  	if len(m.Users) > 0 {
  2833  		for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- {
  2834  			i -= len(m.Users[iNdEx])
  2835  			copy(dAtA[i:], m.Users[iNdEx])
  2836  			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Users[iNdEx])))
  2837  			i--
  2838  			dAtA[i] = 0xa
  2839  		}
  2840  	}
  2841  	return len(dAtA) - i, nil
  2842  }
  2843  
  2844  func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  2845  	offset -= sovGenerated(v)
  2846  	base := offset
  2847  	for v >= 1<<7 {
  2848  		dAtA[offset] = uint8(v&0x7f | 0x80)
  2849  		v >>= 7
  2850  		offset++
  2851  	}
  2852  	dAtA[offset] = uint8(v)
  2853  	return base
  2854  }
  2855  func (m *Action) Size() (n int) {
  2856  	if m == nil {
  2857  		return 0
  2858  	}
  2859  	var l int
  2860  	_ = l
  2861  	l = len(m.Namespace)
  2862  	n += 1 + l + sovGenerated(uint64(l))
  2863  	l = len(m.Verb)
  2864  	n += 1 + l + sovGenerated(uint64(l))
  2865  	l = len(m.Group)
  2866  	n += 1 + l + sovGenerated(uint64(l))
  2867  	l = len(m.Version)
  2868  	n += 1 + l + sovGenerated(uint64(l))
  2869  	l = len(m.Resource)
  2870  	n += 1 + l + sovGenerated(uint64(l))
  2871  	l = len(m.ResourceName)
  2872  	n += 1 + l + sovGenerated(uint64(l))
  2873  	l = m.Content.Size()
  2874  	n += 1 + l + sovGenerated(uint64(l))
  2875  	l = len(m.Path)
  2876  	n += 1 + l + sovGenerated(uint64(l))
  2877  	n += 2
  2878  	return n
  2879  }
  2880  
  2881  func (m *ClusterRole) Size() (n int) {
  2882  	if m == nil {
  2883  		return 0
  2884  	}
  2885  	var l int
  2886  	_ = l
  2887  	l = m.ObjectMeta.Size()
  2888  	n += 1 + l + sovGenerated(uint64(l))
  2889  	if len(m.Rules) > 0 {
  2890  		for _, e := range m.Rules {
  2891  			l = e.Size()
  2892  			n += 1 + l + sovGenerated(uint64(l))
  2893  		}
  2894  	}
  2895  	if m.AggregationRule != nil {
  2896  		l = m.AggregationRule.Size()
  2897  		n += 1 + l + sovGenerated(uint64(l))
  2898  	}
  2899  	return n
  2900  }
  2901  
  2902  func (m *ClusterRoleBinding) Size() (n int) {
  2903  	if m == nil {
  2904  		return 0
  2905  	}
  2906  	var l int
  2907  	_ = l
  2908  	l = m.ObjectMeta.Size()
  2909  	n += 1 + l + sovGenerated(uint64(l))
  2910  	if m.UserNames != nil {
  2911  		l = m.UserNames.Size()
  2912  		n += 1 + l + sovGenerated(uint64(l))
  2913  	}
  2914  	if m.GroupNames != nil {
  2915  		l = m.GroupNames.Size()
  2916  		n += 1 + l + sovGenerated(uint64(l))
  2917  	}
  2918  	if len(m.Subjects) > 0 {
  2919  		for _, e := range m.Subjects {
  2920  			l = e.Size()
  2921  			n += 1 + l + sovGenerated(uint64(l))
  2922  		}
  2923  	}
  2924  	l = m.RoleRef.Size()
  2925  	n += 1 + l + sovGenerated(uint64(l))
  2926  	return n
  2927  }
  2928  
  2929  func (m *ClusterRoleBindingList) Size() (n int) {
  2930  	if m == nil {
  2931  		return 0
  2932  	}
  2933  	var l int
  2934  	_ = l
  2935  	l = m.ListMeta.Size()
  2936  	n += 1 + l + sovGenerated(uint64(l))
  2937  	if len(m.Items) > 0 {
  2938  		for _, e := range m.Items {
  2939  			l = e.Size()
  2940  			n += 1 + l + sovGenerated(uint64(l))
  2941  		}
  2942  	}
  2943  	return n
  2944  }
  2945  
  2946  func (m *ClusterRoleList) Size() (n int) {
  2947  	if m == nil {
  2948  		return 0
  2949  	}
  2950  	var l int
  2951  	_ = l
  2952  	l = m.ListMeta.Size()
  2953  	n += 1 + l + sovGenerated(uint64(l))
  2954  	if len(m.Items) > 0 {
  2955  		for _, e := range m.Items {
  2956  			l = e.Size()
  2957  			n += 1 + l + sovGenerated(uint64(l))
  2958  		}
  2959  	}
  2960  	return n
  2961  }
  2962  
  2963  func (m *GroupRestriction) Size() (n int) {
  2964  	if m == nil {
  2965  		return 0
  2966  	}
  2967  	var l int
  2968  	_ = l
  2969  	if len(m.Groups) > 0 {
  2970  		for _, s := range m.Groups {
  2971  			l = len(s)
  2972  			n += 1 + l + sovGenerated(uint64(l))
  2973  		}
  2974  	}
  2975  	if len(m.Selectors) > 0 {
  2976  		for _, e := range m.Selectors {
  2977  			l = e.Size()
  2978  			n += 1 + l + sovGenerated(uint64(l))
  2979  		}
  2980  	}
  2981  	return n
  2982  }
  2983  
  2984  func (m *IsPersonalSubjectAccessReview) Size() (n int) {
  2985  	if m == nil {
  2986  		return 0
  2987  	}
  2988  	var l int
  2989  	_ = l
  2990  	return n
  2991  }
  2992  
  2993  func (m *LocalResourceAccessReview) Size() (n int) {
  2994  	if m == nil {
  2995  		return 0
  2996  	}
  2997  	var l int
  2998  	_ = l
  2999  	l = m.Action.Size()
  3000  	n += 1 + l + sovGenerated(uint64(l))
  3001  	return n
  3002  }
  3003  
  3004  func (m *LocalSubjectAccessReview) Size() (n int) {
  3005  	if m == nil {
  3006  		return 0
  3007  	}
  3008  	var l int
  3009  	_ = l
  3010  	l = m.Action.Size()
  3011  	n += 1 + l + sovGenerated(uint64(l))
  3012  	l = len(m.User)
  3013  	n += 1 + l + sovGenerated(uint64(l))
  3014  	if len(m.GroupsSlice) > 0 {
  3015  		for _, s := range m.GroupsSlice {
  3016  			l = len(s)
  3017  			n += 1 + l + sovGenerated(uint64(l))
  3018  		}
  3019  	}
  3020  	if m.Scopes != nil {
  3021  		l = m.Scopes.Size()
  3022  		n += 1 + l + sovGenerated(uint64(l))
  3023  	}
  3024  	return n
  3025  }
  3026  
  3027  func (m *NamedClusterRole) Size() (n int) {
  3028  	if m == nil {
  3029  		return 0
  3030  	}
  3031  	var l int
  3032  	_ = l
  3033  	l = len(m.Name)
  3034  	n += 1 + l + sovGenerated(uint64(l))
  3035  	l = m.Role.Size()
  3036  	n += 1 + l + sovGenerated(uint64(l))
  3037  	return n
  3038  }
  3039  
  3040  func (m *NamedClusterRoleBinding) Size() (n int) {
  3041  	if m == nil {
  3042  		return 0
  3043  	}
  3044  	var l int
  3045  	_ = l
  3046  	l = len(m.Name)
  3047  	n += 1 + l + sovGenerated(uint64(l))
  3048  	l = m.RoleBinding.Size()
  3049  	n += 1 + l + sovGenerated(uint64(l))
  3050  	return n
  3051  }
  3052  
  3053  func (m *NamedRole) Size() (n int) {
  3054  	if m == nil {
  3055  		return 0
  3056  	}
  3057  	var l int
  3058  	_ = l
  3059  	l = len(m.Name)
  3060  	n += 1 + l + sovGenerated(uint64(l))
  3061  	l = m.Role.Size()
  3062  	n += 1 + l + sovGenerated(uint64(l))
  3063  	return n
  3064  }
  3065  
  3066  func (m *NamedRoleBinding) Size() (n int) {
  3067  	if m == nil {
  3068  		return 0
  3069  	}
  3070  	var l int
  3071  	_ = l
  3072  	l = len(m.Name)
  3073  	n += 1 + l + sovGenerated(uint64(l))
  3074  	l = m.RoleBinding.Size()
  3075  	n += 1 + l + sovGenerated(uint64(l))
  3076  	return n
  3077  }
  3078  
  3079  func (m OptionalNames) Size() (n int) {
  3080  	if m == nil {
  3081  		return 0
  3082  	}
  3083  	var l int
  3084  	_ = l
  3085  	if len(m) > 0 {
  3086  		for _, s := range m {
  3087  			l = len(s)
  3088  			n += 1 + l + sovGenerated(uint64(l))
  3089  		}
  3090  	}
  3091  	return n
  3092  }
  3093  
  3094  func (m OptionalScopes) Size() (n int) {
  3095  	if m == nil {
  3096  		return 0
  3097  	}
  3098  	var l int
  3099  	_ = l
  3100  	if len(m) > 0 {
  3101  		for _, s := range m {
  3102  			l = len(s)
  3103  			n += 1 + l + sovGenerated(uint64(l))
  3104  		}
  3105  	}
  3106  	return n
  3107  }
  3108  
  3109  func (m *PolicyRule) Size() (n int) {
  3110  	if m == nil {
  3111  		return 0
  3112  	}
  3113  	var l int
  3114  	_ = l
  3115  	if len(m.Verbs) > 0 {
  3116  		for _, s := range m.Verbs {
  3117  			l = len(s)
  3118  			n += 1 + l + sovGenerated(uint64(l))
  3119  		}
  3120  	}
  3121  	l = m.AttributeRestrictions.Size()
  3122  	n += 1 + l + sovGenerated(uint64(l))
  3123  	if len(m.APIGroups) > 0 {
  3124  		for _, s := range m.APIGroups {
  3125  			l = len(s)
  3126  			n += 1 + l + sovGenerated(uint64(l))
  3127  		}
  3128  	}
  3129  	if len(m.Resources) > 0 {
  3130  		for _, s := range m.Resources {
  3131  			l = len(s)
  3132  			n += 1 + l + sovGenerated(uint64(l))
  3133  		}
  3134  	}
  3135  	if len(m.ResourceNames) > 0 {
  3136  		for _, s := range m.ResourceNames {
  3137  			l = len(s)
  3138  			n += 1 + l + sovGenerated(uint64(l))
  3139  		}
  3140  	}
  3141  	if len(m.NonResourceURLsSlice) > 0 {
  3142  		for _, s := range m.NonResourceURLsSlice {
  3143  			l = len(s)
  3144  			n += 1 + l + sovGenerated(uint64(l))
  3145  		}
  3146  	}
  3147  	return n
  3148  }
  3149  
  3150  func (m *ResourceAccessReview) Size() (n int) {
  3151  	if m == nil {
  3152  		return 0
  3153  	}
  3154  	var l int
  3155  	_ = l
  3156  	l = m.Action.Size()
  3157  	n += 1 + l + sovGenerated(uint64(l))
  3158  	return n
  3159  }
  3160  
  3161  func (m *ResourceAccessReviewResponse) Size() (n int) {
  3162  	if m == nil {
  3163  		return 0
  3164  	}
  3165  	var l int
  3166  	_ = l
  3167  	l = len(m.Namespace)
  3168  	n += 1 + l + sovGenerated(uint64(l))
  3169  	if len(m.UsersSlice) > 0 {
  3170  		for _, s := range m.UsersSlice {
  3171  			l = len(s)
  3172  			n += 1 + l + sovGenerated(uint64(l))
  3173  		}
  3174  	}
  3175  	if len(m.GroupsSlice) > 0 {
  3176  		for _, s := range m.GroupsSlice {
  3177  			l = len(s)
  3178  			n += 1 + l + sovGenerated(uint64(l))
  3179  		}
  3180  	}
  3181  	l = len(m.EvaluationError)
  3182  	n += 1 + l + sovGenerated(uint64(l))
  3183  	return n
  3184  }
  3185  
  3186  func (m *Role) Size() (n int) {
  3187  	if m == nil {
  3188  		return 0
  3189  	}
  3190  	var l int
  3191  	_ = l
  3192  	l = m.ObjectMeta.Size()
  3193  	n += 1 + l + sovGenerated(uint64(l))
  3194  	if len(m.Rules) > 0 {
  3195  		for _, e := range m.Rules {
  3196  			l = e.Size()
  3197  			n += 1 + l + sovGenerated(uint64(l))
  3198  		}
  3199  	}
  3200  	return n
  3201  }
  3202  
  3203  func (m *RoleBinding) Size() (n int) {
  3204  	if m == nil {
  3205  		return 0
  3206  	}
  3207  	var l int
  3208  	_ = l
  3209  	l = m.ObjectMeta.Size()
  3210  	n += 1 + l + sovGenerated(uint64(l))
  3211  	if m.UserNames != nil {
  3212  		l = m.UserNames.Size()
  3213  		n += 1 + l + sovGenerated(uint64(l))
  3214  	}
  3215  	if m.GroupNames != nil {
  3216  		l = m.GroupNames.Size()
  3217  		n += 1 + l + sovGenerated(uint64(l))
  3218  	}
  3219  	if len(m.Subjects) > 0 {
  3220  		for _, e := range m.Subjects {
  3221  			l = e.Size()
  3222  			n += 1 + l + sovGenerated(uint64(l))
  3223  		}
  3224  	}
  3225  	l = m.RoleRef.Size()
  3226  	n += 1 + l + sovGenerated(uint64(l))
  3227  	return n
  3228  }
  3229  
  3230  func (m *RoleBindingList) Size() (n int) {
  3231  	if m == nil {
  3232  		return 0
  3233  	}
  3234  	var l int
  3235  	_ = l
  3236  	l = m.ListMeta.Size()
  3237  	n += 1 + l + sovGenerated(uint64(l))
  3238  	if len(m.Items) > 0 {
  3239  		for _, e := range m.Items {
  3240  			l = e.Size()
  3241  			n += 1 + l + sovGenerated(uint64(l))
  3242  		}
  3243  	}
  3244  	return n
  3245  }
  3246  
  3247  func (m *RoleBindingRestriction) Size() (n int) {
  3248  	if m == nil {
  3249  		return 0
  3250  	}
  3251  	var l int
  3252  	_ = l
  3253  	l = m.ObjectMeta.Size()
  3254  	n += 1 + l + sovGenerated(uint64(l))
  3255  	l = m.Spec.Size()
  3256  	n += 1 + l + sovGenerated(uint64(l))
  3257  	return n
  3258  }
  3259  
  3260  func (m *RoleBindingRestrictionList) Size() (n int) {
  3261  	if m == nil {
  3262  		return 0
  3263  	}
  3264  	var l int
  3265  	_ = l
  3266  	l = m.ListMeta.Size()
  3267  	n += 1 + l + sovGenerated(uint64(l))
  3268  	if len(m.Items) > 0 {
  3269  		for _, e := range m.Items {
  3270  			l = e.Size()
  3271  			n += 1 + l + sovGenerated(uint64(l))
  3272  		}
  3273  	}
  3274  	return n
  3275  }
  3276  
  3277  func (m *RoleBindingRestrictionSpec) Size() (n int) {
  3278  	if m == nil {
  3279  		return 0
  3280  	}
  3281  	var l int
  3282  	_ = l
  3283  	if m.UserRestriction != nil {
  3284  		l = m.UserRestriction.Size()
  3285  		n += 1 + l + sovGenerated(uint64(l))
  3286  	}
  3287  	if m.GroupRestriction != nil {
  3288  		l = m.GroupRestriction.Size()
  3289  		n += 1 + l + sovGenerated(uint64(l))
  3290  	}
  3291  	if m.ServiceAccountRestriction != nil {
  3292  		l = m.ServiceAccountRestriction.Size()
  3293  		n += 1 + l + sovGenerated(uint64(l))
  3294  	}
  3295  	return n
  3296  }
  3297  
  3298  func (m *RoleList) Size() (n int) {
  3299  	if m == nil {
  3300  		return 0
  3301  	}
  3302  	var l int
  3303  	_ = l
  3304  	l = m.ListMeta.Size()
  3305  	n += 1 + l + sovGenerated(uint64(l))
  3306  	if len(m.Items) > 0 {
  3307  		for _, e := range m.Items {
  3308  			l = e.Size()
  3309  			n += 1 + l + sovGenerated(uint64(l))
  3310  		}
  3311  	}
  3312  	return n
  3313  }
  3314  
  3315  func (m *SelfSubjectRulesReview) Size() (n int) {
  3316  	if m == nil {
  3317  		return 0
  3318  	}
  3319  	var l int
  3320  	_ = l
  3321  	l = m.Spec.Size()
  3322  	n += 1 + l + sovGenerated(uint64(l))
  3323  	l = m.Status.Size()
  3324  	n += 1 + l + sovGenerated(uint64(l))
  3325  	return n
  3326  }
  3327  
  3328  func (m *SelfSubjectRulesReviewSpec) Size() (n int) {
  3329  	if m == nil {
  3330  		return 0
  3331  	}
  3332  	var l int
  3333  	_ = l
  3334  	if m.Scopes != nil {
  3335  		l = m.Scopes.Size()
  3336  		n += 1 + l + sovGenerated(uint64(l))
  3337  	}
  3338  	return n
  3339  }
  3340  
  3341  func (m *ServiceAccountReference) Size() (n int) {
  3342  	if m == nil {
  3343  		return 0
  3344  	}
  3345  	var l int
  3346  	_ = l
  3347  	l = len(m.Name)
  3348  	n += 1 + l + sovGenerated(uint64(l))
  3349  	l = len(m.Namespace)
  3350  	n += 1 + l + sovGenerated(uint64(l))
  3351  	return n
  3352  }
  3353  
  3354  func (m *ServiceAccountRestriction) Size() (n int) {
  3355  	if m == nil {
  3356  		return 0
  3357  	}
  3358  	var l int
  3359  	_ = l
  3360  	if len(m.ServiceAccounts) > 0 {
  3361  		for _, e := range m.ServiceAccounts {
  3362  			l = e.Size()
  3363  			n += 1 + l + sovGenerated(uint64(l))
  3364  		}
  3365  	}
  3366  	if len(m.Namespaces) > 0 {
  3367  		for _, s := range m.Namespaces {
  3368  			l = len(s)
  3369  			n += 1 + l + sovGenerated(uint64(l))
  3370  		}
  3371  	}
  3372  	return n
  3373  }
  3374  
  3375  func (m *SubjectAccessReview) Size() (n int) {
  3376  	if m == nil {
  3377  		return 0
  3378  	}
  3379  	var l int
  3380  	_ = l
  3381  	l = m.Action.Size()
  3382  	n += 1 + l + sovGenerated(uint64(l))
  3383  	l = len(m.User)
  3384  	n += 1 + l + sovGenerated(uint64(l))
  3385  	if len(m.GroupsSlice) > 0 {
  3386  		for _, s := range m.GroupsSlice {
  3387  			l = len(s)
  3388  			n += 1 + l + sovGenerated(uint64(l))
  3389  		}
  3390  	}
  3391  	if m.Scopes != nil {
  3392  		l = m.Scopes.Size()
  3393  		n += 1 + l + sovGenerated(uint64(l))
  3394  	}
  3395  	return n
  3396  }
  3397  
  3398  func (m *SubjectAccessReviewResponse) Size() (n int) {
  3399  	if m == nil {
  3400  		return 0
  3401  	}
  3402  	var l int
  3403  	_ = l
  3404  	l = len(m.Namespace)
  3405  	n += 1 + l + sovGenerated(uint64(l))
  3406  	n += 2
  3407  	l = len(m.Reason)
  3408  	n += 1 + l + sovGenerated(uint64(l))
  3409  	l = len(m.EvaluationError)
  3410  	n += 1 + l + sovGenerated(uint64(l))
  3411  	return n
  3412  }
  3413  
  3414  func (m *SubjectRulesReview) Size() (n int) {
  3415  	if m == nil {
  3416  		return 0
  3417  	}
  3418  	var l int
  3419  	_ = l
  3420  	l = m.Spec.Size()
  3421  	n += 1 + l + sovGenerated(uint64(l))
  3422  	l = m.Status.Size()
  3423  	n += 1 + l + sovGenerated(uint64(l))
  3424  	return n
  3425  }
  3426  
  3427  func (m *SubjectRulesReviewSpec) Size() (n int) {
  3428  	if m == nil {
  3429  		return 0
  3430  	}
  3431  	var l int
  3432  	_ = l
  3433  	l = len(m.User)
  3434  	n += 1 + l + sovGenerated(uint64(l))
  3435  	if len(m.Groups) > 0 {
  3436  		for _, s := range m.Groups {
  3437  			l = len(s)
  3438  			n += 1 + l + sovGenerated(uint64(l))
  3439  		}
  3440  	}
  3441  	if m.Scopes != nil {
  3442  		l = m.Scopes.Size()
  3443  		n += 1 + l + sovGenerated(uint64(l))
  3444  	}
  3445  	return n
  3446  }
  3447  
  3448  func (m *SubjectRulesReviewStatus) Size() (n int) {
  3449  	if m == nil {
  3450  		return 0
  3451  	}
  3452  	var l int
  3453  	_ = l
  3454  	if len(m.Rules) > 0 {
  3455  		for _, e := range m.Rules {
  3456  			l = e.Size()
  3457  			n += 1 + l + sovGenerated(uint64(l))
  3458  		}
  3459  	}
  3460  	l = len(m.EvaluationError)
  3461  	n += 1 + l + sovGenerated(uint64(l))
  3462  	return n
  3463  }
  3464  
  3465  func (m *UserRestriction) Size() (n int) {
  3466  	if m == nil {
  3467  		return 0
  3468  	}
  3469  	var l int
  3470  	_ = l
  3471  	if len(m.Users) > 0 {
  3472  		for _, s := range m.Users {
  3473  			l = len(s)
  3474  			n += 1 + l + sovGenerated(uint64(l))
  3475  		}
  3476  	}
  3477  	if len(m.Groups) > 0 {
  3478  		for _, s := range m.Groups {
  3479  			l = len(s)
  3480  			n += 1 + l + sovGenerated(uint64(l))
  3481  		}
  3482  	}
  3483  	if len(m.Selectors) > 0 {
  3484  		for _, e := range m.Selectors {
  3485  			l = e.Size()
  3486  			n += 1 + l + sovGenerated(uint64(l))
  3487  		}
  3488  	}
  3489  	return n
  3490  }
  3491  
  3492  func sovGenerated(x uint64) (n int) {
  3493  	return (math_bits.Len64(x|1) + 6) / 7
  3494  }
  3495  func sozGenerated(x uint64) (n int) {
  3496  	return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  3497  }
  3498  func (this *Action) String() string {
  3499  	if this == nil {
  3500  		return "nil"
  3501  	}
  3502  	s := strings.Join([]string{`&Action{`,
  3503  		`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  3504  		`Verb:` + fmt.Sprintf("%v", this.Verb) + `,`,
  3505  		`Group:` + fmt.Sprintf("%v", this.Group) + `,`,
  3506  		`Version:` + fmt.Sprintf("%v", this.Version) + `,`,
  3507  		`Resource:` + fmt.Sprintf("%v", this.Resource) + `,`,
  3508  		`ResourceName:` + fmt.Sprintf("%v", this.ResourceName) + `,`,
  3509  		`Content:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Content), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
  3510  		`Path:` + fmt.Sprintf("%v", this.Path) + `,`,
  3511  		`IsNonResourceURL:` + fmt.Sprintf("%v", this.IsNonResourceURL) + `,`,
  3512  		`}`,
  3513  	}, "")
  3514  	return s
  3515  }
  3516  func (this *ClusterRole) String() string {
  3517  	if this == nil {
  3518  		return "nil"
  3519  	}
  3520  	repeatedStringForRules := "[]PolicyRule{"
  3521  	for _, f := range this.Rules {
  3522  		repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + ","
  3523  	}
  3524  	repeatedStringForRules += "}"
  3525  	s := strings.Join([]string{`&ClusterRole{`,
  3526  		`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3527  		`Rules:` + repeatedStringForRules + `,`,
  3528  		`AggregationRule:` + strings.Replace(fmt.Sprintf("%v", this.AggregationRule), "AggregationRule", "v11.AggregationRule", 1) + `,`,
  3529  		`}`,
  3530  	}, "")
  3531  	return s
  3532  }
  3533  func (this *ClusterRoleBinding) String() string {
  3534  	if this == nil {
  3535  		return "nil"
  3536  	}
  3537  	repeatedStringForSubjects := "[]ObjectReference{"
  3538  	for _, f := range this.Subjects {
  3539  		repeatedStringForSubjects += fmt.Sprintf("%v", f) + ","
  3540  	}
  3541  	repeatedStringForSubjects += "}"
  3542  	s := strings.Join([]string{`&ClusterRoleBinding{`,
  3543  		`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3544  		`UserNames:` + strings.Replace(fmt.Sprintf("%v", this.UserNames), "OptionalNames", "OptionalNames", 1) + `,`,
  3545  		`GroupNames:` + strings.Replace(fmt.Sprintf("%v", this.GroupNames), "OptionalNames", "OptionalNames", 1) + `,`,
  3546  		`Subjects:` + repeatedStringForSubjects + `,`,
  3547  		`RoleRef:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RoleRef), "ObjectReference", "v12.ObjectReference", 1), `&`, ``, 1) + `,`,
  3548  		`}`,
  3549  	}, "")
  3550  	return s
  3551  }
  3552  func (this *ClusterRoleBindingList) String() string {
  3553  	if this == nil {
  3554  		return "nil"
  3555  	}
  3556  	repeatedStringForItems := "[]ClusterRoleBinding{"
  3557  	for _, f := range this.Items {
  3558  		repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + ","
  3559  	}
  3560  	repeatedStringForItems += "}"
  3561  	s := strings.Join([]string{`&ClusterRoleBindingList{`,
  3562  		`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3563  		`Items:` + repeatedStringForItems + `,`,
  3564  		`}`,
  3565  	}, "")
  3566  	return s
  3567  }
  3568  func (this *ClusterRoleList) String() string {
  3569  	if this == nil {
  3570  		return "nil"
  3571  	}
  3572  	repeatedStringForItems := "[]ClusterRole{"
  3573  	for _, f := range this.Items {
  3574  		repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + ","
  3575  	}
  3576  	repeatedStringForItems += "}"
  3577  	s := strings.Join([]string{`&ClusterRoleList{`,
  3578  		`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3579  		`Items:` + repeatedStringForItems + `,`,
  3580  		`}`,
  3581  	}, "")
  3582  	return s
  3583  }
  3584  func (this *GroupRestriction) String() string {
  3585  	if this == nil {
  3586  		return "nil"
  3587  	}
  3588  	repeatedStringForSelectors := "[]LabelSelector{"
  3589  	for _, f := range this.Selectors {
  3590  		repeatedStringForSelectors += fmt.Sprintf("%v", f) + ","
  3591  	}
  3592  	repeatedStringForSelectors += "}"
  3593  	s := strings.Join([]string{`&GroupRestriction{`,
  3594  		`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  3595  		`Selectors:` + repeatedStringForSelectors + `,`,
  3596  		`}`,
  3597  	}, "")
  3598  	return s
  3599  }
  3600  func (this *IsPersonalSubjectAccessReview) String() string {
  3601  	if this == nil {
  3602  		return "nil"
  3603  	}
  3604  	s := strings.Join([]string{`&IsPersonalSubjectAccessReview{`,
  3605  		`}`,
  3606  	}, "")
  3607  	return s
  3608  }
  3609  func (this *LocalResourceAccessReview) String() string {
  3610  	if this == nil {
  3611  		return "nil"
  3612  	}
  3613  	s := strings.Join([]string{`&LocalResourceAccessReview{`,
  3614  		`Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`,
  3615  		`}`,
  3616  	}, "")
  3617  	return s
  3618  }
  3619  func (this *LocalSubjectAccessReview) String() string {
  3620  	if this == nil {
  3621  		return "nil"
  3622  	}
  3623  	s := strings.Join([]string{`&LocalSubjectAccessReview{`,
  3624  		`Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`,
  3625  		`User:` + fmt.Sprintf("%v", this.User) + `,`,
  3626  		`GroupsSlice:` + fmt.Sprintf("%v", this.GroupsSlice) + `,`,
  3627  		`Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`,
  3628  		`}`,
  3629  	}, "")
  3630  	return s
  3631  }
  3632  func (this *NamedClusterRole) String() string {
  3633  	if this == nil {
  3634  		return "nil"
  3635  	}
  3636  	s := strings.Join([]string{`&NamedClusterRole{`,
  3637  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  3638  		`Role:` + strings.Replace(strings.Replace(this.Role.String(), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + `,`,
  3639  		`}`,
  3640  	}, "")
  3641  	return s
  3642  }
  3643  func (this *NamedClusterRoleBinding) String() string {
  3644  	if this == nil {
  3645  		return "nil"
  3646  	}
  3647  	s := strings.Join([]string{`&NamedClusterRoleBinding{`,
  3648  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  3649  		`RoleBinding:` + strings.Replace(strings.Replace(this.RoleBinding.String(), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + `,`,
  3650  		`}`,
  3651  	}, "")
  3652  	return s
  3653  }
  3654  func (this *NamedRole) String() string {
  3655  	if this == nil {
  3656  		return "nil"
  3657  	}
  3658  	s := strings.Join([]string{`&NamedRole{`,
  3659  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  3660  		`Role:` + strings.Replace(strings.Replace(this.Role.String(), "Role", "Role", 1), `&`, ``, 1) + `,`,
  3661  		`}`,
  3662  	}, "")
  3663  	return s
  3664  }
  3665  func (this *NamedRoleBinding) String() string {
  3666  	if this == nil {
  3667  		return "nil"
  3668  	}
  3669  	s := strings.Join([]string{`&NamedRoleBinding{`,
  3670  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  3671  		`RoleBinding:` + strings.Replace(strings.Replace(this.RoleBinding.String(), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + `,`,
  3672  		`}`,
  3673  	}, "")
  3674  	return s
  3675  }
  3676  func (this *PolicyRule) String() string {
  3677  	if this == nil {
  3678  		return "nil"
  3679  	}
  3680  	s := strings.Join([]string{`&PolicyRule{`,
  3681  		`Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`,
  3682  		`AttributeRestrictions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AttributeRestrictions), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
  3683  		`APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
  3684  		`Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
  3685  		`ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`,
  3686  		`NonResourceURLsSlice:` + fmt.Sprintf("%v", this.NonResourceURLsSlice) + `,`,
  3687  		`}`,
  3688  	}, "")
  3689  	return s
  3690  }
  3691  func (this *ResourceAccessReview) String() string {
  3692  	if this == nil {
  3693  		return "nil"
  3694  	}
  3695  	s := strings.Join([]string{`&ResourceAccessReview{`,
  3696  		`Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`,
  3697  		`}`,
  3698  	}, "")
  3699  	return s
  3700  }
  3701  func (this *ResourceAccessReviewResponse) String() string {
  3702  	if this == nil {
  3703  		return "nil"
  3704  	}
  3705  	s := strings.Join([]string{`&ResourceAccessReviewResponse{`,
  3706  		`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  3707  		`UsersSlice:` + fmt.Sprintf("%v", this.UsersSlice) + `,`,
  3708  		`GroupsSlice:` + fmt.Sprintf("%v", this.GroupsSlice) + `,`,
  3709  		`EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`,
  3710  		`}`,
  3711  	}, "")
  3712  	return s
  3713  }
  3714  func (this *Role) String() string {
  3715  	if this == nil {
  3716  		return "nil"
  3717  	}
  3718  	repeatedStringForRules := "[]PolicyRule{"
  3719  	for _, f := range this.Rules {
  3720  		repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + ","
  3721  	}
  3722  	repeatedStringForRules += "}"
  3723  	s := strings.Join([]string{`&Role{`,
  3724  		`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3725  		`Rules:` + repeatedStringForRules + `,`,
  3726  		`}`,
  3727  	}, "")
  3728  	return s
  3729  }
  3730  func (this *RoleBinding) String() string {
  3731  	if this == nil {
  3732  		return "nil"
  3733  	}
  3734  	repeatedStringForSubjects := "[]ObjectReference{"
  3735  	for _, f := range this.Subjects {
  3736  		repeatedStringForSubjects += fmt.Sprintf("%v", f) + ","
  3737  	}
  3738  	repeatedStringForSubjects += "}"
  3739  	s := strings.Join([]string{`&RoleBinding{`,
  3740  		`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3741  		`UserNames:` + strings.Replace(fmt.Sprintf("%v", this.UserNames), "OptionalNames", "OptionalNames", 1) + `,`,
  3742  		`GroupNames:` + strings.Replace(fmt.Sprintf("%v", this.GroupNames), "OptionalNames", "OptionalNames", 1) + `,`,
  3743  		`Subjects:` + repeatedStringForSubjects + `,`,
  3744  		`RoleRef:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RoleRef), "ObjectReference", "v12.ObjectReference", 1), `&`, ``, 1) + `,`,
  3745  		`}`,
  3746  	}, "")
  3747  	return s
  3748  }
  3749  func (this *RoleBindingList) String() string {
  3750  	if this == nil {
  3751  		return "nil"
  3752  	}
  3753  	repeatedStringForItems := "[]RoleBinding{"
  3754  	for _, f := range this.Items {
  3755  		repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + ","
  3756  	}
  3757  	repeatedStringForItems += "}"
  3758  	s := strings.Join([]string{`&RoleBindingList{`,
  3759  		`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3760  		`Items:` + repeatedStringForItems + `,`,
  3761  		`}`,
  3762  	}, "")
  3763  	return s
  3764  }
  3765  func (this *RoleBindingRestriction) String() string {
  3766  	if this == nil {
  3767  		return "nil"
  3768  	}
  3769  	s := strings.Join([]string{`&RoleBindingRestriction{`,
  3770  		`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3771  		`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RoleBindingRestrictionSpec", "RoleBindingRestrictionSpec", 1), `&`, ``, 1) + `,`,
  3772  		`}`,
  3773  	}, "")
  3774  	return s
  3775  }
  3776  func (this *RoleBindingRestrictionList) String() string {
  3777  	if this == nil {
  3778  		return "nil"
  3779  	}
  3780  	repeatedStringForItems := "[]RoleBindingRestriction{"
  3781  	for _, f := range this.Items {
  3782  		repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RoleBindingRestriction", "RoleBindingRestriction", 1), `&`, ``, 1) + ","
  3783  	}
  3784  	repeatedStringForItems += "}"
  3785  	s := strings.Join([]string{`&RoleBindingRestrictionList{`,
  3786  		`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3787  		`Items:` + repeatedStringForItems + `,`,
  3788  		`}`,
  3789  	}, "")
  3790  	return s
  3791  }
  3792  func (this *RoleBindingRestrictionSpec) String() string {
  3793  	if this == nil {
  3794  		return "nil"
  3795  	}
  3796  	s := strings.Join([]string{`&RoleBindingRestrictionSpec{`,
  3797  		`UserRestriction:` + strings.Replace(this.UserRestriction.String(), "UserRestriction", "UserRestriction", 1) + `,`,
  3798  		`GroupRestriction:` + strings.Replace(this.GroupRestriction.String(), "GroupRestriction", "GroupRestriction", 1) + `,`,
  3799  		`ServiceAccountRestriction:` + strings.Replace(this.ServiceAccountRestriction.String(), "ServiceAccountRestriction", "ServiceAccountRestriction", 1) + `,`,
  3800  		`}`,
  3801  	}, "")
  3802  	return s
  3803  }
  3804  func (this *RoleList) String() string {
  3805  	if this == nil {
  3806  		return "nil"
  3807  	}
  3808  	repeatedStringForItems := "[]Role{"
  3809  	for _, f := range this.Items {
  3810  		repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Role", "Role", 1), `&`, ``, 1) + ","
  3811  	}
  3812  	repeatedStringForItems += "}"
  3813  	s := strings.Join([]string{`&RoleList{`,
  3814  		`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3815  		`Items:` + repeatedStringForItems + `,`,
  3816  		`}`,
  3817  	}, "")
  3818  	return s
  3819  }
  3820  func (this *SelfSubjectRulesReview) String() string {
  3821  	if this == nil {
  3822  		return "nil"
  3823  	}
  3824  	s := strings.Join([]string{`&SelfSubjectRulesReview{`,
  3825  		`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectRulesReviewSpec", "SelfSubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`,
  3826  		`Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`,
  3827  		`}`,
  3828  	}, "")
  3829  	return s
  3830  }
  3831  func (this *SelfSubjectRulesReviewSpec) String() string {
  3832  	if this == nil {
  3833  		return "nil"
  3834  	}
  3835  	s := strings.Join([]string{`&SelfSubjectRulesReviewSpec{`,
  3836  		`Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`,
  3837  		`}`,
  3838  	}, "")
  3839  	return s
  3840  }
  3841  func (this *ServiceAccountReference) String() string {
  3842  	if this == nil {
  3843  		return "nil"
  3844  	}
  3845  	s := strings.Join([]string{`&ServiceAccountReference{`,
  3846  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  3847  		`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  3848  		`}`,
  3849  	}, "")
  3850  	return s
  3851  }
  3852  func (this *ServiceAccountRestriction) String() string {
  3853  	if this == nil {
  3854  		return "nil"
  3855  	}
  3856  	repeatedStringForServiceAccounts := "[]ServiceAccountReference{"
  3857  	for _, f := range this.ServiceAccounts {
  3858  		repeatedStringForServiceAccounts += strings.Replace(strings.Replace(f.String(), "ServiceAccountReference", "ServiceAccountReference", 1), `&`, ``, 1) + ","
  3859  	}
  3860  	repeatedStringForServiceAccounts += "}"
  3861  	s := strings.Join([]string{`&ServiceAccountRestriction{`,
  3862  		`ServiceAccounts:` + repeatedStringForServiceAccounts + `,`,
  3863  		`Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`,
  3864  		`}`,
  3865  	}, "")
  3866  	return s
  3867  }
  3868  func (this *SubjectAccessReview) String() string {
  3869  	if this == nil {
  3870  		return "nil"
  3871  	}
  3872  	s := strings.Join([]string{`&SubjectAccessReview{`,
  3873  		`Action:` + strings.Replace(strings.Replace(this.Action.String(), "Action", "Action", 1), `&`, ``, 1) + `,`,
  3874  		`User:` + fmt.Sprintf("%v", this.User) + `,`,
  3875  		`GroupsSlice:` + fmt.Sprintf("%v", this.GroupsSlice) + `,`,
  3876  		`Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`,
  3877  		`}`,
  3878  	}, "")
  3879  	return s
  3880  }
  3881  func (this *SubjectAccessReviewResponse) String() string {
  3882  	if this == nil {
  3883  		return "nil"
  3884  	}
  3885  	s := strings.Join([]string{`&SubjectAccessReviewResponse{`,
  3886  		`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  3887  		`Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`,
  3888  		`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  3889  		`EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`,
  3890  		`}`,
  3891  	}, "")
  3892  	return s
  3893  }
  3894  func (this *SubjectRulesReview) String() string {
  3895  	if this == nil {
  3896  		return "nil"
  3897  	}
  3898  	s := strings.Join([]string{`&SubjectRulesReview{`,
  3899  		`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectRulesReviewSpec", "SubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`,
  3900  		`Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`,
  3901  		`}`,
  3902  	}, "")
  3903  	return s
  3904  }
  3905  func (this *SubjectRulesReviewSpec) String() string {
  3906  	if this == nil {
  3907  		return "nil"
  3908  	}
  3909  	s := strings.Join([]string{`&SubjectRulesReviewSpec{`,
  3910  		`User:` + fmt.Sprintf("%v", this.User) + `,`,
  3911  		`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  3912  		`Scopes:` + strings.Replace(fmt.Sprintf("%v", this.Scopes), "OptionalScopes", "OptionalScopes", 1) + `,`,
  3913  		`}`,
  3914  	}, "")
  3915  	return s
  3916  }
  3917  func (this *SubjectRulesReviewStatus) String() string {
  3918  	if this == nil {
  3919  		return "nil"
  3920  	}
  3921  	repeatedStringForRules := "[]PolicyRule{"
  3922  	for _, f := range this.Rules {
  3923  		repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + ","
  3924  	}
  3925  	repeatedStringForRules += "}"
  3926  	s := strings.Join([]string{`&SubjectRulesReviewStatus{`,
  3927  		`Rules:` + repeatedStringForRules + `,`,
  3928  		`EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`,
  3929  		`}`,
  3930  	}, "")
  3931  	return s
  3932  }
  3933  func (this *UserRestriction) String() string {
  3934  	if this == nil {
  3935  		return "nil"
  3936  	}
  3937  	repeatedStringForSelectors := "[]LabelSelector{"
  3938  	for _, f := range this.Selectors {
  3939  		repeatedStringForSelectors += fmt.Sprintf("%v", f) + ","
  3940  	}
  3941  	repeatedStringForSelectors += "}"
  3942  	s := strings.Join([]string{`&UserRestriction{`,
  3943  		`Users:` + fmt.Sprintf("%v", this.Users) + `,`,
  3944  		`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  3945  		`Selectors:` + repeatedStringForSelectors + `,`,
  3946  		`}`,
  3947  	}, "")
  3948  	return s
  3949  }
  3950  func valueToStringGenerated(v interface{}) string {
  3951  	rv := reflect.ValueOf(v)
  3952  	if rv.IsNil() {
  3953  		return "nil"
  3954  	}
  3955  	pv := reflect.Indirect(rv).Interface()
  3956  	return fmt.Sprintf("*%v", pv)
  3957  }
  3958  func (m *Action) Unmarshal(dAtA []byte) error {
  3959  	l := len(dAtA)
  3960  	iNdEx := 0
  3961  	for iNdEx < l {
  3962  		preIndex := iNdEx
  3963  		var wire uint64
  3964  		for shift := uint(0); ; shift += 7 {
  3965  			if shift >= 64 {
  3966  				return ErrIntOverflowGenerated
  3967  			}
  3968  			if iNdEx >= l {
  3969  				return io.ErrUnexpectedEOF
  3970  			}
  3971  			b := dAtA[iNdEx]
  3972  			iNdEx++
  3973  			wire |= uint64(b&0x7F) << shift
  3974  			if b < 0x80 {
  3975  				break
  3976  			}
  3977  		}
  3978  		fieldNum := int32(wire >> 3)
  3979  		wireType := int(wire & 0x7)
  3980  		if wireType == 4 {
  3981  			return fmt.Errorf("proto: Action: wiretype end group for non-group")
  3982  		}
  3983  		if fieldNum <= 0 {
  3984  			return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire)
  3985  		}
  3986  		switch fieldNum {
  3987  		case 1:
  3988  			if wireType != 2 {
  3989  				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  3990  			}
  3991  			var stringLen uint64
  3992  			for shift := uint(0); ; shift += 7 {
  3993  				if shift >= 64 {
  3994  					return ErrIntOverflowGenerated
  3995  				}
  3996  				if iNdEx >= l {
  3997  					return io.ErrUnexpectedEOF
  3998  				}
  3999  				b := dAtA[iNdEx]
  4000  				iNdEx++
  4001  				stringLen |= uint64(b&0x7F) << shift
  4002  				if b < 0x80 {
  4003  					break
  4004  				}
  4005  			}
  4006  			intStringLen := int(stringLen)
  4007  			if intStringLen < 0 {
  4008  				return ErrInvalidLengthGenerated
  4009  			}
  4010  			postIndex := iNdEx + intStringLen
  4011  			if postIndex < 0 {
  4012  				return ErrInvalidLengthGenerated
  4013  			}
  4014  			if postIndex > l {
  4015  				return io.ErrUnexpectedEOF
  4016  			}
  4017  			m.Namespace = string(dAtA[iNdEx:postIndex])
  4018  			iNdEx = postIndex
  4019  		case 2:
  4020  			if wireType != 2 {
  4021  				return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType)
  4022  			}
  4023  			var stringLen uint64
  4024  			for shift := uint(0); ; shift += 7 {
  4025  				if shift >= 64 {
  4026  					return ErrIntOverflowGenerated
  4027  				}
  4028  				if iNdEx >= l {
  4029  					return io.ErrUnexpectedEOF
  4030  				}
  4031  				b := dAtA[iNdEx]
  4032  				iNdEx++
  4033  				stringLen |= uint64(b&0x7F) << shift
  4034  				if b < 0x80 {
  4035  					break
  4036  				}
  4037  			}
  4038  			intStringLen := int(stringLen)
  4039  			if intStringLen < 0 {
  4040  				return ErrInvalidLengthGenerated
  4041  			}
  4042  			postIndex := iNdEx + intStringLen
  4043  			if postIndex < 0 {
  4044  				return ErrInvalidLengthGenerated
  4045  			}
  4046  			if postIndex > l {
  4047  				return io.ErrUnexpectedEOF
  4048  			}
  4049  			m.Verb = string(dAtA[iNdEx:postIndex])
  4050  			iNdEx = postIndex
  4051  		case 3:
  4052  			if wireType != 2 {
  4053  				return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
  4054  			}
  4055  			var stringLen uint64
  4056  			for shift := uint(0); ; shift += 7 {
  4057  				if shift >= 64 {
  4058  					return ErrIntOverflowGenerated
  4059  				}
  4060  				if iNdEx >= l {
  4061  					return io.ErrUnexpectedEOF
  4062  				}
  4063  				b := dAtA[iNdEx]
  4064  				iNdEx++
  4065  				stringLen |= uint64(b&0x7F) << shift
  4066  				if b < 0x80 {
  4067  					break
  4068  				}
  4069  			}
  4070  			intStringLen := int(stringLen)
  4071  			if intStringLen < 0 {
  4072  				return ErrInvalidLengthGenerated
  4073  			}
  4074  			postIndex := iNdEx + intStringLen
  4075  			if postIndex < 0 {
  4076  				return ErrInvalidLengthGenerated
  4077  			}
  4078  			if postIndex > l {
  4079  				return io.ErrUnexpectedEOF
  4080  			}
  4081  			m.Group = string(dAtA[iNdEx:postIndex])
  4082  			iNdEx = postIndex
  4083  		case 4:
  4084  			if wireType != 2 {
  4085  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  4086  			}
  4087  			var stringLen uint64
  4088  			for shift := uint(0); ; shift += 7 {
  4089  				if shift >= 64 {
  4090  					return ErrIntOverflowGenerated
  4091  				}
  4092  				if iNdEx >= l {
  4093  					return io.ErrUnexpectedEOF
  4094  				}
  4095  				b := dAtA[iNdEx]
  4096  				iNdEx++
  4097  				stringLen |= uint64(b&0x7F) << shift
  4098  				if b < 0x80 {
  4099  					break
  4100  				}
  4101  			}
  4102  			intStringLen := int(stringLen)
  4103  			if intStringLen < 0 {
  4104  				return ErrInvalidLengthGenerated
  4105  			}
  4106  			postIndex := iNdEx + intStringLen
  4107  			if postIndex < 0 {
  4108  				return ErrInvalidLengthGenerated
  4109  			}
  4110  			if postIndex > l {
  4111  				return io.ErrUnexpectedEOF
  4112  			}
  4113  			m.Version = string(dAtA[iNdEx:postIndex])
  4114  			iNdEx = postIndex
  4115  		case 5:
  4116  			if wireType != 2 {
  4117  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  4118  			}
  4119  			var stringLen uint64
  4120  			for shift := uint(0); ; shift += 7 {
  4121  				if shift >= 64 {
  4122  					return ErrIntOverflowGenerated
  4123  				}
  4124  				if iNdEx >= l {
  4125  					return io.ErrUnexpectedEOF
  4126  				}
  4127  				b := dAtA[iNdEx]
  4128  				iNdEx++
  4129  				stringLen |= uint64(b&0x7F) << shift
  4130  				if b < 0x80 {
  4131  					break
  4132  				}
  4133  			}
  4134  			intStringLen := int(stringLen)
  4135  			if intStringLen < 0 {
  4136  				return ErrInvalidLengthGenerated
  4137  			}
  4138  			postIndex := iNdEx + intStringLen
  4139  			if postIndex < 0 {
  4140  				return ErrInvalidLengthGenerated
  4141  			}
  4142  			if postIndex > l {
  4143  				return io.ErrUnexpectedEOF
  4144  			}
  4145  			m.Resource = string(dAtA[iNdEx:postIndex])
  4146  			iNdEx = postIndex
  4147  		case 6:
  4148  			if wireType != 2 {
  4149  				return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType)
  4150  			}
  4151  			var stringLen uint64
  4152  			for shift := uint(0); ; shift += 7 {
  4153  				if shift >= 64 {
  4154  					return ErrIntOverflowGenerated
  4155  				}
  4156  				if iNdEx >= l {
  4157  					return io.ErrUnexpectedEOF
  4158  				}
  4159  				b := dAtA[iNdEx]
  4160  				iNdEx++
  4161  				stringLen |= uint64(b&0x7F) << shift
  4162  				if b < 0x80 {
  4163  					break
  4164  				}
  4165  			}
  4166  			intStringLen := int(stringLen)
  4167  			if intStringLen < 0 {
  4168  				return ErrInvalidLengthGenerated
  4169  			}
  4170  			postIndex := iNdEx + intStringLen
  4171  			if postIndex < 0 {
  4172  				return ErrInvalidLengthGenerated
  4173  			}
  4174  			if postIndex > l {
  4175  				return io.ErrUnexpectedEOF
  4176  			}
  4177  			m.ResourceName = string(dAtA[iNdEx:postIndex])
  4178  			iNdEx = postIndex
  4179  		case 7:
  4180  			if wireType != 2 {
  4181  				return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  4182  			}
  4183  			var msglen int
  4184  			for shift := uint(0); ; shift += 7 {
  4185  				if shift >= 64 {
  4186  					return ErrIntOverflowGenerated
  4187  				}
  4188  				if iNdEx >= l {
  4189  					return io.ErrUnexpectedEOF
  4190  				}
  4191  				b := dAtA[iNdEx]
  4192  				iNdEx++
  4193  				msglen |= int(b&0x7F) << shift
  4194  				if b < 0x80 {
  4195  					break
  4196  				}
  4197  			}
  4198  			if msglen < 0 {
  4199  				return ErrInvalidLengthGenerated
  4200  			}
  4201  			postIndex := iNdEx + msglen
  4202  			if postIndex < 0 {
  4203  				return ErrInvalidLengthGenerated
  4204  			}
  4205  			if postIndex > l {
  4206  				return io.ErrUnexpectedEOF
  4207  			}
  4208  			if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4209  				return err
  4210  			}
  4211  			iNdEx = postIndex
  4212  		case 8:
  4213  			if wireType != 2 {
  4214  				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  4215  			}
  4216  			var stringLen uint64
  4217  			for shift := uint(0); ; shift += 7 {
  4218  				if shift >= 64 {
  4219  					return ErrIntOverflowGenerated
  4220  				}
  4221  				if iNdEx >= l {
  4222  					return io.ErrUnexpectedEOF
  4223  				}
  4224  				b := dAtA[iNdEx]
  4225  				iNdEx++
  4226  				stringLen |= uint64(b&0x7F) << shift
  4227  				if b < 0x80 {
  4228  					break
  4229  				}
  4230  			}
  4231  			intStringLen := int(stringLen)
  4232  			if intStringLen < 0 {
  4233  				return ErrInvalidLengthGenerated
  4234  			}
  4235  			postIndex := iNdEx + intStringLen
  4236  			if postIndex < 0 {
  4237  				return ErrInvalidLengthGenerated
  4238  			}
  4239  			if postIndex > l {
  4240  				return io.ErrUnexpectedEOF
  4241  			}
  4242  			m.Path = string(dAtA[iNdEx:postIndex])
  4243  			iNdEx = postIndex
  4244  		case 9:
  4245  			if wireType != 0 {
  4246  				return fmt.Errorf("proto: wrong wireType = %d for field IsNonResourceURL", wireType)
  4247  			}
  4248  			var v int
  4249  			for shift := uint(0); ; shift += 7 {
  4250  				if shift >= 64 {
  4251  					return ErrIntOverflowGenerated
  4252  				}
  4253  				if iNdEx >= l {
  4254  					return io.ErrUnexpectedEOF
  4255  				}
  4256  				b := dAtA[iNdEx]
  4257  				iNdEx++
  4258  				v |= int(b&0x7F) << shift
  4259  				if b < 0x80 {
  4260  					break
  4261  				}
  4262  			}
  4263  			m.IsNonResourceURL = bool(v != 0)
  4264  		default:
  4265  			iNdEx = preIndex
  4266  			skippy, err := skipGenerated(dAtA[iNdEx:])
  4267  			if err != nil {
  4268  				return err
  4269  			}
  4270  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4271  				return ErrInvalidLengthGenerated
  4272  			}
  4273  			if (iNdEx + skippy) > l {
  4274  				return io.ErrUnexpectedEOF
  4275  			}
  4276  			iNdEx += skippy
  4277  		}
  4278  	}
  4279  
  4280  	if iNdEx > l {
  4281  		return io.ErrUnexpectedEOF
  4282  	}
  4283  	return nil
  4284  }
  4285  func (m *ClusterRole) Unmarshal(dAtA []byte) error {
  4286  	l := len(dAtA)
  4287  	iNdEx := 0
  4288  	for iNdEx < l {
  4289  		preIndex := iNdEx
  4290  		var wire uint64
  4291  		for shift := uint(0); ; shift += 7 {
  4292  			if shift >= 64 {
  4293  				return ErrIntOverflowGenerated
  4294  			}
  4295  			if iNdEx >= l {
  4296  				return io.ErrUnexpectedEOF
  4297  			}
  4298  			b := dAtA[iNdEx]
  4299  			iNdEx++
  4300  			wire |= uint64(b&0x7F) << shift
  4301  			if b < 0x80 {
  4302  				break
  4303  			}
  4304  		}
  4305  		fieldNum := int32(wire >> 3)
  4306  		wireType := int(wire & 0x7)
  4307  		if wireType == 4 {
  4308  			return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group")
  4309  		}
  4310  		if fieldNum <= 0 {
  4311  			return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire)
  4312  		}
  4313  		switch fieldNum {
  4314  		case 1:
  4315  			if wireType != 2 {
  4316  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  4317  			}
  4318  			var msglen int
  4319  			for shift := uint(0); ; shift += 7 {
  4320  				if shift >= 64 {
  4321  					return ErrIntOverflowGenerated
  4322  				}
  4323  				if iNdEx >= l {
  4324  					return io.ErrUnexpectedEOF
  4325  				}
  4326  				b := dAtA[iNdEx]
  4327  				iNdEx++
  4328  				msglen |= int(b&0x7F) << shift
  4329  				if b < 0x80 {
  4330  					break
  4331  				}
  4332  			}
  4333  			if msglen < 0 {
  4334  				return ErrInvalidLengthGenerated
  4335  			}
  4336  			postIndex := iNdEx + msglen
  4337  			if postIndex < 0 {
  4338  				return ErrInvalidLengthGenerated
  4339  			}
  4340  			if postIndex > l {
  4341  				return io.ErrUnexpectedEOF
  4342  			}
  4343  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4344  				return err
  4345  			}
  4346  			iNdEx = postIndex
  4347  		case 2:
  4348  			if wireType != 2 {
  4349  				return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  4350  			}
  4351  			var msglen int
  4352  			for shift := uint(0); ; shift += 7 {
  4353  				if shift >= 64 {
  4354  					return ErrIntOverflowGenerated
  4355  				}
  4356  				if iNdEx >= l {
  4357  					return io.ErrUnexpectedEOF
  4358  				}
  4359  				b := dAtA[iNdEx]
  4360  				iNdEx++
  4361  				msglen |= int(b&0x7F) << shift
  4362  				if b < 0x80 {
  4363  					break
  4364  				}
  4365  			}
  4366  			if msglen < 0 {
  4367  				return ErrInvalidLengthGenerated
  4368  			}
  4369  			postIndex := iNdEx + msglen
  4370  			if postIndex < 0 {
  4371  				return ErrInvalidLengthGenerated
  4372  			}
  4373  			if postIndex > l {
  4374  				return io.ErrUnexpectedEOF
  4375  			}
  4376  			m.Rules = append(m.Rules, PolicyRule{})
  4377  			if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4378  				return err
  4379  			}
  4380  			iNdEx = postIndex
  4381  		case 3:
  4382  			if wireType != 2 {
  4383  				return fmt.Errorf("proto: wrong wireType = %d for field AggregationRule", wireType)
  4384  			}
  4385  			var msglen int
  4386  			for shift := uint(0); ; shift += 7 {
  4387  				if shift >= 64 {
  4388  					return ErrIntOverflowGenerated
  4389  				}
  4390  				if iNdEx >= l {
  4391  					return io.ErrUnexpectedEOF
  4392  				}
  4393  				b := dAtA[iNdEx]
  4394  				iNdEx++
  4395  				msglen |= int(b&0x7F) << shift
  4396  				if b < 0x80 {
  4397  					break
  4398  				}
  4399  			}
  4400  			if msglen < 0 {
  4401  				return ErrInvalidLengthGenerated
  4402  			}
  4403  			postIndex := iNdEx + msglen
  4404  			if postIndex < 0 {
  4405  				return ErrInvalidLengthGenerated
  4406  			}
  4407  			if postIndex > l {
  4408  				return io.ErrUnexpectedEOF
  4409  			}
  4410  			if m.AggregationRule == nil {
  4411  				m.AggregationRule = &v11.AggregationRule{}
  4412  			}
  4413  			if err := m.AggregationRule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4414  				return err
  4415  			}
  4416  			iNdEx = postIndex
  4417  		default:
  4418  			iNdEx = preIndex
  4419  			skippy, err := skipGenerated(dAtA[iNdEx:])
  4420  			if err != nil {
  4421  				return err
  4422  			}
  4423  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4424  				return ErrInvalidLengthGenerated
  4425  			}
  4426  			if (iNdEx + skippy) > l {
  4427  				return io.ErrUnexpectedEOF
  4428  			}
  4429  			iNdEx += skippy
  4430  		}
  4431  	}
  4432  
  4433  	if iNdEx > l {
  4434  		return io.ErrUnexpectedEOF
  4435  	}
  4436  	return nil
  4437  }
  4438  func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error {
  4439  	l := len(dAtA)
  4440  	iNdEx := 0
  4441  	for iNdEx < l {
  4442  		preIndex := iNdEx
  4443  		var wire uint64
  4444  		for shift := uint(0); ; shift += 7 {
  4445  			if shift >= 64 {
  4446  				return ErrIntOverflowGenerated
  4447  			}
  4448  			if iNdEx >= l {
  4449  				return io.ErrUnexpectedEOF
  4450  			}
  4451  			b := dAtA[iNdEx]
  4452  			iNdEx++
  4453  			wire |= uint64(b&0x7F) << shift
  4454  			if b < 0x80 {
  4455  				break
  4456  			}
  4457  		}
  4458  		fieldNum := int32(wire >> 3)
  4459  		wireType := int(wire & 0x7)
  4460  		if wireType == 4 {
  4461  			return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group")
  4462  		}
  4463  		if fieldNum <= 0 {
  4464  			return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
  4465  		}
  4466  		switch fieldNum {
  4467  		case 1:
  4468  			if wireType != 2 {
  4469  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  4470  			}
  4471  			var msglen int
  4472  			for shift := uint(0); ; shift += 7 {
  4473  				if shift >= 64 {
  4474  					return ErrIntOverflowGenerated
  4475  				}
  4476  				if iNdEx >= l {
  4477  					return io.ErrUnexpectedEOF
  4478  				}
  4479  				b := dAtA[iNdEx]
  4480  				iNdEx++
  4481  				msglen |= int(b&0x7F) << shift
  4482  				if b < 0x80 {
  4483  					break
  4484  				}
  4485  			}
  4486  			if msglen < 0 {
  4487  				return ErrInvalidLengthGenerated
  4488  			}
  4489  			postIndex := iNdEx + msglen
  4490  			if postIndex < 0 {
  4491  				return ErrInvalidLengthGenerated
  4492  			}
  4493  			if postIndex > l {
  4494  				return io.ErrUnexpectedEOF
  4495  			}
  4496  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4497  				return err
  4498  			}
  4499  			iNdEx = postIndex
  4500  		case 2:
  4501  			if wireType != 2 {
  4502  				return fmt.Errorf("proto: wrong wireType = %d for field UserNames", wireType)
  4503  			}
  4504  			var msglen int
  4505  			for shift := uint(0); ; shift += 7 {
  4506  				if shift >= 64 {
  4507  					return ErrIntOverflowGenerated
  4508  				}
  4509  				if iNdEx >= l {
  4510  					return io.ErrUnexpectedEOF
  4511  				}
  4512  				b := dAtA[iNdEx]
  4513  				iNdEx++
  4514  				msglen |= int(b&0x7F) << shift
  4515  				if b < 0x80 {
  4516  					break
  4517  				}
  4518  			}
  4519  			if msglen < 0 {
  4520  				return ErrInvalidLengthGenerated
  4521  			}
  4522  			postIndex := iNdEx + msglen
  4523  			if postIndex < 0 {
  4524  				return ErrInvalidLengthGenerated
  4525  			}
  4526  			if postIndex > l {
  4527  				return io.ErrUnexpectedEOF
  4528  			}
  4529  			if m.UserNames == nil {
  4530  				m.UserNames = OptionalNames{}
  4531  			}
  4532  			if err := m.UserNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4533  				return err
  4534  			}
  4535  			iNdEx = postIndex
  4536  		case 3:
  4537  			if wireType != 2 {
  4538  				return fmt.Errorf("proto: wrong wireType = %d for field GroupNames", wireType)
  4539  			}
  4540  			var msglen int
  4541  			for shift := uint(0); ; shift += 7 {
  4542  				if shift >= 64 {
  4543  					return ErrIntOverflowGenerated
  4544  				}
  4545  				if iNdEx >= l {
  4546  					return io.ErrUnexpectedEOF
  4547  				}
  4548  				b := dAtA[iNdEx]
  4549  				iNdEx++
  4550  				msglen |= int(b&0x7F) << shift
  4551  				if b < 0x80 {
  4552  					break
  4553  				}
  4554  			}
  4555  			if msglen < 0 {
  4556  				return ErrInvalidLengthGenerated
  4557  			}
  4558  			postIndex := iNdEx + msglen
  4559  			if postIndex < 0 {
  4560  				return ErrInvalidLengthGenerated
  4561  			}
  4562  			if postIndex > l {
  4563  				return io.ErrUnexpectedEOF
  4564  			}
  4565  			if m.GroupNames == nil {
  4566  				m.GroupNames = OptionalNames{}
  4567  			}
  4568  			if err := m.GroupNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4569  				return err
  4570  			}
  4571  			iNdEx = postIndex
  4572  		case 4:
  4573  			if wireType != 2 {
  4574  				return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
  4575  			}
  4576  			var msglen int
  4577  			for shift := uint(0); ; shift += 7 {
  4578  				if shift >= 64 {
  4579  					return ErrIntOverflowGenerated
  4580  				}
  4581  				if iNdEx >= l {
  4582  					return io.ErrUnexpectedEOF
  4583  				}
  4584  				b := dAtA[iNdEx]
  4585  				iNdEx++
  4586  				msglen |= int(b&0x7F) << shift
  4587  				if b < 0x80 {
  4588  					break
  4589  				}
  4590  			}
  4591  			if msglen < 0 {
  4592  				return ErrInvalidLengthGenerated
  4593  			}
  4594  			postIndex := iNdEx + msglen
  4595  			if postIndex < 0 {
  4596  				return ErrInvalidLengthGenerated
  4597  			}
  4598  			if postIndex > l {
  4599  				return io.ErrUnexpectedEOF
  4600  			}
  4601  			m.Subjects = append(m.Subjects, v12.ObjectReference{})
  4602  			if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4603  				return err
  4604  			}
  4605  			iNdEx = postIndex
  4606  		case 5:
  4607  			if wireType != 2 {
  4608  				return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType)
  4609  			}
  4610  			var msglen int
  4611  			for shift := uint(0); ; shift += 7 {
  4612  				if shift >= 64 {
  4613  					return ErrIntOverflowGenerated
  4614  				}
  4615  				if iNdEx >= l {
  4616  					return io.ErrUnexpectedEOF
  4617  				}
  4618  				b := dAtA[iNdEx]
  4619  				iNdEx++
  4620  				msglen |= int(b&0x7F) << shift
  4621  				if b < 0x80 {
  4622  					break
  4623  				}
  4624  			}
  4625  			if msglen < 0 {
  4626  				return ErrInvalidLengthGenerated
  4627  			}
  4628  			postIndex := iNdEx + msglen
  4629  			if postIndex < 0 {
  4630  				return ErrInvalidLengthGenerated
  4631  			}
  4632  			if postIndex > l {
  4633  				return io.ErrUnexpectedEOF
  4634  			}
  4635  			if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4636  				return err
  4637  			}
  4638  			iNdEx = postIndex
  4639  		default:
  4640  			iNdEx = preIndex
  4641  			skippy, err := skipGenerated(dAtA[iNdEx:])
  4642  			if err != nil {
  4643  				return err
  4644  			}
  4645  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4646  				return ErrInvalidLengthGenerated
  4647  			}
  4648  			if (iNdEx + skippy) > l {
  4649  				return io.ErrUnexpectedEOF
  4650  			}
  4651  			iNdEx += skippy
  4652  		}
  4653  	}
  4654  
  4655  	if iNdEx > l {
  4656  		return io.ErrUnexpectedEOF
  4657  	}
  4658  	return nil
  4659  }
  4660  func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error {
  4661  	l := len(dAtA)
  4662  	iNdEx := 0
  4663  	for iNdEx < l {
  4664  		preIndex := iNdEx
  4665  		var wire uint64
  4666  		for shift := uint(0); ; shift += 7 {
  4667  			if shift >= 64 {
  4668  				return ErrIntOverflowGenerated
  4669  			}
  4670  			if iNdEx >= l {
  4671  				return io.ErrUnexpectedEOF
  4672  			}
  4673  			b := dAtA[iNdEx]
  4674  			iNdEx++
  4675  			wire |= uint64(b&0x7F) << shift
  4676  			if b < 0x80 {
  4677  				break
  4678  			}
  4679  		}
  4680  		fieldNum := int32(wire >> 3)
  4681  		wireType := int(wire & 0x7)
  4682  		if wireType == 4 {
  4683  			return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group")
  4684  		}
  4685  		if fieldNum <= 0 {
  4686  			return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire)
  4687  		}
  4688  		switch fieldNum {
  4689  		case 1:
  4690  			if wireType != 2 {
  4691  				return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  4692  			}
  4693  			var msglen int
  4694  			for shift := uint(0); ; shift += 7 {
  4695  				if shift >= 64 {
  4696  					return ErrIntOverflowGenerated
  4697  				}
  4698  				if iNdEx >= l {
  4699  					return io.ErrUnexpectedEOF
  4700  				}
  4701  				b := dAtA[iNdEx]
  4702  				iNdEx++
  4703  				msglen |= int(b&0x7F) << shift
  4704  				if b < 0x80 {
  4705  					break
  4706  				}
  4707  			}
  4708  			if msglen < 0 {
  4709  				return ErrInvalidLengthGenerated
  4710  			}
  4711  			postIndex := iNdEx + msglen
  4712  			if postIndex < 0 {
  4713  				return ErrInvalidLengthGenerated
  4714  			}
  4715  			if postIndex > l {
  4716  				return io.ErrUnexpectedEOF
  4717  			}
  4718  			if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4719  				return err
  4720  			}
  4721  			iNdEx = postIndex
  4722  		case 2:
  4723  			if wireType != 2 {
  4724  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  4725  			}
  4726  			var msglen int
  4727  			for shift := uint(0); ; shift += 7 {
  4728  				if shift >= 64 {
  4729  					return ErrIntOverflowGenerated
  4730  				}
  4731  				if iNdEx >= l {
  4732  					return io.ErrUnexpectedEOF
  4733  				}
  4734  				b := dAtA[iNdEx]
  4735  				iNdEx++
  4736  				msglen |= int(b&0x7F) << shift
  4737  				if b < 0x80 {
  4738  					break
  4739  				}
  4740  			}
  4741  			if msglen < 0 {
  4742  				return ErrInvalidLengthGenerated
  4743  			}
  4744  			postIndex := iNdEx + msglen
  4745  			if postIndex < 0 {
  4746  				return ErrInvalidLengthGenerated
  4747  			}
  4748  			if postIndex > l {
  4749  				return io.ErrUnexpectedEOF
  4750  			}
  4751  			m.Items = append(m.Items, ClusterRoleBinding{})
  4752  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4753  				return err
  4754  			}
  4755  			iNdEx = postIndex
  4756  		default:
  4757  			iNdEx = preIndex
  4758  			skippy, err := skipGenerated(dAtA[iNdEx:])
  4759  			if err != nil {
  4760  				return err
  4761  			}
  4762  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4763  				return ErrInvalidLengthGenerated
  4764  			}
  4765  			if (iNdEx + skippy) > l {
  4766  				return io.ErrUnexpectedEOF
  4767  			}
  4768  			iNdEx += skippy
  4769  		}
  4770  	}
  4771  
  4772  	if iNdEx > l {
  4773  		return io.ErrUnexpectedEOF
  4774  	}
  4775  	return nil
  4776  }
  4777  func (m *ClusterRoleList) Unmarshal(dAtA []byte) error {
  4778  	l := len(dAtA)
  4779  	iNdEx := 0
  4780  	for iNdEx < l {
  4781  		preIndex := iNdEx
  4782  		var wire uint64
  4783  		for shift := uint(0); ; shift += 7 {
  4784  			if shift >= 64 {
  4785  				return ErrIntOverflowGenerated
  4786  			}
  4787  			if iNdEx >= l {
  4788  				return io.ErrUnexpectedEOF
  4789  			}
  4790  			b := dAtA[iNdEx]
  4791  			iNdEx++
  4792  			wire |= uint64(b&0x7F) << shift
  4793  			if b < 0x80 {
  4794  				break
  4795  			}
  4796  		}
  4797  		fieldNum := int32(wire >> 3)
  4798  		wireType := int(wire & 0x7)
  4799  		if wireType == 4 {
  4800  			return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group")
  4801  		}
  4802  		if fieldNum <= 0 {
  4803  			return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire)
  4804  		}
  4805  		switch fieldNum {
  4806  		case 1:
  4807  			if wireType != 2 {
  4808  				return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  4809  			}
  4810  			var msglen int
  4811  			for shift := uint(0); ; shift += 7 {
  4812  				if shift >= 64 {
  4813  					return ErrIntOverflowGenerated
  4814  				}
  4815  				if iNdEx >= l {
  4816  					return io.ErrUnexpectedEOF
  4817  				}
  4818  				b := dAtA[iNdEx]
  4819  				iNdEx++
  4820  				msglen |= int(b&0x7F) << shift
  4821  				if b < 0x80 {
  4822  					break
  4823  				}
  4824  			}
  4825  			if msglen < 0 {
  4826  				return ErrInvalidLengthGenerated
  4827  			}
  4828  			postIndex := iNdEx + msglen
  4829  			if postIndex < 0 {
  4830  				return ErrInvalidLengthGenerated
  4831  			}
  4832  			if postIndex > l {
  4833  				return io.ErrUnexpectedEOF
  4834  			}
  4835  			if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4836  				return err
  4837  			}
  4838  			iNdEx = postIndex
  4839  		case 2:
  4840  			if wireType != 2 {
  4841  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  4842  			}
  4843  			var msglen int
  4844  			for shift := uint(0); ; shift += 7 {
  4845  				if shift >= 64 {
  4846  					return ErrIntOverflowGenerated
  4847  				}
  4848  				if iNdEx >= l {
  4849  					return io.ErrUnexpectedEOF
  4850  				}
  4851  				b := dAtA[iNdEx]
  4852  				iNdEx++
  4853  				msglen |= int(b&0x7F) << shift
  4854  				if b < 0x80 {
  4855  					break
  4856  				}
  4857  			}
  4858  			if msglen < 0 {
  4859  				return ErrInvalidLengthGenerated
  4860  			}
  4861  			postIndex := iNdEx + msglen
  4862  			if postIndex < 0 {
  4863  				return ErrInvalidLengthGenerated
  4864  			}
  4865  			if postIndex > l {
  4866  				return io.ErrUnexpectedEOF
  4867  			}
  4868  			m.Items = append(m.Items, ClusterRole{})
  4869  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4870  				return err
  4871  			}
  4872  			iNdEx = postIndex
  4873  		default:
  4874  			iNdEx = preIndex
  4875  			skippy, err := skipGenerated(dAtA[iNdEx:])
  4876  			if err != nil {
  4877  				return err
  4878  			}
  4879  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4880  				return ErrInvalidLengthGenerated
  4881  			}
  4882  			if (iNdEx + skippy) > l {
  4883  				return io.ErrUnexpectedEOF
  4884  			}
  4885  			iNdEx += skippy
  4886  		}
  4887  	}
  4888  
  4889  	if iNdEx > l {
  4890  		return io.ErrUnexpectedEOF
  4891  	}
  4892  	return nil
  4893  }
  4894  func (m *GroupRestriction) Unmarshal(dAtA []byte) error {
  4895  	l := len(dAtA)
  4896  	iNdEx := 0
  4897  	for iNdEx < l {
  4898  		preIndex := iNdEx
  4899  		var wire uint64
  4900  		for shift := uint(0); ; shift += 7 {
  4901  			if shift >= 64 {
  4902  				return ErrIntOverflowGenerated
  4903  			}
  4904  			if iNdEx >= l {
  4905  				return io.ErrUnexpectedEOF
  4906  			}
  4907  			b := dAtA[iNdEx]
  4908  			iNdEx++
  4909  			wire |= uint64(b&0x7F) << shift
  4910  			if b < 0x80 {
  4911  				break
  4912  			}
  4913  		}
  4914  		fieldNum := int32(wire >> 3)
  4915  		wireType := int(wire & 0x7)
  4916  		if wireType == 4 {
  4917  			return fmt.Errorf("proto: GroupRestriction: wiretype end group for non-group")
  4918  		}
  4919  		if fieldNum <= 0 {
  4920  			return fmt.Errorf("proto: GroupRestriction: illegal tag %d (wire type %d)", fieldNum, wire)
  4921  		}
  4922  		switch fieldNum {
  4923  		case 1:
  4924  			if wireType != 2 {
  4925  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  4926  			}
  4927  			var stringLen uint64
  4928  			for shift := uint(0); ; shift += 7 {
  4929  				if shift >= 64 {
  4930  					return ErrIntOverflowGenerated
  4931  				}
  4932  				if iNdEx >= l {
  4933  					return io.ErrUnexpectedEOF
  4934  				}
  4935  				b := dAtA[iNdEx]
  4936  				iNdEx++
  4937  				stringLen |= uint64(b&0x7F) << shift
  4938  				if b < 0x80 {
  4939  					break
  4940  				}
  4941  			}
  4942  			intStringLen := int(stringLen)
  4943  			if intStringLen < 0 {
  4944  				return ErrInvalidLengthGenerated
  4945  			}
  4946  			postIndex := iNdEx + intStringLen
  4947  			if postIndex < 0 {
  4948  				return ErrInvalidLengthGenerated
  4949  			}
  4950  			if postIndex > l {
  4951  				return io.ErrUnexpectedEOF
  4952  			}
  4953  			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  4954  			iNdEx = postIndex
  4955  		case 2:
  4956  			if wireType != 2 {
  4957  				return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType)
  4958  			}
  4959  			var msglen int
  4960  			for shift := uint(0); ; shift += 7 {
  4961  				if shift >= 64 {
  4962  					return ErrIntOverflowGenerated
  4963  				}
  4964  				if iNdEx >= l {
  4965  					return io.ErrUnexpectedEOF
  4966  				}
  4967  				b := dAtA[iNdEx]
  4968  				iNdEx++
  4969  				msglen |= int(b&0x7F) << shift
  4970  				if b < 0x80 {
  4971  					break
  4972  				}
  4973  			}
  4974  			if msglen < 0 {
  4975  				return ErrInvalidLengthGenerated
  4976  			}
  4977  			postIndex := iNdEx + msglen
  4978  			if postIndex < 0 {
  4979  				return ErrInvalidLengthGenerated
  4980  			}
  4981  			if postIndex > l {
  4982  				return io.ErrUnexpectedEOF
  4983  			}
  4984  			m.Selectors = append(m.Selectors, v1.LabelSelector{})
  4985  			if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4986  				return err
  4987  			}
  4988  			iNdEx = postIndex
  4989  		default:
  4990  			iNdEx = preIndex
  4991  			skippy, err := skipGenerated(dAtA[iNdEx:])
  4992  			if err != nil {
  4993  				return err
  4994  			}
  4995  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4996  				return ErrInvalidLengthGenerated
  4997  			}
  4998  			if (iNdEx + skippy) > l {
  4999  				return io.ErrUnexpectedEOF
  5000  			}
  5001  			iNdEx += skippy
  5002  		}
  5003  	}
  5004  
  5005  	if iNdEx > l {
  5006  		return io.ErrUnexpectedEOF
  5007  	}
  5008  	return nil
  5009  }
  5010  func (m *IsPersonalSubjectAccessReview) Unmarshal(dAtA []byte) error {
  5011  	l := len(dAtA)
  5012  	iNdEx := 0
  5013  	for iNdEx < l {
  5014  		preIndex := iNdEx
  5015  		var wire uint64
  5016  		for shift := uint(0); ; shift += 7 {
  5017  			if shift >= 64 {
  5018  				return ErrIntOverflowGenerated
  5019  			}
  5020  			if iNdEx >= l {
  5021  				return io.ErrUnexpectedEOF
  5022  			}
  5023  			b := dAtA[iNdEx]
  5024  			iNdEx++
  5025  			wire |= uint64(b&0x7F) << shift
  5026  			if b < 0x80 {
  5027  				break
  5028  			}
  5029  		}
  5030  		fieldNum := int32(wire >> 3)
  5031  		wireType := int(wire & 0x7)
  5032  		if wireType == 4 {
  5033  			return fmt.Errorf("proto: IsPersonalSubjectAccessReview: wiretype end group for non-group")
  5034  		}
  5035  		if fieldNum <= 0 {
  5036  			return fmt.Errorf("proto: IsPersonalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire)
  5037  		}
  5038  		switch fieldNum {
  5039  		default:
  5040  			iNdEx = preIndex
  5041  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5042  			if err != nil {
  5043  				return err
  5044  			}
  5045  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5046  				return ErrInvalidLengthGenerated
  5047  			}
  5048  			if (iNdEx + skippy) > l {
  5049  				return io.ErrUnexpectedEOF
  5050  			}
  5051  			iNdEx += skippy
  5052  		}
  5053  	}
  5054  
  5055  	if iNdEx > l {
  5056  		return io.ErrUnexpectedEOF
  5057  	}
  5058  	return nil
  5059  }
  5060  func (m *LocalResourceAccessReview) Unmarshal(dAtA []byte) error {
  5061  	l := len(dAtA)
  5062  	iNdEx := 0
  5063  	for iNdEx < l {
  5064  		preIndex := iNdEx
  5065  		var wire uint64
  5066  		for shift := uint(0); ; shift += 7 {
  5067  			if shift >= 64 {
  5068  				return ErrIntOverflowGenerated
  5069  			}
  5070  			if iNdEx >= l {
  5071  				return io.ErrUnexpectedEOF
  5072  			}
  5073  			b := dAtA[iNdEx]
  5074  			iNdEx++
  5075  			wire |= uint64(b&0x7F) << shift
  5076  			if b < 0x80 {
  5077  				break
  5078  			}
  5079  		}
  5080  		fieldNum := int32(wire >> 3)
  5081  		wireType := int(wire & 0x7)
  5082  		if wireType == 4 {
  5083  			return fmt.Errorf("proto: LocalResourceAccessReview: wiretype end group for non-group")
  5084  		}
  5085  		if fieldNum <= 0 {
  5086  			return fmt.Errorf("proto: LocalResourceAccessReview: illegal tag %d (wire type %d)", fieldNum, wire)
  5087  		}
  5088  		switch fieldNum {
  5089  		case 1:
  5090  			if wireType != 2 {
  5091  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  5092  			}
  5093  			var msglen int
  5094  			for shift := uint(0); ; shift += 7 {
  5095  				if shift >= 64 {
  5096  					return ErrIntOverflowGenerated
  5097  				}
  5098  				if iNdEx >= l {
  5099  					return io.ErrUnexpectedEOF
  5100  				}
  5101  				b := dAtA[iNdEx]
  5102  				iNdEx++
  5103  				msglen |= int(b&0x7F) << shift
  5104  				if b < 0x80 {
  5105  					break
  5106  				}
  5107  			}
  5108  			if msglen < 0 {
  5109  				return ErrInvalidLengthGenerated
  5110  			}
  5111  			postIndex := iNdEx + msglen
  5112  			if postIndex < 0 {
  5113  				return ErrInvalidLengthGenerated
  5114  			}
  5115  			if postIndex > l {
  5116  				return io.ErrUnexpectedEOF
  5117  			}
  5118  			if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5119  				return err
  5120  			}
  5121  			iNdEx = postIndex
  5122  		default:
  5123  			iNdEx = preIndex
  5124  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5125  			if err != nil {
  5126  				return err
  5127  			}
  5128  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5129  				return ErrInvalidLengthGenerated
  5130  			}
  5131  			if (iNdEx + skippy) > l {
  5132  				return io.ErrUnexpectedEOF
  5133  			}
  5134  			iNdEx += skippy
  5135  		}
  5136  	}
  5137  
  5138  	if iNdEx > l {
  5139  		return io.ErrUnexpectedEOF
  5140  	}
  5141  	return nil
  5142  }
  5143  func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error {
  5144  	l := len(dAtA)
  5145  	iNdEx := 0
  5146  	for iNdEx < l {
  5147  		preIndex := iNdEx
  5148  		var wire uint64
  5149  		for shift := uint(0); ; shift += 7 {
  5150  			if shift >= 64 {
  5151  				return ErrIntOverflowGenerated
  5152  			}
  5153  			if iNdEx >= l {
  5154  				return io.ErrUnexpectedEOF
  5155  			}
  5156  			b := dAtA[iNdEx]
  5157  			iNdEx++
  5158  			wire |= uint64(b&0x7F) << shift
  5159  			if b < 0x80 {
  5160  				break
  5161  			}
  5162  		}
  5163  		fieldNum := int32(wire >> 3)
  5164  		wireType := int(wire & 0x7)
  5165  		if wireType == 4 {
  5166  			return fmt.Errorf("proto: LocalSubjectAccessReview: wiretype end group for non-group")
  5167  		}
  5168  		if fieldNum <= 0 {
  5169  			return fmt.Errorf("proto: LocalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire)
  5170  		}
  5171  		switch fieldNum {
  5172  		case 1:
  5173  			if wireType != 2 {
  5174  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  5175  			}
  5176  			var msglen int
  5177  			for shift := uint(0); ; shift += 7 {
  5178  				if shift >= 64 {
  5179  					return ErrIntOverflowGenerated
  5180  				}
  5181  				if iNdEx >= l {
  5182  					return io.ErrUnexpectedEOF
  5183  				}
  5184  				b := dAtA[iNdEx]
  5185  				iNdEx++
  5186  				msglen |= int(b&0x7F) << shift
  5187  				if b < 0x80 {
  5188  					break
  5189  				}
  5190  			}
  5191  			if msglen < 0 {
  5192  				return ErrInvalidLengthGenerated
  5193  			}
  5194  			postIndex := iNdEx + msglen
  5195  			if postIndex < 0 {
  5196  				return ErrInvalidLengthGenerated
  5197  			}
  5198  			if postIndex > l {
  5199  				return io.ErrUnexpectedEOF
  5200  			}
  5201  			if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5202  				return err
  5203  			}
  5204  			iNdEx = postIndex
  5205  		case 2:
  5206  			if wireType != 2 {
  5207  				return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  5208  			}
  5209  			var stringLen uint64
  5210  			for shift := uint(0); ; shift += 7 {
  5211  				if shift >= 64 {
  5212  					return ErrIntOverflowGenerated
  5213  				}
  5214  				if iNdEx >= l {
  5215  					return io.ErrUnexpectedEOF
  5216  				}
  5217  				b := dAtA[iNdEx]
  5218  				iNdEx++
  5219  				stringLen |= uint64(b&0x7F) << shift
  5220  				if b < 0x80 {
  5221  					break
  5222  				}
  5223  			}
  5224  			intStringLen := int(stringLen)
  5225  			if intStringLen < 0 {
  5226  				return ErrInvalidLengthGenerated
  5227  			}
  5228  			postIndex := iNdEx + intStringLen
  5229  			if postIndex < 0 {
  5230  				return ErrInvalidLengthGenerated
  5231  			}
  5232  			if postIndex > l {
  5233  				return io.ErrUnexpectedEOF
  5234  			}
  5235  			m.User = string(dAtA[iNdEx:postIndex])
  5236  			iNdEx = postIndex
  5237  		case 3:
  5238  			if wireType != 2 {
  5239  				return fmt.Errorf("proto: wrong wireType = %d for field GroupsSlice", wireType)
  5240  			}
  5241  			var stringLen uint64
  5242  			for shift := uint(0); ; shift += 7 {
  5243  				if shift >= 64 {
  5244  					return ErrIntOverflowGenerated
  5245  				}
  5246  				if iNdEx >= l {
  5247  					return io.ErrUnexpectedEOF
  5248  				}
  5249  				b := dAtA[iNdEx]
  5250  				iNdEx++
  5251  				stringLen |= uint64(b&0x7F) << shift
  5252  				if b < 0x80 {
  5253  					break
  5254  				}
  5255  			}
  5256  			intStringLen := int(stringLen)
  5257  			if intStringLen < 0 {
  5258  				return ErrInvalidLengthGenerated
  5259  			}
  5260  			postIndex := iNdEx + intStringLen
  5261  			if postIndex < 0 {
  5262  				return ErrInvalidLengthGenerated
  5263  			}
  5264  			if postIndex > l {
  5265  				return io.ErrUnexpectedEOF
  5266  			}
  5267  			m.GroupsSlice = append(m.GroupsSlice, string(dAtA[iNdEx:postIndex]))
  5268  			iNdEx = postIndex
  5269  		case 4:
  5270  			if wireType != 2 {
  5271  				return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType)
  5272  			}
  5273  			var msglen int
  5274  			for shift := uint(0); ; shift += 7 {
  5275  				if shift >= 64 {
  5276  					return ErrIntOverflowGenerated
  5277  				}
  5278  				if iNdEx >= l {
  5279  					return io.ErrUnexpectedEOF
  5280  				}
  5281  				b := dAtA[iNdEx]
  5282  				iNdEx++
  5283  				msglen |= int(b&0x7F) << shift
  5284  				if b < 0x80 {
  5285  					break
  5286  				}
  5287  			}
  5288  			if msglen < 0 {
  5289  				return ErrInvalidLengthGenerated
  5290  			}
  5291  			postIndex := iNdEx + msglen
  5292  			if postIndex < 0 {
  5293  				return ErrInvalidLengthGenerated
  5294  			}
  5295  			if postIndex > l {
  5296  				return io.ErrUnexpectedEOF
  5297  			}
  5298  			if m.Scopes == nil {
  5299  				m.Scopes = OptionalScopes{}
  5300  			}
  5301  			if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5302  				return err
  5303  			}
  5304  			iNdEx = postIndex
  5305  		default:
  5306  			iNdEx = preIndex
  5307  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5308  			if err != nil {
  5309  				return err
  5310  			}
  5311  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5312  				return ErrInvalidLengthGenerated
  5313  			}
  5314  			if (iNdEx + skippy) > l {
  5315  				return io.ErrUnexpectedEOF
  5316  			}
  5317  			iNdEx += skippy
  5318  		}
  5319  	}
  5320  
  5321  	if iNdEx > l {
  5322  		return io.ErrUnexpectedEOF
  5323  	}
  5324  	return nil
  5325  }
  5326  func (m *NamedClusterRole) Unmarshal(dAtA []byte) error {
  5327  	l := len(dAtA)
  5328  	iNdEx := 0
  5329  	for iNdEx < l {
  5330  		preIndex := iNdEx
  5331  		var wire uint64
  5332  		for shift := uint(0); ; shift += 7 {
  5333  			if shift >= 64 {
  5334  				return ErrIntOverflowGenerated
  5335  			}
  5336  			if iNdEx >= l {
  5337  				return io.ErrUnexpectedEOF
  5338  			}
  5339  			b := dAtA[iNdEx]
  5340  			iNdEx++
  5341  			wire |= uint64(b&0x7F) << shift
  5342  			if b < 0x80 {
  5343  				break
  5344  			}
  5345  		}
  5346  		fieldNum := int32(wire >> 3)
  5347  		wireType := int(wire & 0x7)
  5348  		if wireType == 4 {
  5349  			return fmt.Errorf("proto: NamedClusterRole: wiretype end group for non-group")
  5350  		}
  5351  		if fieldNum <= 0 {
  5352  			return fmt.Errorf("proto: NamedClusterRole: illegal tag %d (wire type %d)", fieldNum, wire)
  5353  		}
  5354  		switch fieldNum {
  5355  		case 1:
  5356  			if wireType != 2 {
  5357  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5358  			}
  5359  			var stringLen uint64
  5360  			for shift := uint(0); ; shift += 7 {
  5361  				if shift >= 64 {
  5362  					return ErrIntOverflowGenerated
  5363  				}
  5364  				if iNdEx >= l {
  5365  					return io.ErrUnexpectedEOF
  5366  				}
  5367  				b := dAtA[iNdEx]
  5368  				iNdEx++
  5369  				stringLen |= uint64(b&0x7F) << shift
  5370  				if b < 0x80 {
  5371  					break
  5372  				}
  5373  			}
  5374  			intStringLen := int(stringLen)
  5375  			if intStringLen < 0 {
  5376  				return ErrInvalidLengthGenerated
  5377  			}
  5378  			postIndex := iNdEx + intStringLen
  5379  			if postIndex < 0 {
  5380  				return ErrInvalidLengthGenerated
  5381  			}
  5382  			if postIndex > l {
  5383  				return io.ErrUnexpectedEOF
  5384  			}
  5385  			m.Name = string(dAtA[iNdEx:postIndex])
  5386  			iNdEx = postIndex
  5387  		case 2:
  5388  			if wireType != 2 {
  5389  				return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  5390  			}
  5391  			var msglen int
  5392  			for shift := uint(0); ; shift += 7 {
  5393  				if shift >= 64 {
  5394  					return ErrIntOverflowGenerated
  5395  				}
  5396  				if iNdEx >= l {
  5397  					return io.ErrUnexpectedEOF
  5398  				}
  5399  				b := dAtA[iNdEx]
  5400  				iNdEx++
  5401  				msglen |= int(b&0x7F) << shift
  5402  				if b < 0x80 {
  5403  					break
  5404  				}
  5405  			}
  5406  			if msglen < 0 {
  5407  				return ErrInvalidLengthGenerated
  5408  			}
  5409  			postIndex := iNdEx + msglen
  5410  			if postIndex < 0 {
  5411  				return ErrInvalidLengthGenerated
  5412  			}
  5413  			if postIndex > l {
  5414  				return io.ErrUnexpectedEOF
  5415  			}
  5416  			if err := m.Role.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5417  				return err
  5418  			}
  5419  			iNdEx = postIndex
  5420  		default:
  5421  			iNdEx = preIndex
  5422  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5423  			if err != nil {
  5424  				return err
  5425  			}
  5426  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5427  				return ErrInvalidLengthGenerated
  5428  			}
  5429  			if (iNdEx + skippy) > l {
  5430  				return io.ErrUnexpectedEOF
  5431  			}
  5432  			iNdEx += skippy
  5433  		}
  5434  	}
  5435  
  5436  	if iNdEx > l {
  5437  		return io.ErrUnexpectedEOF
  5438  	}
  5439  	return nil
  5440  }
  5441  func (m *NamedClusterRoleBinding) Unmarshal(dAtA []byte) error {
  5442  	l := len(dAtA)
  5443  	iNdEx := 0
  5444  	for iNdEx < l {
  5445  		preIndex := iNdEx
  5446  		var wire uint64
  5447  		for shift := uint(0); ; shift += 7 {
  5448  			if shift >= 64 {
  5449  				return ErrIntOverflowGenerated
  5450  			}
  5451  			if iNdEx >= l {
  5452  				return io.ErrUnexpectedEOF
  5453  			}
  5454  			b := dAtA[iNdEx]
  5455  			iNdEx++
  5456  			wire |= uint64(b&0x7F) << shift
  5457  			if b < 0x80 {
  5458  				break
  5459  			}
  5460  		}
  5461  		fieldNum := int32(wire >> 3)
  5462  		wireType := int(wire & 0x7)
  5463  		if wireType == 4 {
  5464  			return fmt.Errorf("proto: NamedClusterRoleBinding: wiretype end group for non-group")
  5465  		}
  5466  		if fieldNum <= 0 {
  5467  			return fmt.Errorf("proto: NamedClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
  5468  		}
  5469  		switch fieldNum {
  5470  		case 1:
  5471  			if wireType != 2 {
  5472  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5473  			}
  5474  			var stringLen uint64
  5475  			for shift := uint(0); ; shift += 7 {
  5476  				if shift >= 64 {
  5477  					return ErrIntOverflowGenerated
  5478  				}
  5479  				if iNdEx >= l {
  5480  					return io.ErrUnexpectedEOF
  5481  				}
  5482  				b := dAtA[iNdEx]
  5483  				iNdEx++
  5484  				stringLen |= uint64(b&0x7F) << shift
  5485  				if b < 0x80 {
  5486  					break
  5487  				}
  5488  			}
  5489  			intStringLen := int(stringLen)
  5490  			if intStringLen < 0 {
  5491  				return ErrInvalidLengthGenerated
  5492  			}
  5493  			postIndex := iNdEx + intStringLen
  5494  			if postIndex < 0 {
  5495  				return ErrInvalidLengthGenerated
  5496  			}
  5497  			if postIndex > l {
  5498  				return io.ErrUnexpectedEOF
  5499  			}
  5500  			m.Name = string(dAtA[iNdEx:postIndex])
  5501  			iNdEx = postIndex
  5502  		case 2:
  5503  			if wireType != 2 {
  5504  				return fmt.Errorf("proto: wrong wireType = %d for field RoleBinding", wireType)
  5505  			}
  5506  			var msglen int
  5507  			for shift := uint(0); ; shift += 7 {
  5508  				if shift >= 64 {
  5509  					return ErrIntOverflowGenerated
  5510  				}
  5511  				if iNdEx >= l {
  5512  					return io.ErrUnexpectedEOF
  5513  				}
  5514  				b := dAtA[iNdEx]
  5515  				iNdEx++
  5516  				msglen |= int(b&0x7F) << shift
  5517  				if b < 0x80 {
  5518  					break
  5519  				}
  5520  			}
  5521  			if msglen < 0 {
  5522  				return ErrInvalidLengthGenerated
  5523  			}
  5524  			postIndex := iNdEx + msglen
  5525  			if postIndex < 0 {
  5526  				return ErrInvalidLengthGenerated
  5527  			}
  5528  			if postIndex > l {
  5529  				return io.ErrUnexpectedEOF
  5530  			}
  5531  			if err := m.RoleBinding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5532  				return err
  5533  			}
  5534  			iNdEx = postIndex
  5535  		default:
  5536  			iNdEx = preIndex
  5537  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5538  			if err != nil {
  5539  				return err
  5540  			}
  5541  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5542  				return ErrInvalidLengthGenerated
  5543  			}
  5544  			if (iNdEx + skippy) > l {
  5545  				return io.ErrUnexpectedEOF
  5546  			}
  5547  			iNdEx += skippy
  5548  		}
  5549  	}
  5550  
  5551  	if iNdEx > l {
  5552  		return io.ErrUnexpectedEOF
  5553  	}
  5554  	return nil
  5555  }
  5556  func (m *NamedRole) Unmarshal(dAtA []byte) error {
  5557  	l := len(dAtA)
  5558  	iNdEx := 0
  5559  	for iNdEx < l {
  5560  		preIndex := iNdEx
  5561  		var wire uint64
  5562  		for shift := uint(0); ; shift += 7 {
  5563  			if shift >= 64 {
  5564  				return ErrIntOverflowGenerated
  5565  			}
  5566  			if iNdEx >= l {
  5567  				return io.ErrUnexpectedEOF
  5568  			}
  5569  			b := dAtA[iNdEx]
  5570  			iNdEx++
  5571  			wire |= uint64(b&0x7F) << shift
  5572  			if b < 0x80 {
  5573  				break
  5574  			}
  5575  		}
  5576  		fieldNum := int32(wire >> 3)
  5577  		wireType := int(wire & 0x7)
  5578  		if wireType == 4 {
  5579  			return fmt.Errorf("proto: NamedRole: wiretype end group for non-group")
  5580  		}
  5581  		if fieldNum <= 0 {
  5582  			return fmt.Errorf("proto: NamedRole: illegal tag %d (wire type %d)", fieldNum, wire)
  5583  		}
  5584  		switch fieldNum {
  5585  		case 1:
  5586  			if wireType != 2 {
  5587  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5588  			}
  5589  			var stringLen uint64
  5590  			for shift := uint(0); ; shift += 7 {
  5591  				if shift >= 64 {
  5592  					return ErrIntOverflowGenerated
  5593  				}
  5594  				if iNdEx >= l {
  5595  					return io.ErrUnexpectedEOF
  5596  				}
  5597  				b := dAtA[iNdEx]
  5598  				iNdEx++
  5599  				stringLen |= uint64(b&0x7F) << shift
  5600  				if b < 0x80 {
  5601  					break
  5602  				}
  5603  			}
  5604  			intStringLen := int(stringLen)
  5605  			if intStringLen < 0 {
  5606  				return ErrInvalidLengthGenerated
  5607  			}
  5608  			postIndex := iNdEx + intStringLen
  5609  			if postIndex < 0 {
  5610  				return ErrInvalidLengthGenerated
  5611  			}
  5612  			if postIndex > l {
  5613  				return io.ErrUnexpectedEOF
  5614  			}
  5615  			m.Name = string(dAtA[iNdEx:postIndex])
  5616  			iNdEx = postIndex
  5617  		case 2:
  5618  			if wireType != 2 {
  5619  				return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  5620  			}
  5621  			var msglen int
  5622  			for shift := uint(0); ; shift += 7 {
  5623  				if shift >= 64 {
  5624  					return ErrIntOverflowGenerated
  5625  				}
  5626  				if iNdEx >= l {
  5627  					return io.ErrUnexpectedEOF
  5628  				}
  5629  				b := dAtA[iNdEx]
  5630  				iNdEx++
  5631  				msglen |= int(b&0x7F) << shift
  5632  				if b < 0x80 {
  5633  					break
  5634  				}
  5635  			}
  5636  			if msglen < 0 {
  5637  				return ErrInvalidLengthGenerated
  5638  			}
  5639  			postIndex := iNdEx + msglen
  5640  			if postIndex < 0 {
  5641  				return ErrInvalidLengthGenerated
  5642  			}
  5643  			if postIndex > l {
  5644  				return io.ErrUnexpectedEOF
  5645  			}
  5646  			if err := m.Role.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5647  				return err
  5648  			}
  5649  			iNdEx = postIndex
  5650  		default:
  5651  			iNdEx = preIndex
  5652  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5653  			if err != nil {
  5654  				return err
  5655  			}
  5656  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5657  				return ErrInvalidLengthGenerated
  5658  			}
  5659  			if (iNdEx + skippy) > l {
  5660  				return io.ErrUnexpectedEOF
  5661  			}
  5662  			iNdEx += skippy
  5663  		}
  5664  	}
  5665  
  5666  	if iNdEx > l {
  5667  		return io.ErrUnexpectedEOF
  5668  	}
  5669  	return nil
  5670  }
  5671  func (m *NamedRoleBinding) Unmarshal(dAtA []byte) error {
  5672  	l := len(dAtA)
  5673  	iNdEx := 0
  5674  	for iNdEx < l {
  5675  		preIndex := iNdEx
  5676  		var wire uint64
  5677  		for shift := uint(0); ; shift += 7 {
  5678  			if shift >= 64 {
  5679  				return ErrIntOverflowGenerated
  5680  			}
  5681  			if iNdEx >= l {
  5682  				return io.ErrUnexpectedEOF
  5683  			}
  5684  			b := dAtA[iNdEx]
  5685  			iNdEx++
  5686  			wire |= uint64(b&0x7F) << shift
  5687  			if b < 0x80 {
  5688  				break
  5689  			}
  5690  		}
  5691  		fieldNum := int32(wire >> 3)
  5692  		wireType := int(wire & 0x7)
  5693  		if wireType == 4 {
  5694  			return fmt.Errorf("proto: NamedRoleBinding: wiretype end group for non-group")
  5695  		}
  5696  		if fieldNum <= 0 {
  5697  			return fmt.Errorf("proto: NamedRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
  5698  		}
  5699  		switch fieldNum {
  5700  		case 1:
  5701  			if wireType != 2 {
  5702  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5703  			}
  5704  			var stringLen uint64
  5705  			for shift := uint(0); ; shift += 7 {
  5706  				if shift >= 64 {
  5707  					return ErrIntOverflowGenerated
  5708  				}
  5709  				if iNdEx >= l {
  5710  					return io.ErrUnexpectedEOF
  5711  				}
  5712  				b := dAtA[iNdEx]
  5713  				iNdEx++
  5714  				stringLen |= uint64(b&0x7F) << shift
  5715  				if b < 0x80 {
  5716  					break
  5717  				}
  5718  			}
  5719  			intStringLen := int(stringLen)
  5720  			if intStringLen < 0 {
  5721  				return ErrInvalidLengthGenerated
  5722  			}
  5723  			postIndex := iNdEx + intStringLen
  5724  			if postIndex < 0 {
  5725  				return ErrInvalidLengthGenerated
  5726  			}
  5727  			if postIndex > l {
  5728  				return io.ErrUnexpectedEOF
  5729  			}
  5730  			m.Name = string(dAtA[iNdEx:postIndex])
  5731  			iNdEx = postIndex
  5732  		case 2:
  5733  			if wireType != 2 {
  5734  				return fmt.Errorf("proto: wrong wireType = %d for field RoleBinding", wireType)
  5735  			}
  5736  			var msglen int
  5737  			for shift := uint(0); ; shift += 7 {
  5738  				if shift >= 64 {
  5739  					return ErrIntOverflowGenerated
  5740  				}
  5741  				if iNdEx >= l {
  5742  					return io.ErrUnexpectedEOF
  5743  				}
  5744  				b := dAtA[iNdEx]
  5745  				iNdEx++
  5746  				msglen |= int(b&0x7F) << shift
  5747  				if b < 0x80 {
  5748  					break
  5749  				}
  5750  			}
  5751  			if msglen < 0 {
  5752  				return ErrInvalidLengthGenerated
  5753  			}
  5754  			postIndex := iNdEx + msglen
  5755  			if postIndex < 0 {
  5756  				return ErrInvalidLengthGenerated
  5757  			}
  5758  			if postIndex > l {
  5759  				return io.ErrUnexpectedEOF
  5760  			}
  5761  			if err := m.RoleBinding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5762  				return err
  5763  			}
  5764  			iNdEx = postIndex
  5765  		default:
  5766  			iNdEx = preIndex
  5767  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5768  			if err != nil {
  5769  				return err
  5770  			}
  5771  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5772  				return ErrInvalidLengthGenerated
  5773  			}
  5774  			if (iNdEx + skippy) > l {
  5775  				return io.ErrUnexpectedEOF
  5776  			}
  5777  			iNdEx += skippy
  5778  		}
  5779  	}
  5780  
  5781  	if iNdEx > l {
  5782  		return io.ErrUnexpectedEOF
  5783  	}
  5784  	return nil
  5785  }
  5786  func (m *OptionalNames) Unmarshal(dAtA []byte) error {
  5787  	l := len(dAtA)
  5788  	iNdEx := 0
  5789  	for iNdEx < l {
  5790  		preIndex := iNdEx
  5791  		var wire uint64
  5792  		for shift := uint(0); ; shift += 7 {
  5793  			if shift >= 64 {
  5794  				return ErrIntOverflowGenerated
  5795  			}
  5796  			if iNdEx >= l {
  5797  				return io.ErrUnexpectedEOF
  5798  			}
  5799  			b := dAtA[iNdEx]
  5800  			iNdEx++
  5801  			wire |= uint64(b&0x7F) << shift
  5802  			if b < 0x80 {
  5803  				break
  5804  			}
  5805  		}
  5806  		fieldNum := int32(wire >> 3)
  5807  		wireType := int(wire & 0x7)
  5808  		if wireType == 4 {
  5809  			return fmt.Errorf("proto: OptionalNames: wiretype end group for non-group")
  5810  		}
  5811  		if fieldNum <= 0 {
  5812  			return fmt.Errorf("proto: OptionalNames: illegal tag %d (wire type %d)", fieldNum, wire)
  5813  		}
  5814  		switch fieldNum {
  5815  		case 1:
  5816  			if wireType != 2 {
  5817  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  5818  			}
  5819  			var stringLen uint64
  5820  			for shift := uint(0); ; shift += 7 {
  5821  				if shift >= 64 {
  5822  					return ErrIntOverflowGenerated
  5823  				}
  5824  				if iNdEx >= l {
  5825  					return io.ErrUnexpectedEOF
  5826  				}
  5827  				b := dAtA[iNdEx]
  5828  				iNdEx++
  5829  				stringLen |= uint64(b&0x7F) << shift
  5830  				if b < 0x80 {
  5831  					break
  5832  				}
  5833  			}
  5834  			intStringLen := int(stringLen)
  5835  			if intStringLen < 0 {
  5836  				return ErrInvalidLengthGenerated
  5837  			}
  5838  			postIndex := iNdEx + intStringLen
  5839  			if postIndex < 0 {
  5840  				return ErrInvalidLengthGenerated
  5841  			}
  5842  			if postIndex > l {
  5843  				return io.ErrUnexpectedEOF
  5844  			}
  5845  			*m = append(*m, string(dAtA[iNdEx:postIndex]))
  5846  			iNdEx = postIndex
  5847  		default:
  5848  			iNdEx = preIndex
  5849  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5850  			if err != nil {
  5851  				return err
  5852  			}
  5853  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5854  				return ErrInvalidLengthGenerated
  5855  			}
  5856  			if (iNdEx + skippy) > l {
  5857  				return io.ErrUnexpectedEOF
  5858  			}
  5859  			iNdEx += skippy
  5860  		}
  5861  	}
  5862  
  5863  	if iNdEx > l {
  5864  		return io.ErrUnexpectedEOF
  5865  	}
  5866  	return nil
  5867  }
  5868  func (m *OptionalScopes) Unmarshal(dAtA []byte) error {
  5869  	l := len(dAtA)
  5870  	iNdEx := 0
  5871  	for iNdEx < l {
  5872  		preIndex := iNdEx
  5873  		var wire uint64
  5874  		for shift := uint(0); ; shift += 7 {
  5875  			if shift >= 64 {
  5876  				return ErrIntOverflowGenerated
  5877  			}
  5878  			if iNdEx >= l {
  5879  				return io.ErrUnexpectedEOF
  5880  			}
  5881  			b := dAtA[iNdEx]
  5882  			iNdEx++
  5883  			wire |= uint64(b&0x7F) << shift
  5884  			if b < 0x80 {
  5885  				break
  5886  			}
  5887  		}
  5888  		fieldNum := int32(wire >> 3)
  5889  		wireType := int(wire & 0x7)
  5890  		if wireType == 4 {
  5891  			return fmt.Errorf("proto: OptionalScopes: wiretype end group for non-group")
  5892  		}
  5893  		if fieldNum <= 0 {
  5894  			return fmt.Errorf("proto: OptionalScopes: illegal tag %d (wire type %d)", fieldNum, wire)
  5895  		}
  5896  		switch fieldNum {
  5897  		case 1:
  5898  			if wireType != 2 {
  5899  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  5900  			}
  5901  			var stringLen uint64
  5902  			for shift := uint(0); ; shift += 7 {
  5903  				if shift >= 64 {
  5904  					return ErrIntOverflowGenerated
  5905  				}
  5906  				if iNdEx >= l {
  5907  					return io.ErrUnexpectedEOF
  5908  				}
  5909  				b := dAtA[iNdEx]
  5910  				iNdEx++
  5911  				stringLen |= uint64(b&0x7F) << shift
  5912  				if b < 0x80 {
  5913  					break
  5914  				}
  5915  			}
  5916  			intStringLen := int(stringLen)
  5917  			if intStringLen < 0 {
  5918  				return ErrInvalidLengthGenerated
  5919  			}
  5920  			postIndex := iNdEx + intStringLen
  5921  			if postIndex < 0 {
  5922  				return ErrInvalidLengthGenerated
  5923  			}
  5924  			if postIndex > l {
  5925  				return io.ErrUnexpectedEOF
  5926  			}
  5927  			*m = append(*m, string(dAtA[iNdEx:postIndex]))
  5928  			iNdEx = postIndex
  5929  		default:
  5930  			iNdEx = preIndex
  5931  			skippy, err := skipGenerated(dAtA[iNdEx:])
  5932  			if err != nil {
  5933  				return err
  5934  			}
  5935  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5936  				return ErrInvalidLengthGenerated
  5937  			}
  5938  			if (iNdEx + skippy) > l {
  5939  				return io.ErrUnexpectedEOF
  5940  			}
  5941  			iNdEx += skippy
  5942  		}
  5943  	}
  5944  
  5945  	if iNdEx > l {
  5946  		return io.ErrUnexpectedEOF
  5947  	}
  5948  	return nil
  5949  }
  5950  func (m *PolicyRule) Unmarshal(dAtA []byte) error {
  5951  	l := len(dAtA)
  5952  	iNdEx := 0
  5953  	for iNdEx < l {
  5954  		preIndex := iNdEx
  5955  		var wire uint64
  5956  		for shift := uint(0); ; shift += 7 {
  5957  			if shift >= 64 {
  5958  				return ErrIntOverflowGenerated
  5959  			}
  5960  			if iNdEx >= l {
  5961  				return io.ErrUnexpectedEOF
  5962  			}
  5963  			b := dAtA[iNdEx]
  5964  			iNdEx++
  5965  			wire |= uint64(b&0x7F) << shift
  5966  			if b < 0x80 {
  5967  				break
  5968  			}
  5969  		}
  5970  		fieldNum := int32(wire >> 3)
  5971  		wireType := int(wire & 0x7)
  5972  		if wireType == 4 {
  5973  			return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group")
  5974  		}
  5975  		if fieldNum <= 0 {
  5976  			return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
  5977  		}
  5978  		switch fieldNum {
  5979  		case 1:
  5980  			if wireType != 2 {
  5981  				return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
  5982  			}
  5983  			var stringLen uint64
  5984  			for shift := uint(0); ; shift += 7 {
  5985  				if shift >= 64 {
  5986  					return ErrIntOverflowGenerated
  5987  				}
  5988  				if iNdEx >= l {
  5989  					return io.ErrUnexpectedEOF
  5990  				}
  5991  				b := dAtA[iNdEx]
  5992  				iNdEx++
  5993  				stringLen |= uint64(b&0x7F) << shift
  5994  				if b < 0x80 {
  5995  					break
  5996  				}
  5997  			}
  5998  			intStringLen := int(stringLen)
  5999  			if intStringLen < 0 {
  6000  				return ErrInvalidLengthGenerated
  6001  			}
  6002  			postIndex := iNdEx + intStringLen
  6003  			if postIndex < 0 {
  6004  				return ErrInvalidLengthGenerated
  6005  			}
  6006  			if postIndex > l {
  6007  				return io.ErrUnexpectedEOF
  6008  			}
  6009  			m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
  6010  			iNdEx = postIndex
  6011  		case 2:
  6012  			if wireType != 2 {
  6013  				return fmt.Errorf("proto: wrong wireType = %d for field AttributeRestrictions", wireType)
  6014  			}
  6015  			var msglen int
  6016  			for shift := uint(0); ; shift += 7 {
  6017  				if shift >= 64 {
  6018  					return ErrIntOverflowGenerated
  6019  				}
  6020  				if iNdEx >= l {
  6021  					return io.ErrUnexpectedEOF
  6022  				}
  6023  				b := dAtA[iNdEx]
  6024  				iNdEx++
  6025  				msglen |= int(b&0x7F) << shift
  6026  				if b < 0x80 {
  6027  					break
  6028  				}
  6029  			}
  6030  			if msglen < 0 {
  6031  				return ErrInvalidLengthGenerated
  6032  			}
  6033  			postIndex := iNdEx + msglen
  6034  			if postIndex < 0 {
  6035  				return ErrInvalidLengthGenerated
  6036  			}
  6037  			if postIndex > l {
  6038  				return io.ErrUnexpectedEOF
  6039  			}
  6040  			if err := m.AttributeRestrictions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6041  				return err
  6042  			}
  6043  			iNdEx = postIndex
  6044  		case 3:
  6045  			if wireType != 2 {
  6046  				return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
  6047  			}
  6048  			var stringLen uint64
  6049  			for shift := uint(0); ; shift += 7 {
  6050  				if shift >= 64 {
  6051  					return ErrIntOverflowGenerated
  6052  				}
  6053  				if iNdEx >= l {
  6054  					return io.ErrUnexpectedEOF
  6055  				}
  6056  				b := dAtA[iNdEx]
  6057  				iNdEx++
  6058  				stringLen |= uint64(b&0x7F) << shift
  6059  				if b < 0x80 {
  6060  					break
  6061  				}
  6062  			}
  6063  			intStringLen := int(stringLen)
  6064  			if intStringLen < 0 {
  6065  				return ErrInvalidLengthGenerated
  6066  			}
  6067  			postIndex := iNdEx + intStringLen
  6068  			if postIndex < 0 {
  6069  				return ErrInvalidLengthGenerated
  6070  			}
  6071  			if postIndex > l {
  6072  				return io.ErrUnexpectedEOF
  6073  			}
  6074  			m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
  6075  			iNdEx = postIndex
  6076  		case 4:
  6077  			if wireType != 2 {
  6078  				return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  6079  			}
  6080  			var stringLen uint64
  6081  			for shift := uint(0); ; shift += 7 {
  6082  				if shift >= 64 {
  6083  					return ErrIntOverflowGenerated
  6084  				}
  6085  				if iNdEx >= l {
  6086  					return io.ErrUnexpectedEOF
  6087  				}
  6088  				b := dAtA[iNdEx]
  6089  				iNdEx++
  6090  				stringLen |= uint64(b&0x7F) << shift
  6091  				if b < 0x80 {
  6092  					break
  6093  				}
  6094  			}
  6095  			intStringLen := int(stringLen)
  6096  			if intStringLen < 0 {
  6097  				return ErrInvalidLengthGenerated
  6098  			}
  6099  			postIndex := iNdEx + intStringLen
  6100  			if postIndex < 0 {
  6101  				return ErrInvalidLengthGenerated
  6102  			}
  6103  			if postIndex > l {
  6104  				return io.ErrUnexpectedEOF
  6105  			}
  6106  			m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
  6107  			iNdEx = postIndex
  6108  		case 5:
  6109  			if wireType != 2 {
  6110  				return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType)
  6111  			}
  6112  			var stringLen uint64
  6113  			for shift := uint(0); ; shift += 7 {
  6114  				if shift >= 64 {
  6115  					return ErrIntOverflowGenerated
  6116  				}
  6117  				if iNdEx >= l {
  6118  					return io.ErrUnexpectedEOF
  6119  				}
  6120  				b := dAtA[iNdEx]
  6121  				iNdEx++
  6122  				stringLen |= uint64(b&0x7F) << shift
  6123  				if b < 0x80 {
  6124  					break
  6125  				}
  6126  			}
  6127  			intStringLen := int(stringLen)
  6128  			if intStringLen < 0 {
  6129  				return ErrInvalidLengthGenerated
  6130  			}
  6131  			postIndex := iNdEx + intStringLen
  6132  			if postIndex < 0 {
  6133  				return ErrInvalidLengthGenerated
  6134  			}
  6135  			if postIndex > l {
  6136  				return io.ErrUnexpectedEOF
  6137  			}
  6138  			m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex]))
  6139  			iNdEx = postIndex
  6140  		case 6:
  6141  			if wireType != 2 {
  6142  				return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLsSlice", wireType)
  6143  			}
  6144  			var stringLen uint64
  6145  			for shift := uint(0); ; shift += 7 {
  6146  				if shift >= 64 {
  6147  					return ErrIntOverflowGenerated
  6148  				}
  6149  				if iNdEx >= l {
  6150  					return io.ErrUnexpectedEOF
  6151  				}
  6152  				b := dAtA[iNdEx]
  6153  				iNdEx++
  6154  				stringLen |= uint64(b&0x7F) << shift
  6155  				if b < 0x80 {
  6156  					break
  6157  				}
  6158  			}
  6159  			intStringLen := int(stringLen)
  6160  			if intStringLen < 0 {
  6161  				return ErrInvalidLengthGenerated
  6162  			}
  6163  			postIndex := iNdEx + intStringLen
  6164  			if postIndex < 0 {
  6165  				return ErrInvalidLengthGenerated
  6166  			}
  6167  			if postIndex > l {
  6168  				return io.ErrUnexpectedEOF
  6169  			}
  6170  			m.NonResourceURLsSlice = append(m.NonResourceURLsSlice, string(dAtA[iNdEx:postIndex]))
  6171  			iNdEx = postIndex
  6172  		default:
  6173  			iNdEx = preIndex
  6174  			skippy, err := skipGenerated(dAtA[iNdEx:])
  6175  			if err != nil {
  6176  				return err
  6177  			}
  6178  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6179  				return ErrInvalidLengthGenerated
  6180  			}
  6181  			if (iNdEx + skippy) > l {
  6182  				return io.ErrUnexpectedEOF
  6183  			}
  6184  			iNdEx += skippy
  6185  		}
  6186  	}
  6187  
  6188  	if iNdEx > l {
  6189  		return io.ErrUnexpectedEOF
  6190  	}
  6191  	return nil
  6192  }
  6193  func (m *ResourceAccessReview) Unmarshal(dAtA []byte) error {
  6194  	l := len(dAtA)
  6195  	iNdEx := 0
  6196  	for iNdEx < l {
  6197  		preIndex := iNdEx
  6198  		var wire uint64
  6199  		for shift := uint(0); ; shift += 7 {
  6200  			if shift >= 64 {
  6201  				return ErrIntOverflowGenerated
  6202  			}
  6203  			if iNdEx >= l {
  6204  				return io.ErrUnexpectedEOF
  6205  			}
  6206  			b := dAtA[iNdEx]
  6207  			iNdEx++
  6208  			wire |= uint64(b&0x7F) << shift
  6209  			if b < 0x80 {
  6210  				break
  6211  			}
  6212  		}
  6213  		fieldNum := int32(wire >> 3)
  6214  		wireType := int(wire & 0x7)
  6215  		if wireType == 4 {
  6216  			return fmt.Errorf("proto: ResourceAccessReview: wiretype end group for non-group")
  6217  		}
  6218  		if fieldNum <= 0 {
  6219  			return fmt.Errorf("proto: ResourceAccessReview: illegal tag %d (wire type %d)", fieldNum, wire)
  6220  		}
  6221  		switch fieldNum {
  6222  		case 1:
  6223  			if wireType != 2 {
  6224  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  6225  			}
  6226  			var msglen int
  6227  			for shift := uint(0); ; shift += 7 {
  6228  				if shift >= 64 {
  6229  					return ErrIntOverflowGenerated
  6230  				}
  6231  				if iNdEx >= l {
  6232  					return io.ErrUnexpectedEOF
  6233  				}
  6234  				b := dAtA[iNdEx]
  6235  				iNdEx++
  6236  				msglen |= int(b&0x7F) << shift
  6237  				if b < 0x80 {
  6238  					break
  6239  				}
  6240  			}
  6241  			if msglen < 0 {
  6242  				return ErrInvalidLengthGenerated
  6243  			}
  6244  			postIndex := iNdEx + msglen
  6245  			if postIndex < 0 {
  6246  				return ErrInvalidLengthGenerated
  6247  			}
  6248  			if postIndex > l {
  6249  				return io.ErrUnexpectedEOF
  6250  			}
  6251  			if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6252  				return err
  6253  			}
  6254  			iNdEx = postIndex
  6255  		default:
  6256  			iNdEx = preIndex
  6257  			skippy, err := skipGenerated(dAtA[iNdEx:])
  6258  			if err != nil {
  6259  				return err
  6260  			}
  6261  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6262  				return ErrInvalidLengthGenerated
  6263  			}
  6264  			if (iNdEx + skippy) > l {
  6265  				return io.ErrUnexpectedEOF
  6266  			}
  6267  			iNdEx += skippy
  6268  		}
  6269  	}
  6270  
  6271  	if iNdEx > l {
  6272  		return io.ErrUnexpectedEOF
  6273  	}
  6274  	return nil
  6275  }
  6276  func (m *ResourceAccessReviewResponse) Unmarshal(dAtA []byte) error {
  6277  	l := len(dAtA)
  6278  	iNdEx := 0
  6279  	for iNdEx < l {
  6280  		preIndex := iNdEx
  6281  		var wire uint64
  6282  		for shift := uint(0); ; shift += 7 {
  6283  			if shift >= 64 {
  6284  				return ErrIntOverflowGenerated
  6285  			}
  6286  			if iNdEx >= l {
  6287  				return io.ErrUnexpectedEOF
  6288  			}
  6289  			b := dAtA[iNdEx]
  6290  			iNdEx++
  6291  			wire |= uint64(b&0x7F) << shift
  6292  			if b < 0x80 {
  6293  				break
  6294  			}
  6295  		}
  6296  		fieldNum := int32(wire >> 3)
  6297  		wireType := int(wire & 0x7)
  6298  		if wireType == 4 {
  6299  			return fmt.Errorf("proto: ResourceAccessReviewResponse: wiretype end group for non-group")
  6300  		}
  6301  		if fieldNum <= 0 {
  6302  			return fmt.Errorf("proto: ResourceAccessReviewResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6303  		}
  6304  		switch fieldNum {
  6305  		case 1:
  6306  			if wireType != 2 {
  6307  				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  6308  			}
  6309  			var stringLen uint64
  6310  			for shift := uint(0); ; shift += 7 {
  6311  				if shift >= 64 {
  6312  					return ErrIntOverflowGenerated
  6313  				}
  6314  				if iNdEx >= l {
  6315  					return io.ErrUnexpectedEOF
  6316  				}
  6317  				b := dAtA[iNdEx]
  6318  				iNdEx++
  6319  				stringLen |= uint64(b&0x7F) << shift
  6320  				if b < 0x80 {
  6321  					break
  6322  				}
  6323  			}
  6324  			intStringLen := int(stringLen)
  6325  			if intStringLen < 0 {
  6326  				return ErrInvalidLengthGenerated
  6327  			}
  6328  			postIndex := iNdEx + intStringLen
  6329  			if postIndex < 0 {
  6330  				return ErrInvalidLengthGenerated
  6331  			}
  6332  			if postIndex > l {
  6333  				return io.ErrUnexpectedEOF
  6334  			}
  6335  			m.Namespace = string(dAtA[iNdEx:postIndex])
  6336  			iNdEx = postIndex
  6337  		case 2:
  6338  			if wireType != 2 {
  6339  				return fmt.Errorf("proto: wrong wireType = %d for field UsersSlice", wireType)
  6340  			}
  6341  			var stringLen uint64
  6342  			for shift := uint(0); ; shift += 7 {
  6343  				if shift >= 64 {
  6344  					return ErrIntOverflowGenerated
  6345  				}
  6346  				if iNdEx >= l {
  6347  					return io.ErrUnexpectedEOF
  6348  				}
  6349  				b := dAtA[iNdEx]
  6350  				iNdEx++
  6351  				stringLen |= uint64(b&0x7F) << shift
  6352  				if b < 0x80 {
  6353  					break
  6354  				}
  6355  			}
  6356  			intStringLen := int(stringLen)
  6357  			if intStringLen < 0 {
  6358  				return ErrInvalidLengthGenerated
  6359  			}
  6360  			postIndex := iNdEx + intStringLen
  6361  			if postIndex < 0 {
  6362  				return ErrInvalidLengthGenerated
  6363  			}
  6364  			if postIndex > l {
  6365  				return io.ErrUnexpectedEOF
  6366  			}
  6367  			m.UsersSlice = append(m.UsersSlice, string(dAtA[iNdEx:postIndex]))
  6368  			iNdEx = postIndex
  6369  		case 3:
  6370  			if wireType != 2 {
  6371  				return fmt.Errorf("proto: wrong wireType = %d for field GroupsSlice", wireType)
  6372  			}
  6373  			var stringLen uint64
  6374  			for shift := uint(0); ; shift += 7 {
  6375  				if shift >= 64 {
  6376  					return ErrIntOverflowGenerated
  6377  				}
  6378  				if iNdEx >= l {
  6379  					return io.ErrUnexpectedEOF
  6380  				}
  6381  				b := dAtA[iNdEx]
  6382  				iNdEx++
  6383  				stringLen |= uint64(b&0x7F) << shift
  6384  				if b < 0x80 {
  6385  					break
  6386  				}
  6387  			}
  6388  			intStringLen := int(stringLen)
  6389  			if intStringLen < 0 {
  6390  				return ErrInvalidLengthGenerated
  6391  			}
  6392  			postIndex := iNdEx + intStringLen
  6393  			if postIndex < 0 {
  6394  				return ErrInvalidLengthGenerated
  6395  			}
  6396  			if postIndex > l {
  6397  				return io.ErrUnexpectedEOF
  6398  			}
  6399  			m.GroupsSlice = append(m.GroupsSlice, string(dAtA[iNdEx:postIndex]))
  6400  			iNdEx = postIndex
  6401  		case 4:
  6402  			if wireType != 2 {
  6403  				return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType)
  6404  			}
  6405  			var stringLen uint64
  6406  			for shift := uint(0); ; shift += 7 {
  6407  				if shift >= 64 {
  6408  					return ErrIntOverflowGenerated
  6409  				}
  6410  				if iNdEx >= l {
  6411  					return io.ErrUnexpectedEOF
  6412  				}
  6413  				b := dAtA[iNdEx]
  6414  				iNdEx++
  6415  				stringLen |= uint64(b&0x7F) << shift
  6416  				if b < 0x80 {
  6417  					break
  6418  				}
  6419  			}
  6420  			intStringLen := int(stringLen)
  6421  			if intStringLen < 0 {
  6422  				return ErrInvalidLengthGenerated
  6423  			}
  6424  			postIndex := iNdEx + intStringLen
  6425  			if postIndex < 0 {
  6426  				return ErrInvalidLengthGenerated
  6427  			}
  6428  			if postIndex > l {
  6429  				return io.ErrUnexpectedEOF
  6430  			}
  6431  			m.EvaluationError = string(dAtA[iNdEx:postIndex])
  6432  			iNdEx = postIndex
  6433  		default:
  6434  			iNdEx = preIndex
  6435  			skippy, err := skipGenerated(dAtA[iNdEx:])
  6436  			if err != nil {
  6437  				return err
  6438  			}
  6439  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6440  				return ErrInvalidLengthGenerated
  6441  			}
  6442  			if (iNdEx + skippy) > l {
  6443  				return io.ErrUnexpectedEOF
  6444  			}
  6445  			iNdEx += skippy
  6446  		}
  6447  	}
  6448  
  6449  	if iNdEx > l {
  6450  		return io.ErrUnexpectedEOF
  6451  	}
  6452  	return nil
  6453  }
  6454  func (m *Role) Unmarshal(dAtA []byte) error {
  6455  	l := len(dAtA)
  6456  	iNdEx := 0
  6457  	for iNdEx < l {
  6458  		preIndex := iNdEx
  6459  		var wire uint64
  6460  		for shift := uint(0); ; shift += 7 {
  6461  			if shift >= 64 {
  6462  				return ErrIntOverflowGenerated
  6463  			}
  6464  			if iNdEx >= l {
  6465  				return io.ErrUnexpectedEOF
  6466  			}
  6467  			b := dAtA[iNdEx]
  6468  			iNdEx++
  6469  			wire |= uint64(b&0x7F) << shift
  6470  			if b < 0x80 {
  6471  				break
  6472  			}
  6473  		}
  6474  		fieldNum := int32(wire >> 3)
  6475  		wireType := int(wire & 0x7)
  6476  		if wireType == 4 {
  6477  			return fmt.Errorf("proto: Role: wiretype end group for non-group")
  6478  		}
  6479  		if fieldNum <= 0 {
  6480  			return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire)
  6481  		}
  6482  		switch fieldNum {
  6483  		case 1:
  6484  			if wireType != 2 {
  6485  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  6486  			}
  6487  			var msglen int
  6488  			for shift := uint(0); ; shift += 7 {
  6489  				if shift >= 64 {
  6490  					return ErrIntOverflowGenerated
  6491  				}
  6492  				if iNdEx >= l {
  6493  					return io.ErrUnexpectedEOF
  6494  				}
  6495  				b := dAtA[iNdEx]
  6496  				iNdEx++
  6497  				msglen |= int(b&0x7F) << shift
  6498  				if b < 0x80 {
  6499  					break
  6500  				}
  6501  			}
  6502  			if msglen < 0 {
  6503  				return ErrInvalidLengthGenerated
  6504  			}
  6505  			postIndex := iNdEx + msglen
  6506  			if postIndex < 0 {
  6507  				return ErrInvalidLengthGenerated
  6508  			}
  6509  			if postIndex > l {
  6510  				return io.ErrUnexpectedEOF
  6511  			}
  6512  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6513  				return err
  6514  			}
  6515  			iNdEx = postIndex
  6516  		case 2:
  6517  			if wireType != 2 {
  6518  				return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  6519  			}
  6520  			var msglen int
  6521  			for shift := uint(0); ; shift += 7 {
  6522  				if shift >= 64 {
  6523  					return ErrIntOverflowGenerated
  6524  				}
  6525  				if iNdEx >= l {
  6526  					return io.ErrUnexpectedEOF
  6527  				}
  6528  				b := dAtA[iNdEx]
  6529  				iNdEx++
  6530  				msglen |= int(b&0x7F) << shift
  6531  				if b < 0x80 {
  6532  					break
  6533  				}
  6534  			}
  6535  			if msglen < 0 {
  6536  				return ErrInvalidLengthGenerated
  6537  			}
  6538  			postIndex := iNdEx + msglen
  6539  			if postIndex < 0 {
  6540  				return ErrInvalidLengthGenerated
  6541  			}
  6542  			if postIndex > l {
  6543  				return io.ErrUnexpectedEOF
  6544  			}
  6545  			m.Rules = append(m.Rules, PolicyRule{})
  6546  			if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6547  				return err
  6548  			}
  6549  			iNdEx = postIndex
  6550  		default:
  6551  			iNdEx = preIndex
  6552  			skippy, err := skipGenerated(dAtA[iNdEx:])
  6553  			if err != nil {
  6554  				return err
  6555  			}
  6556  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6557  				return ErrInvalidLengthGenerated
  6558  			}
  6559  			if (iNdEx + skippy) > l {
  6560  				return io.ErrUnexpectedEOF
  6561  			}
  6562  			iNdEx += skippy
  6563  		}
  6564  	}
  6565  
  6566  	if iNdEx > l {
  6567  		return io.ErrUnexpectedEOF
  6568  	}
  6569  	return nil
  6570  }
  6571  func (m *RoleBinding) Unmarshal(dAtA []byte) error {
  6572  	l := len(dAtA)
  6573  	iNdEx := 0
  6574  	for iNdEx < l {
  6575  		preIndex := iNdEx
  6576  		var wire uint64
  6577  		for shift := uint(0); ; shift += 7 {
  6578  			if shift >= 64 {
  6579  				return ErrIntOverflowGenerated
  6580  			}
  6581  			if iNdEx >= l {
  6582  				return io.ErrUnexpectedEOF
  6583  			}
  6584  			b := dAtA[iNdEx]
  6585  			iNdEx++
  6586  			wire |= uint64(b&0x7F) << shift
  6587  			if b < 0x80 {
  6588  				break
  6589  			}
  6590  		}
  6591  		fieldNum := int32(wire >> 3)
  6592  		wireType := int(wire & 0x7)
  6593  		if wireType == 4 {
  6594  			return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group")
  6595  		}
  6596  		if fieldNum <= 0 {
  6597  			return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
  6598  		}
  6599  		switch fieldNum {
  6600  		case 1:
  6601  			if wireType != 2 {
  6602  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  6603  			}
  6604  			var msglen int
  6605  			for shift := uint(0); ; shift += 7 {
  6606  				if shift >= 64 {
  6607  					return ErrIntOverflowGenerated
  6608  				}
  6609  				if iNdEx >= l {
  6610  					return io.ErrUnexpectedEOF
  6611  				}
  6612  				b := dAtA[iNdEx]
  6613  				iNdEx++
  6614  				msglen |= int(b&0x7F) << shift
  6615  				if b < 0x80 {
  6616  					break
  6617  				}
  6618  			}
  6619  			if msglen < 0 {
  6620  				return ErrInvalidLengthGenerated
  6621  			}
  6622  			postIndex := iNdEx + msglen
  6623  			if postIndex < 0 {
  6624  				return ErrInvalidLengthGenerated
  6625  			}
  6626  			if postIndex > l {
  6627  				return io.ErrUnexpectedEOF
  6628  			}
  6629  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6630  				return err
  6631  			}
  6632  			iNdEx = postIndex
  6633  		case 2:
  6634  			if wireType != 2 {
  6635  				return fmt.Errorf("proto: wrong wireType = %d for field UserNames", wireType)
  6636  			}
  6637  			var msglen int
  6638  			for shift := uint(0); ; shift += 7 {
  6639  				if shift >= 64 {
  6640  					return ErrIntOverflowGenerated
  6641  				}
  6642  				if iNdEx >= l {
  6643  					return io.ErrUnexpectedEOF
  6644  				}
  6645  				b := dAtA[iNdEx]
  6646  				iNdEx++
  6647  				msglen |= int(b&0x7F) << shift
  6648  				if b < 0x80 {
  6649  					break
  6650  				}
  6651  			}
  6652  			if msglen < 0 {
  6653  				return ErrInvalidLengthGenerated
  6654  			}
  6655  			postIndex := iNdEx + msglen
  6656  			if postIndex < 0 {
  6657  				return ErrInvalidLengthGenerated
  6658  			}
  6659  			if postIndex > l {
  6660  				return io.ErrUnexpectedEOF
  6661  			}
  6662  			if m.UserNames == nil {
  6663  				m.UserNames = OptionalNames{}
  6664  			}
  6665  			if err := m.UserNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6666  				return err
  6667  			}
  6668  			iNdEx = postIndex
  6669  		case 3:
  6670  			if wireType != 2 {
  6671  				return fmt.Errorf("proto: wrong wireType = %d for field GroupNames", wireType)
  6672  			}
  6673  			var msglen int
  6674  			for shift := uint(0); ; shift += 7 {
  6675  				if shift >= 64 {
  6676  					return ErrIntOverflowGenerated
  6677  				}
  6678  				if iNdEx >= l {
  6679  					return io.ErrUnexpectedEOF
  6680  				}
  6681  				b := dAtA[iNdEx]
  6682  				iNdEx++
  6683  				msglen |= int(b&0x7F) << shift
  6684  				if b < 0x80 {
  6685  					break
  6686  				}
  6687  			}
  6688  			if msglen < 0 {
  6689  				return ErrInvalidLengthGenerated
  6690  			}
  6691  			postIndex := iNdEx + msglen
  6692  			if postIndex < 0 {
  6693  				return ErrInvalidLengthGenerated
  6694  			}
  6695  			if postIndex > l {
  6696  				return io.ErrUnexpectedEOF
  6697  			}
  6698  			if m.GroupNames == nil {
  6699  				m.GroupNames = OptionalNames{}
  6700  			}
  6701  			if err := m.GroupNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6702  				return err
  6703  			}
  6704  			iNdEx = postIndex
  6705  		case 4:
  6706  			if wireType != 2 {
  6707  				return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
  6708  			}
  6709  			var msglen int
  6710  			for shift := uint(0); ; shift += 7 {
  6711  				if shift >= 64 {
  6712  					return ErrIntOverflowGenerated
  6713  				}
  6714  				if iNdEx >= l {
  6715  					return io.ErrUnexpectedEOF
  6716  				}
  6717  				b := dAtA[iNdEx]
  6718  				iNdEx++
  6719  				msglen |= int(b&0x7F) << shift
  6720  				if b < 0x80 {
  6721  					break
  6722  				}
  6723  			}
  6724  			if msglen < 0 {
  6725  				return ErrInvalidLengthGenerated
  6726  			}
  6727  			postIndex := iNdEx + msglen
  6728  			if postIndex < 0 {
  6729  				return ErrInvalidLengthGenerated
  6730  			}
  6731  			if postIndex > l {
  6732  				return io.ErrUnexpectedEOF
  6733  			}
  6734  			m.Subjects = append(m.Subjects, v12.ObjectReference{})
  6735  			if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6736  				return err
  6737  			}
  6738  			iNdEx = postIndex
  6739  		case 5:
  6740  			if wireType != 2 {
  6741  				return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType)
  6742  			}
  6743  			var msglen int
  6744  			for shift := uint(0); ; shift += 7 {
  6745  				if shift >= 64 {
  6746  					return ErrIntOverflowGenerated
  6747  				}
  6748  				if iNdEx >= l {
  6749  					return io.ErrUnexpectedEOF
  6750  				}
  6751  				b := dAtA[iNdEx]
  6752  				iNdEx++
  6753  				msglen |= int(b&0x7F) << shift
  6754  				if b < 0x80 {
  6755  					break
  6756  				}
  6757  			}
  6758  			if msglen < 0 {
  6759  				return ErrInvalidLengthGenerated
  6760  			}
  6761  			postIndex := iNdEx + msglen
  6762  			if postIndex < 0 {
  6763  				return ErrInvalidLengthGenerated
  6764  			}
  6765  			if postIndex > l {
  6766  				return io.ErrUnexpectedEOF
  6767  			}
  6768  			if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6769  				return err
  6770  			}
  6771  			iNdEx = postIndex
  6772  		default:
  6773  			iNdEx = preIndex
  6774  			skippy, err := skipGenerated(dAtA[iNdEx:])
  6775  			if err != nil {
  6776  				return err
  6777  			}
  6778  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6779  				return ErrInvalidLengthGenerated
  6780  			}
  6781  			if (iNdEx + skippy) > l {
  6782  				return io.ErrUnexpectedEOF
  6783  			}
  6784  			iNdEx += skippy
  6785  		}
  6786  	}
  6787  
  6788  	if iNdEx > l {
  6789  		return io.ErrUnexpectedEOF
  6790  	}
  6791  	return nil
  6792  }
  6793  func (m *RoleBindingList) Unmarshal(dAtA []byte) error {
  6794  	l := len(dAtA)
  6795  	iNdEx := 0
  6796  	for iNdEx < l {
  6797  		preIndex := iNdEx
  6798  		var wire uint64
  6799  		for shift := uint(0); ; shift += 7 {
  6800  			if shift >= 64 {
  6801  				return ErrIntOverflowGenerated
  6802  			}
  6803  			if iNdEx >= l {
  6804  				return io.ErrUnexpectedEOF
  6805  			}
  6806  			b := dAtA[iNdEx]
  6807  			iNdEx++
  6808  			wire |= uint64(b&0x7F) << shift
  6809  			if b < 0x80 {
  6810  				break
  6811  			}
  6812  		}
  6813  		fieldNum := int32(wire >> 3)
  6814  		wireType := int(wire & 0x7)
  6815  		if wireType == 4 {
  6816  			return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group")
  6817  		}
  6818  		if fieldNum <= 0 {
  6819  			return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire)
  6820  		}
  6821  		switch fieldNum {
  6822  		case 1:
  6823  			if wireType != 2 {
  6824  				return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  6825  			}
  6826  			var msglen int
  6827  			for shift := uint(0); ; shift += 7 {
  6828  				if shift >= 64 {
  6829  					return ErrIntOverflowGenerated
  6830  				}
  6831  				if iNdEx >= l {
  6832  					return io.ErrUnexpectedEOF
  6833  				}
  6834  				b := dAtA[iNdEx]
  6835  				iNdEx++
  6836  				msglen |= int(b&0x7F) << shift
  6837  				if b < 0x80 {
  6838  					break
  6839  				}
  6840  			}
  6841  			if msglen < 0 {
  6842  				return ErrInvalidLengthGenerated
  6843  			}
  6844  			postIndex := iNdEx + msglen
  6845  			if postIndex < 0 {
  6846  				return ErrInvalidLengthGenerated
  6847  			}
  6848  			if postIndex > l {
  6849  				return io.ErrUnexpectedEOF
  6850  			}
  6851  			if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6852  				return err
  6853  			}
  6854  			iNdEx = postIndex
  6855  		case 2:
  6856  			if wireType != 2 {
  6857  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  6858  			}
  6859  			var msglen int
  6860  			for shift := uint(0); ; shift += 7 {
  6861  				if shift >= 64 {
  6862  					return ErrIntOverflowGenerated
  6863  				}
  6864  				if iNdEx >= l {
  6865  					return io.ErrUnexpectedEOF
  6866  				}
  6867  				b := dAtA[iNdEx]
  6868  				iNdEx++
  6869  				msglen |= int(b&0x7F) << shift
  6870  				if b < 0x80 {
  6871  					break
  6872  				}
  6873  			}
  6874  			if msglen < 0 {
  6875  				return ErrInvalidLengthGenerated
  6876  			}
  6877  			postIndex := iNdEx + msglen
  6878  			if postIndex < 0 {
  6879  				return ErrInvalidLengthGenerated
  6880  			}
  6881  			if postIndex > l {
  6882  				return io.ErrUnexpectedEOF
  6883  			}
  6884  			m.Items = append(m.Items, RoleBinding{})
  6885  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6886  				return err
  6887  			}
  6888  			iNdEx = postIndex
  6889  		default:
  6890  			iNdEx = preIndex
  6891  			skippy, err := skipGenerated(dAtA[iNdEx:])
  6892  			if err != nil {
  6893  				return err
  6894  			}
  6895  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6896  				return ErrInvalidLengthGenerated
  6897  			}
  6898  			if (iNdEx + skippy) > l {
  6899  				return io.ErrUnexpectedEOF
  6900  			}
  6901  			iNdEx += skippy
  6902  		}
  6903  	}
  6904  
  6905  	if iNdEx > l {
  6906  		return io.ErrUnexpectedEOF
  6907  	}
  6908  	return nil
  6909  }
  6910  func (m *RoleBindingRestriction) Unmarshal(dAtA []byte) error {
  6911  	l := len(dAtA)
  6912  	iNdEx := 0
  6913  	for iNdEx < l {
  6914  		preIndex := iNdEx
  6915  		var wire uint64
  6916  		for shift := uint(0); ; shift += 7 {
  6917  			if shift >= 64 {
  6918  				return ErrIntOverflowGenerated
  6919  			}
  6920  			if iNdEx >= l {
  6921  				return io.ErrUnexpectedEOF
  6922  			}
  6923  			b := dAtA[iNdEx]
  6924  			iNdEx++
  6925  			wire |= uint64(b&0x7F) << shift
  6926  			if b < 0x80 {
  6927  				break
  6928  			}
  6929  		}
  6930  		fieldNum := int32(wire >> 3)
  6931  		wireType := int(wire & 0x7)
  6932  		if wireType == 4 {
  6933  			return fmt.Errorf("proto: RoleBindingRestriction: wiretype end group for non-group")
  6934  		}
  6935  		if fieldNum <= 0 {
  6936  			return fmt.Errorf("proto: RoleBindingRestriction: illegal tag %d (wire type %d)", fieldNum, wire)
  6937  		}
  6938  		switch fieldNum {
  6939  		case 1:
  6940  			if wireType != 2 {
  6941  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  6942  			}
  6943  			var msglen int
  6944  			for shift := uint(0); ; shift += 7 {
  6945  				if shift >= 64 {
  6946  					return ErrIntOverflowGenerated
  6947  				}
  6948  				if iNdEx >= l {
  6949  					return io.ErrUnexpectedEOF
  6950  				}
  6951  				b := dAtA[iNdEx]
  6952  				iNdEx++
  6953  				msglen |= int(b&0x7F) << shift
  6954  				if b < 0x80 {
  6955  					break
  6956  				}
  6957  			}
  6958  			if msglen < 0 {
  6959  				return ErrInvalidLengthGenerated
  6960  			}
  6961  			postIndex := iNdEx + msglen
  6962  			if postIndex < 0 {
  6963  				return ErrInvalidLengthGenerated
  6964  			}
  6965  			if postIndex > l {
  6966  				return io.ErrUnexpectedEOF
  6967  			}
  6968  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6969  				return err
  6970  			}
  6971  			iNdEx = postIndex
  6972  		case 2:
  6973  			if wireType != 2 {
  6974  				return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  6975  			}
  6976  			var msglen int
  6977  			for shift := uint(0); ; shift += 7 {
  6978  				if shift >= 64 {
  6979  					return ErrIntOverflowGenerated
  6980  				}
  6981  				if iNdEx >= l {
  6982  					return io.ErrUnexpectedEOF
  6983  				}
  6984  				b := dAtA[iNdEx]
  6985  				iNdEx++
  6986  				msglen |= int(b&0x7F) << shift
  6987  				if b < 0x80 {
  6988  					break
  6989  				}
  6990  			}
  6991  			if msglen < 0 {
  6992  				return ErrInvalidLengthGenerated
  6993  			}
  6994  			postIndex := iNdEx + msglen
  6995  			if postIndex < 0 {
  6996  				return ErrInvalidLengthGenerated
  6997  			}
  6998  			if postIndex > l {
  6999  				return io.ErrUnexpectedEOF
  7000  			}
  7001  			if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7002  				return err
  7003  			}
  7004  			iNdEx = postIndex
  7005  		default:
  7006  			iNdEx = preIndex
  7007  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7008  			if err != nil {
  7009  				return err
  7010  			}
  7011  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7012  				return ErrInvalidLengthGenerated
  7013  			}
  7014  			if (iNdEx + skippy) > l {
  7015  				return io.ErrUnexpectedEOF
  7016  			}
  7017  			iNdEx += skippy
  7018  		}
  7019  	}
  7020  
  7021  	if iNdEx > l {
  7022  		return io.ErrUnexpectedEOF
  7023  	}
  7024  	return nil
  7025  }
  7026  func (m *RoleBindingRestrictionList) Unmarshal(dAtA []byte) error {
  7027  	l := len(dAtA)
  7028  	iNdEx := 0
  7029  	for iNdEx < l {
  7030  		preIndex := iNdEx
  7031  		var wire uint64
  7032  		for shift := uint(0); ; shift += 7 {
  7033  			if shift >= 64 {
  7034  				return ErrIntOverflowGenerated
  7035  			}
  7036  			if iNdEx >= l {
  7037  				return io.ErrUnexpectedEOF
  7038  			}
  7039  			b := dAtA[iNdEx]
  7040  			iNdEx++
  7041  			wire |= uint64(b&0x7F) << shift
  7042  			if b < 0x80 {
  7043  				break
  7044  			}
  7045  		}
  7046  		fieldNum := int32(wire >> 3)
  7047  		wireType := int(wire & 0x7)
  7048  		if wireType == 4 {
  7049  			return fmt.Errorf("proto: RoleBindingRestrictionList: wiretype end group for non-group")
  7050  		}
  7051  		if fieldNum <= 0 {
  7052  			return fmt.Errorf("proto: RoleBindingRestrictionList: illegal tag %d (wire type %d)", fieldNum, wire)
  7053  		}
  7054  		switch fieldNum {
  7055  		case 1:
  7056  			if wireType != 2 {
  7057  				return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  7058  			}
  7059  			var msglen int
  7060  			for shift := uint(0); ; shift += 7 {
  7061  				if shift >= 64 {
  7062  					return ErrIntOverflowGenerated
  7063  				}
  7064  				if iNdEx >= l {
  7065  					return io.ErrUnexpectedEOF
  7066  				}
  7067  				b := dAtA[iNdEx]
  7068  				iNdEx++
  7069  				msglen |= int(b&0x7F) << shift
  7070  				if b < 0x80 {
  7071  					break
  7072  				}
  7073  			}
  7074  			if msglen < 0 {
  7075  				return ErrInvalidLengthGenerated
  7076  			}
  7077  			postIndex := iNdEx + msglen
  7078  			if postIndex < 0 {
  7079  				return ErrInvalidLengthGenerated
  7080  			}
  7081  			if postIndex > l {
  7082  				return io.ErrUnexpectedEOF
  7083  			}
  7084  			if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7085  				return err
  7086  			}
  7087  			iNdEx = postIndex
  7088  		case 2:
  7089  			if wireType != 2 {
  7090  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  7091  			}
  7092  			var msglen int
  7093  			for shift := uint(0); ; shift += 7 {
  7094  				if shift >= 64 {
  7095  					return ErrIntOverflowGenerated
  7096  				}
  7097  				if iNdEx >= l {
  7098  					return io.ErrUnexpectedEOF
  7099  				}
  7100  				b := dAtA[iNdEx]
  7101  				iNdEx++
  7102  				msglen |= int(b&0x7F) << shift
  7103  				if b < 0x80 {
  7104  					break
  7105  				}
  7106  			}
  7107  			if msglen < 0 {
  7108  				return ErrInvalidLengthGenerated
  7109  			}
  7110  			postIndex := iNdEx + msglen
  7111  			if postIndex < 0 {
  7112  				return ErrInvalidLengthGenerated
  7113  			}
  7114  			if postIndex > l {
  7115  				return io.ErrUnexpectedEOF
  7116  			}
  7117  			m.Items = append(m.Items, RoleBindingRestriction{})
  7118  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7119  				return err
  7120  			}
  7121  			iNdEx = postIndex
  7122  		default:
  7123  			iNdEx = preIndex
  7124  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7125  			if err != nil {
  7126  				return err
  7127  			}
  7128  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7129  				return ErrInvalidLengthGenerated
  7130  			}
  7131  			if (iNdEx + skippy) > l {
  7132  				return io.ErrUnexpectedEOF
  7133  			}
  7134  			iNdEx += skippy
  7135  		}
  7136  	}
  7137  
  7138  	if iNdEx > l {
  7139  		return io.ErrUnexpectedEOF
  7140  	}
  7141  	return nil
  7142  }
  7143  func (m *RoleBindingRestrictionSpec) Unmarshal(dAtA []byte) error {
  7144  	l := len(dAtA)
  7145  	iNdEx := 0
  7146  	for iNdEx < l {
  7147  		preIndex := iNdEx
  7148  		var wire uint64
  7149  		for shift := uint(0); ; shift += 7 {
  7150  			if shift >= 64 {
  7151  				return ErrIntOverflowGenerated
  7152  			}
  7153  			if iNdEx >= l {
  7154  				return io.ErrUnexpectedEOF
  7155  			}
  7156  			b := dAtA[iNdEx]
  7157  			iNdEx++
  7158  			wire |= uint64(b&0x7F) << shift
  7159  			if b < 0x80 {
  7160  				break
  7161  			}
  7162  		}
  7163  		fieldNum := int32(wire >> 3)
  7164  		wireType := int(wire & 0x7)
  7165  		if wireType == 4 {
  7166  			return fmt.Errorf("proto: RoleBindingRestrictionSpec: wiretype end group for non-group")
  7167  		}
  7168  		if fieldNum <= 0 {
  7169  			return fmt.Errorf("proto: RoleBindingRestrictionSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  7170  		}
  7171  		switch fieldNum {
  7172  		case 1:
  7173  			if wireType != 2 {
  7174  				return fmt.Errorf("proto: wrong wireType = %d for field UserRestriction", wireType)
  7175  			}
  7176  			var msglen int
  7177  			for shift := uint(0); ; shift += 7 {
  7178  				if shift >= 64 {
  7179  					return ErrIntOverflowGenerated
  7180  				}
  7181  				if iNdEx >= l {
  7182  					return io.ErrUnexpectedEOF
  7183  				}
  7184  				b := dAtA[iNdEx]
  7185  				iNdEx++
  7186  				msglen |= int(b&0x7F) << shift
  7187  				if b < 0x80 {
  7188  					break
  7189  				}
  7190  			}
  7191  			if msglen < 0 {
  7192  				return ErrInvalidLengthGenerated
  7193  			}
  7194  			postIndex := iNdEx + msglen
  7195  			if postIndex < 0 {
  7196  				return ErrInvalidLengthGenerated
  7197  			}
  7198  			if postIndex > l {
  7199  				return io.ErrUnexpectedEOF
  7200  			}
  7201  			if m.UserRestriction == nil {
  7202  				m.UserRestriction = &UserRestriction{}
  7203  			}
  7204  			if err := m.UserRestriction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7205  				return err
  7206  			}
  7207  			iNdEx = postIndex
  7208  		case 2:
  7209  			if wireType != 2 {
  7210  				return fmt.Errorf("proto: wrong wireType = %d for field GroupRestriction", wireType)
  7211  			}
  7212  			var msglen int
  7213  			for shift := uint(0); ; shift += 7 {
  7214  				if shift >= 64 {
  7215  					return ErrIntOverflowGenerated
  7216  				}
  7217  				if iNdEx >= l {
  7218  					return io.ErrUnexpectedEOF
  7219  				}
  7220  				b := dAtA[iNdEx]
  7221  				iNdEx++
  7222  				msglen |= int(b&0x7F) << shift
  7223  				if b < 0x80 {
  7224  					break
  7225  				}
  7226  			}
  7227  			if msglen < 0 {
  7228  				return ErrInvalidLengthGenerated
  7229  			}
  7230  			postIndex := iNdEx + msglen
  7231  			if postIndex < 0 {
  7232  				return ErrInvalidLengthGenerated
  7233  			}
  7234  			if postIndex > l {
  7235  				return io.ErrUnexpectedEOF
  7236  			}
  7237  			if m.GroupRestriction == nil {
  7238  				m.GroupRestriction = &GroupRestriction{}
  7239  			}
  7240  			if err := m.GroupRestriction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7241  				return err
  7242  			}
  7243  			iNdEx = postIndex
  7244  		case 3:
  7245  			if wireType != 2 {
  7246  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountRestriction", wireType)
  7247  			}
  7248  			var msglen int
  7249  			for shift := uint(0); ; shift += 7 {
  7250  				if shift >= 64 {
  7251  					return ErrIntOverflowGenerated
  7252  				}
  7253  				if iNdEx >= l {
  7254  					return io.ErrUnexpectedEOF
  7255  				}
  7256  				b := dAtA[iNdEx]
  7257  				iNdEx++
  7258  				msglen |= int(b&0x7F) << shift
  7259  				if b < 0x80 {
  7260  					break
  7261  				}
  7262  			}
  7263  			if msglen < 0 {
  7264  				return ErrInvalidLengthGenerated
  7265  			}
  7266  			postIndex := iNdEx + msglen
  7267  			if postIndex < 0 {
  7268  				return ErrInvalidLengthGenerated
  7269  			}
  7270  			if postIndex > l {
  7271  				return io.ErrUnexpectedEOF
  7272  			}
  7273  			if m.ServiceAccountRestriction == nil {
  7274  				m.ServiceAccountRestriction = &ServiceAccountRestriction{}
  7275  			}
  7276  			if err := m.ServiceAccountRestriction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7277  				return err
  7278  			}
  7279  			iNdEx = postIndex
  7280  		default:
  7281  			iNdEx = preIndex
  7282  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7283  			if err != nil {
  7284  				return err
  7285  			}
  7286  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7287  				return ErrInvalidLengthGenerated
  7288  			}
  7289  			if (iNdEx + skippy) > l {
  7290  				return io.ErrUnexpectedEOF
  7291  			}
  7292  			iNdEx += skippy
  7293  		}
  7294  	}
  7295  
  7296  	if iNdEx > l {
  7297  		return io.ErrUnexpectedEOF
  7298  	}
  7299  	return nil
  7300  }
  7301  func (m *RoleList) Unmarshal(dAtA []byte) error {
  7302  	l := len(dAtA)
  7303  	iNdEx := 0
  7304  	for iNdEx < l {
  7305  		preIndex := iNdEx
  7306  		var wire uint64
  7307  		for shift := uint(0); ; shift += 7 {
  7308  			if shift >= 64 {
  7309  				return ErrIntOverflowGenerated
  7310  			}
  7311  			if iNdEx >= l {
  7312  				return io.ErrUnexpectedEOF
  7313  			}
  7314  			b := dAtA[iNdEx]
  7315  			iNdEx++
  7316  			wire |= uint64(b&0x7F) << shift
  7317  			if b < 0x80 {
  7318  				break
  7319  			}
  7320  		}
  7321  		fieldNum := int32(wire >> 3)
  7322  		wireType := int(wire & 0x7)
  7323  		if wireType == 4 {
  7324  			return fmt.Errorf("proto: RoleList: wiretype end group for non-group")
  7325  		}
  7326  		if fieldNum <= 0 {
  7327  			return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire)
  7328  		}
  7329  		switch fieldNum {
  7330  		case 1:
  7331  			if wireType != 2 {
  7332  				return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  7333  			}
  7334  			var msglen int
  7335  			for shift := uint(0); ; shift += 7 {
  7336  				if shift >= 64 {
  7337  					return ErrIntOverflowGenerated
  7338  				}
  7339  				if iNdEx >= l {
  7340  					return io.ErrUnexpectedEOF
  7341  				}
  7342  				b := dAtA[iNdEx]
  7343  				iNdEx++
  7344  				msglen |= int(b&0x7F) << shift
  7345  				if b < 0x80 {
  7346  					break
  7347  				}
  7348  			}
  7349  			if msglen < 0 {
  7350  				return ErrInvalidLengthGenerated
  7351  			}
  7352  			postIndex := iNdEx + msglen
  7353  			if postIndex < 0 {
  7354  				return ErrInvalidLengthGenerated
  7355  			}
  7356  			if postIndex > l {
  7357  				return io.ErrUnexpectedEOF
  7358  			}
  7359  			if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7360  				return err
  7361  			}
  7362  			iNdEx = postIndex
  7363  		case 2:
  7364  			if wireType != 2 {
  7365  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  7366  			}
  7367  			var msglen int
  7368  			for shift := uint(0); ; shift += 7 {
  7369  				if shift >= 64 {
  7370  					return ErrIntOverflowGenerated
  7371  				}
  7372  				if iNdEx >= l {
  7373  					return io.ErrUnexpectedEOF
  7374  				}
  7375  				b := dAtA[iNdEx]
  7376  				iNdEx++
  7377  				msglen |= int(b&0x7F) << shift
  7378  				if b < 0x80 {
  7379  					break
  7380  				}
  7381  			}
  7382  			if msglen < 0 {
  7383  				return ErrInvalidLengthGenerated
  7384  			}
  7385  			postIndex := iNdEx + msglen
  7386  			if postIndex < 0 {
  7387  				return ErrInvalidLengthGenerated
  7388  			}
  7389  			if postIndex > l {
  7390  				return io.ErrUnexpectedEOF
  7391  			}
  7392  			m.Items = append(m.Items, Role{})
  7393  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7394  				return err
  7395  			}
  7396  			iNdEx = postIndex
  7397  		default:
  7398  			iNdEx = preIndex
  7399  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7400  			if err != nil {
  7401  				return err
  7402  			}
  7403  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7404  				return ErrInvalidLengthGenerated
  7405  			}
  7406  			if (iNdEx + skippy) > l {
  7407  				return io.ErrUnexpectedEOF
  7408  			}
  7409  			iNdEx += skippy
  7410  		}
  7411  	}
  7412  
  7413  	if iNdEx > l {
  7414  		return io.ErrUnexpectedEOF
  7415  	}
  7416  	return nil
  7417  }
  7418  func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error {
  7419  	l := len(dAtA)
  7420  	iNdEx := 0
  7421  	for iNdEx < l {
  7422  		preIndex := iNdEx
  7423  		var wire uint64
  7424  		for shift := uint(0); ; shift += 7 {
  7425  			if shift >= 64 {
  7426  				return ErrIntOverflowGenerated
  7427  			}
  7428  			if iNdEx >= l {
  7429  				return io.ErrUnexpectedEOF
  7430  			}
  7431  			b := dAtA[iNdEx]
  7432  			iNdEx++
  7433  			wire |= uint64(b&0x7F) << shift
  7434  			if b < 0x80 {
  7435  				break
  7436  			}
  7437  		}
  7438  		fieldNum := int32(wire >> 3)
  7439  		wireType := int(wire & 0x7)
  7440  		if wireType == 4 {
  7441  			return fmt.Errorf("proto: SelfSubjectRulesReview: wiretype end group for non-group")
  7442  		}
  7443  		if fieldNum <= 0 {
  7444  			return fmt.Errorf("proto: SelfSubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire)
  7445  		}
  7446  		switch fieldNum {
  7447  		case 1:
  7448  			if wireType != 2 {
  7449  				return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  7450  			}
  7451  			var msglen int
  7452  			for shift := uint(0); ; shift += 7 {
  7453  				if shift >= 64 {
  7454  					return ErrIntOverflowGenerated
  7455  				}
  7456  				if iNdEx >= l {
  7457  					return io.ErrUnexpectedEOF
  7458  				}
  7459  				b := dAtA[iNdEx]
  7460  				iNdEx++
  7461  				msglen |= int(b&0x7F) << shift
  7462  				if b < 0x80 {
  7463  					break
  7464  				}
  7465  			}
  7466  			if msglen < 0 {
  7467  				return ErrInvalidLengthGenerated
  7468  			}
  7469  			postIndex := iNdEx + msglen
  7470  			if postIndex < 0 {
  7471  				return ErrInvalidLengthGenerated
  7472  			}
  7473  			if postIndex > l {
  7474  				return io.ErrUnexpectedEOF
  7475  			}
  7476  			if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7477  				return err
  7478  			}
  7479  			iNdEx = postIndex
  7480  		case 2:
  7481  			if wireType != 2 {
  7482  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  7483  			}
  7484  			var msglen int
  7485  			for shift := uint(0); ; shift += 7 {
  7486  				if shift >= 64 {
  7487  					return ErrIntOverflowGenerated
  7488  				}
  7489  				if iNdEx >= l {
  7490  					return io.ErrUnexpectedEOF
  7491  				}
  7492  				b := dAtA[iNdEx]
  7493  				iNdEx++
  7494  				msglen |= int(b&0x7F) << shift
  7495  				if b < 0x80 {
  7496  					break
  7497  				}
  7498  			}
  7499  			if msglen < 0 {
  7500  				return ErrInvalidLengthGenerated
  7501  			}
  7502  			postIndex := iNdEx + msglen
  7503  			if postIndex < 0 {
  7504  				return ErrInvalidLengthGenerated
  7505  			}
  7506  			if postIndex > l {
  7507  				return io.ErrUnexpectedEOF
  7508  			}
  7509  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7510  				return err
  7511  			}
  7512  			iNdEx = postIndex
  7513  		default:
  7514  			iNdEx = preIndex
  7515  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7516  			if err != nil {
  7517  				return err
  7518  			}
  7519  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7520  				return ErrInvalidLengthGenerated
  7521  			}
  7522  			if (iNdEx + skippy) > l {
  7523  				return io.ErrUnexpectedEOF
  7524  			}
  7525  			iNdEx += skippy
  7526  		}
  7527  	}
  7528  
  7529  	if iNdEx > l {
  7530  		return io.ErrUnexpectedEOF
  7531  	}
  7532  	return nil
  7533  }
  7534  func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error {
  7535  	l := len(dAtA)
  7536  	iNdEx := 0
  7537  	for iNdEx < l {
  7538  		preIndex := iNdEx
  7539  		var wire uint64
  7540  		for shift := uint(0); ; shift += 7 {
  7541  			if shift >= 64 {
  7542  				return ErrIntOverflowGenerated
  7543  			}
  7544  			if iNdEx >= l {
  7545  				return io.ErrUnexpectedEOF
  7546  			}
  7547  			b := dAtA[iNdEx]
  7548  			iNdEx++
  7549  			wire |= uint64(b&0x7F) << shift
  7550  			if b < 0x80 {
  7551  				break
  7552  			}
  7553  		}
  7554  		fieldNum := int32(wire >> 3)
  7555  		wireType := int(wire & 0x7)
  7556  		if wireType == 4 {
  7557  			return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: wiretype end group for non-group")
  7558  		}
  7559  		if fieldNum <= 0 {
  7560  			return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  7561  		}
  7562  		switch fieldNum {
  7563  		case 1:
  7564  			if wireType != 2 {
  7565  				return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType)
  7566  			}
  7567  			var msglen int
  7568  			for shift := uint(0); ; shift += 7 {
  7569  				if shift >= 64 {
  7570  					return ErrIntOverflowGenerated
  7571  				}
  7572  				if iNdEx >= l {
  7573  					return io.ErrUnexpectedEOF
  7574  				}
  7575  				b := dAtA[iNdEx]
  7576  				iNdEx++
  7577  				msglen |= int(b&0x7F) << shift
  7578  				if b < 0x80 {
  7579  					break
  7580  				}
  7581  			}
  7582  			if msglen < 0 {
  7583  				return ErrInvalidLengthGenerated
  7584  			}
  7585  			postIndex := iNdEx + msglen
  7586  			if postIndex < 0 {
  7587  				return ErrInvalidLengthGenerated
  7588  			}
  7589  			if postIndex > l {
  7590  				return io.ErrUnexpectedEOF
  7591  			}
  7592  			if m.Scopes == nil {
  7593  				m.Scopes = OptionalScopes{}
  7594  			}
  7595  			if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7596  				return err
  7597  			}
  7598  			iNdEx = postIndex
  7599  		default:
  7600  			iNdEx = preIndex
  7601  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7602  			if err != nil {
  7603  				return err
  7604  			}
  7605  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7606  				return ErrInvalidLengthGenerated
  7607  			}
  7608  			if (iNdEx + skippy) > l {
  7609  				return io.ErrUnexpectedEOF
  7610  			}
  7611  			iNdEx += skippy
  7612  		}
  7613  	}
  7614  
  7615  	if iNdEx > l {
  7616  		return io.ErrUnexpectedEOF
  7617  	}
  7618  	return nil
  7619  }
  7620  func (m *ServiceAccountReference) Unmarshal(dAtA []byte) error {
  7621  	l := len(dAtA)
  7622  	iNdEx := 0
  7623  	for iNdEx < l {
  7624  		preIndex := iNdEx
  7625  		var wire uint64
  7626  		for shift := uint(0); ; shift += 7 {
  7627  			if shift >= 64 {
  7628  				return ErrIntOverflowGenerated
  7629  			}
  7630  			if iNdEx >= l {
  7631  				return io.ErrUnexpectedEOF
  7632  			}
  7633  			b := dAtA[iNdEx]
  7634  			iNdEx++
  7635  			wire |= uint64(b&0x7F) << shift
  7636  			if b < 0x80 {
  7637  				break
  7638  			}
  7639  		}
  7640  		fieldNum := int32(wire >> 3)
  7641  		wireType := int(wire & 0x7)
  7642  		if wireType == 4 {
  7643  			return fmt.Errorf("proto: ServiceAccountReference: wiretype end group for non-group")
  7644  		}
  7645  		if fieldNum <= 0 {
  7646  			return fmt.Errorf("proto: ServiceAccountReference: illegal tag %d (wire type %d)", fieldNum, wire)
  7647  		}
  7648  		switch fieldNum {
  7649  		case 1:
  7650  			if wireType != 2 {
  7651  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  7652  			}
  7653  			var stringLen uint64
  7654  			for shift := uint(0); ; shift += 7 {
  7655  				if shift >= 64 {
  7656  					return ErrIntOverflowGenerated
  7657  				}
  7658  				if iNdEx >= l {
  7659  					return io.ErrUnexpectedEOF
  7660  				}
  7661  				b := dAtA[iNdEx]
  7662  				iNdEx++
  7663  				stringLen |= uint64(b&0x7F) << shift
  7664  				if b < 0x80 {
  7665  					break
  7666  				}
  7667  			}
  7668  			intStringLen := int(stringLen)
  7669  			if intStringLen < 0 {
  7670  				return ErrInvalidLengthGenerated
  7671  			}
  7672  			postIndex := iNdEx + intStringLen
  7673  			if postIndex < 0 {
  7674  				return ErrInvalidLengthGenerated
  7675  			}
  7676  			if postIndex > l {
  7677  				return io.ErrUnexpectedEOF
  7678  			}
  7679  			m.Name = string(dAtA[iNdEx:postIndex])
  7680  			iNdEx = postIndex
  7681  		case 2:
  7682  			if wireType != 2 {
  7683  				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  7684  			}
  7685  			var stringLen uint64
  7686  			for shift := uint(0); ; shift += 7 {
  7687  				if shift >= 64 {
  7688  					return ErrIntOverflowGenerated
  7689  				}
  7690  				if iNdEx >= l {
  7691  					return io.ErrUnexpectedEOF
  7692  				}
  7693  				b := dAtA[iNdEx]
  7694  				iNdEx++
  7695  				stringLen |= uint64(b&0x7F) << shift
  7696  				if b < 0x80 {
  7697  					break
  7698  				}
  7699  			}
  7700  			intStringLen := int(stringLen)
  7701  			if intStringLen < 0 {
  7702  				return ErrInvalidLengthGenerated
  7703  			}
  7704  			postIndex := iNdEx + intStringLen
  7705  			if postIndex < 0 {
  7706  				return ErrInvalidLengthGenerated
  7707  			}
  7708  			if postIndex > l {
  7709  				return io.ErrUnexpectedEOF
  7710  			}
  7711  			m.Namespace = string(dAtA[iNdEx:postIndex])
  7712  			iNdEx = postIndex
  7713  		default:
  7714  			iNdEx = preIndex
  7715  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7716  			if err != nil {
  7717  				return err
  7718  			}
  7719  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7720  				return ErrInvalidLengthGenerated
  7721  			}
  7722  			if (iNdEx + skippy) > l {
  7723  				return io.ErrUnexpectedEOF
  7724  			}
  7725  			iNdEx += skippy
  7726  		}
  7727  	}
  7728  
  7729  	if iNdEx > l {
  7730  		return io.ErrUnexpectedEOF
  7731  	}
  7732  	return nil
  7733  }
  7734  func (m *ServiceAccountRestriction) Unmarshal(dAtA []byte) error {
  7735  	l := len(dAtA)
  7736  	iNdEx := 0
  7737  	for iNdEx < l {
  7738  		preIndex := iNdEx
  7739  		var wire uint64
  7740  		for shift := uint(0); ; shift += 7 {
  7741  			if shift >= 64 {
  7742  				return ErrIntOverflowGenerated
  7743  			}
  7744  			if iNdEx >= l {
  7745  				return io.ErrUnexpectedEOF
  7746  			}
  7747  			b := dAtA[iNdEx]
  7748  			iNdEx++
  7749  			wire |= uint64(b&0x7F) << shift
  7750  			if b < 0x80 {
  7751  				break
  7752  			}
  7753  		}
  7754  		fieldNum := int32(wire >> 3)
  7755  		wireType := int(wire & 0x7)
  7756  		if wireType == 4 {
  7757  			return fmt.Errorf("proto: ServiceAccountRestriction: wiretype end group for non-group")
  7758  		}
  7759  		if fieldNum <= 0 {
  7760  			return fmt.Errorf("proto: ServiceAccountRestriction: illegal tag %d (wire type %d)", fieldNum, wire)
  7761  		}
  7762  		switch fieldNum {
  7763  		case 1:
  7764  			if wireType != 2 {
  7765  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccounts", wireType)
  7766  			}
  7767  			var msglen int
  7768  			for shift := uint(0); ; shift += 7 {
  7769  				if shift >= 64 {
  7770  					return ErrIntOverflowGenerated
  7771  				}
  7772  				if iNdEx >= l {
  7773  					return io.ErrUnexpectedEOF
  7774  				}
  7775  				b := dAtA[iNdEx]
  7776  				iNdEx++
  7777  				msglen |= int(b&0x7F) << shift
  7778  				if b < 0x80 {
  7779  					break
  7780  				}
  7781  			}
  7782  			if msglen < 0 {
  7783  				return ErrInvalidLengthGenerated
  7784  			}
  7785  			postIndex := iNdEx + msglen
  7786  			if postIndex < 0 {
  7787  				return ErrInvalidLengthGenerated
  7788  			}
  7789  			if postIndex > l {
  7790  				return io.ErrUnexpectedEOF
  7791  			}
  7792  			m.ServiceAccounts = append(m.ServiceAccounts, ServiceAccountReference{})
  7793  			if err := m.ServiceAccounts[len(m.ServiceAccounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7794  				return err
  7795  			}
  7796  			iNdEx = postIndex
  7797  		case 2:
  7798  			if wireType != 2 {
  7799  				return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType)
  7800  			}
  7801  			var stringLen uint64
  7802  			for shift := uint(0); ; shift += 7 {
  7803  				if shift >= 64 {
  7804  					return ErrIntOverflowGenerated
  7805  				}
  7806  				if iNdEx >= l {
  7807  					return io.ErrUnexpectedEOF
  7808  				}
  7809  				b := dAtA[iNdEx]
  7810  				iNdEx++
  7811  				stringLen |= uint64(b&0x7F) << shift
  7812  				if b < 0x80 {
  7813  					break
  7814  				}
  7815  			}
  7816  			intStringLen := int(stringLen)
  7817  			if intStringLen < 0 {
  7818  				return ErrInvalidLengthGenerated
  7819  			}
  7820  			postIndex := iNdEx + intStringLen
  7821  			if postIndex < 0 {
  7822  				return ErrInvalidLengthGenerated
  7823  			}
  7824  			if postIndex > l {
  7825  				return io.ErrUnexpectedEOF
  7826  			}
  7827  			m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex]))
  7828  			iNdEx = postIndex
  7829  		default:
  7830  			iNdEx = preIndex
  7831  			skippy, err := skipGenerated(dAtA[iNdEx:])
  7832  			if err != nil {
  7833  				return err
  7834  			}
  7835  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7836  				return ErrInvalidLengthGenerated
  7837  			}
  7838  			if (iNdEx + skippy) > l {
  7839  				return io.ErrUnexpectedEOF
  7840  			}
  7841  			iNdEx += skippy
  7842  		}
  7843  	}
  7844  
  7845  	if iNdEx > l {
  7846  		return io.ErrUnexpectedEOF
  7847  	}
  7848  	return nil
  7849  }
  7850  func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error {
  7851  	l := len(dAtA)
  7852  	iNdEx := 0
  7853  	for iNdEx < l {
  7854  		preIndex := iNdEx
  7855  		var wire uint64
  7856  		for shift := uint(0); ; shift += 7 {
  7857  			if shift >= 64 {
  7858  				return ErrIntOverflowGenerated
  7859  			}
  7860  			if iNdEx >= l {
  7861  				return io.ErrUnexpectedEOF
  7862  			}
  7863  			b := dAtA[iNdEx]
  7864  			iNdEx++
  7865  			wire |= uint64(b&0x7F) << shift
  7866  			if b < 0x80 {
  7867  				break
  7868  			}
  7869  		}
  7870  		fieldNum := int32(wire >> 3)
  7871  		wireType := int(wire & 0x7)
  7872  		if wireType == 4 {
  7873  			return fmt.Errorf("proto: SubjectAccessReview: wiretype end group for non-group")
  7874  		}
  7875  		if fieldNum <= 0 {
  7876  			return fmt.Errorf("proto: SubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire)
  7877  		}
  7878  		switch fieldNum {
  7879  		case 1:
  7880  			if wireType != 2 {
  7881  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  7882  			}
  7883  			var msglen int
  7884  			for shift := uint(0); ; shift += 7 {
  7885  				if shift >= 64 {
  7886  					return ErrIntOverflowGenerated
  7887  				}
  7888  				if iNdEx >= l {
  7889  					return io.ErrUnexpectedEOF
  7890  				}
  7891  				b := dAtA[iNdEx]
  7892  				iNdEx++
  7893  				msglen |= int(b&0x7F) << shift
  7894  				if b < 0x80 {
  7895  					break
  7896  				}
  7897  			}
  7898  			if msglen < 0 {
  7899  				return ErrInvalidLengthGenerated
  7900  			}
  7901  			postIndex := iNdEx + msglen
  7902  			if postIndex < 0 {
  7903  				return ErrInvalidLengthGenerated
  7904  			}
  7905  			if postIndex > l {
  7906  				return io.ErrUnexpectedEOF
  7907  			}
  7908  			if err := m.Action.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7909  				return err
  7910  			}
  7911  			iNdEx = postIndex
  7912  		case 2:
  7913  			if wireType != 2 {
  7914  				return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  7915  			}
  7916  			var stringLen uint64
  7917  			for shift := uint(0); ; shift += 7 {
  7918  				if shift >= 64 {
  7919  					return ErrIntOverflowGenerated
  7920  				}
  7921  				if iNdEx >= l {
  7922  					return io.ErrUnexpectedEOF
  7923  				}
  7924  				b := dAtA[iNdEx]
  7925  				iNdEx++
  7926  				stringLen |= uint64(b&0x7F) << shift
  7927  				if b < 0x80 {
  7928  					break
  7929  				}
  7930  			}
  7931  			intStringLen := int(stringLen)
  7932  			if intStringLen < 0 {
  7933  				return ErrInvalidLengthGenerated
  7934  			}
  7935  			postIndex := iNdEx + intStringLen
  7936  			if postIndex < 0 {
  7937  				return ErrInvalidLengthGenerated
  7938  			}
  7939  			if postIndex > l {
  7940  				return io.ErrUnexpectedEOF
  7941  			}
  7942  			m.User = string(dAtA[iNdEx:postIndex])
  7943  			iNdEx = postIndex
  7944  		case 3:
  7945  			if wireType != 2 {
  7946  				return fmt.Errorf("proto: wrong wireType = %d for field GroupsSlice", wireType)
  7947  			}
  7948  			var stringLen uint64
  7949  			for shift := uint(0); ; shift += 7 {
  7950  				if shift >= 64 {
  7951  					return ErrIntOverflowGenerated
  7952  				}
  7953  				if iNdEx >= l {
  7954  					return io.ErrUnexpectedEOF
  7955  				}
  7956  				b := dAtA[iNdEx]
  7957  				iNdEx++
  7958  				stringLen |= uint64(b&0x7F) << shift
  7959  				if b < 0x80 {
  7960  					break
  7961  				}
  7962  			}
  7963  			intStringLen := int(stringLen)
  7964  			if intStringLen < 0 {
  7965  				return ErrInvalidLengthGenerated
  7966  			}
  7967  			postIndex := iNdEx + intStringLen
  7968  			if postIndex < 0 {
  7969  				return ErrInvalidLengthGenerated
  7970  			}
  7971  			if postIndex > l {
  7972  				return io.ErrUnexpectedEOF
  7973  			}
  7974  			m.GroupsSlice = append(m.GroupsSlice, string(dAtA[iNdEx:postIndex]))
  7975  			iNdEx = postIndex
  7976  		case 4:
  7977  			if wireType != 2 {
  7978  				return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType)
  7979  			}
  7980  			var msglen int
  7981  			for shift := uint(0); ; shift += 7 {
  7982  				if shift >= 64 {
  7983  					return ErrIntOverflowGenerated
  7984  				}
  7985  				if iNdEx >= l {
  7986  					return io.ErrUnexpectedEOF
  7987  				}
  7988  				b := dAtA[iNdEx]
  7989  				iNdEx++
  7990  				msglen |= int(b&0x7F) << shift
  7991  				if b < 0x80 {
  7992  					break
  7993  				}
  7994  			}
  7995  			if msglen < 0 {
  7996  				return ErrInvalidLengthGenerated
  7997  			}
  7998  			postIndex := iNdEx + msglen
  7999  			if postIndex < 0 {
  8000  				return ErrInvalidLengthGenerated
  8001  			}
  8002  			if postIndex > l {
  8003  				return io.ErrUnexpectedEOF
  8004  			}
  8005  			if m.Scopes == nil {
  8006  				m.Scopes = OptionalScopes{}
  8007  			}
  8008  			if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8009  				return err
  8010  			}
  8011  			iNdEx = postIndex
  8012  		default:
  8013  			iNdEx = preIndex
  8014  			skippy, err := skipGenerated(dAtA[iNdEx:])
  8015  			if err != nil {
  8016  				return err
  8017  			}
  8018  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8019  				return ErrInvalidLengthGenerated
  8020  			}
  8021  			if (iNdEx + skippy) > l {
  8022  				return io.ErrUnexpectedEOF
  8023  			}
  8024  			iNdEx += skippy
  8025  		}
  8026  	}
  8027  
  8028  	if iNdEx > l {
  8029  		return io.ErrUnexpectedEOF
  8030  	}
  8031  	return nil
  8032  }
  8033  func (m *SubjectAccessReviewResponse) Unmarshal(dAtA []byte) error {
  8034  	l := len(dAtA)
  8035  	iNdEx := 0
  8036  	for iNdEx < l {
  8037  		preIndex := iNdEx
  8038  		var wire uint64
  8039  		for shift := uint(0); ; shift += 7 {
  8040  			if shift >= 64 {
  8041  				return ErrIntOverflowGenerated
  8042  			}
  8043  			if iNdEx >= l {
  8044  				return io.ErrUnexpectedEOF
  8045  			}
  8046  			b := dAtA[iNdEx]
  8047  			iNdEx++
  8048  			wire |= uint64(b&0x7F) << shift
  8049  			if b < 0x80 {
  8050  				break
  8051  			}
  8052  		}
  8053  		fieldNum := int32(wire >> 3)
  8054  		wireType := int(wire & 0x7)
  8055  		if wireType == 4 {
  8056  			return fmt.Errorf("proto: SubjectAccessReviewResponse: wiretype end group for non-group")
  8057  		}
  8058  		if fieldNum <= 0 {
  8059  			return fmt.Errorf("proto: SubjectAccessReviewResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8060  		}
  8061  		switch fieldNum {
  8062  		case 1:
  8063  			if wireType != 2 {
  8064  				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  8065  			}
  8066  			var stringLen uint64
  8067  			for shift := uint(0); ; shift += 7 {
  8068  				if shift >= 64 {
  8069  					return ErrIntOverflowGenerated
  8070  				}
  8071  				if iNdEx >= l {
  8072  					return io.ErrUnexpectedEOF
  8073  				}
  8074  				b := dAtA[iNdEx]
  8075  				iNdEx++
  8076  				stringLen |= uint64(b&0x7F) << shift
  8077  				if b < 0x80 {
  8078  					break
  8079  				}
  8080  			}
  8081  			intStringLen := int(stringLen)
  8082  			if intStringLen < 0 {
  8083  				return ErrInvalidLengthGenerated
  8084  			}
  8085  			postIndex := iNdEx + intStringLen
  8086  			if postIndex < 0 {
  8087  				return ErrInvalidLengthGenerated
  8088  			}
  8089  			if postIndex > l {
  8090  				return io.ErrUnexpectedEOF
  8091  			}
  8092  			m.Namespace = string(dAtA[iNdEx:postIndex])
  8093  			iNdEx = postIndex
  8094  		case 2:
  8095  			if wireType != 0 {
  8096  				return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType)
  8097  			}
  8098  			var v int
  8099  			for shift := uint(0); ; shift += 7 {
  8100  				if shift >= 64 {
  8101  					return ErrIntOverflowGenerated
  8102  				}
  8103  				if iNdEx >= l {
  8104  					return io.ErrUnexpectedEOF
  8105  				}
  8106  				b := dAtA[iNdEx]
  8107  				iNdEx++
  8108  				v |= int(b&0x7F) << shift
  8109  				if b < 0x80 {
  8110  					break
  8111  				}
  8112  			}
  8113  			m.Allowed = bool(v != 0)
  8114  		case 3:
  8115  			if wireType != 2 {
  8116  				return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  8117  			}
  8118  			var stringLen uint64
  8119  			for shift := uint(0); ; shift += 7 {
  8120  				if shift >= 64 {
  8121  					return ErrIntOverflowGenerated
  8122  				}
  8123  				if iNdEx >= l {
  8124  					return io.ErrUnexpectedEOF
  8125  				}
  8126  				b := dAtA[iNdEx]
  8127  				iNdEx++
  8128  				stringLen |= uint64(b&0x7F) << shift
  8129  				if b < 0x80 {
  8130  					break
  8131  				}
  8132  			}
  8133  			intStringLen := int(stringLen)
  8134  			if intStringLen < 0 {
  8135  				return ErrInvalidLengthGenerated
  8136  			}
  8137  			postIndex := iNdEx + intStringLen
  8138  			if postIndex < 0 {
  8139  				return ErrInvalidLengthGenerated
  8140  			}
  8141  			if postIndex > l {
  8142  				return io.ErrUnexpectedEOF
  8143  			}
  8144  			m.Reason = string(dAtA[iNdEx:postIndex])
  8145  			iNdEx = postIndex
  8146  		case 4:
  8147  			if wireType != 2 {
  8148  				return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType)
  8149  			}
  8150  			var stringLen uint64
  8151  			for shift := uint(0); ; shift += 7 {
  8152  				if shift >= 64 {
  8153  					return ErrIntOverflowGenerated
  8154  				}
  8155  				if iNdEx >= l {
  8156  					return io.ErrUnexpectedEOF
  8157  				}
  8158  				b := dAtA[iNdEx]
  8159  				iNdEx++
  8160  				stringLen |= uint64(b&0x7F) << shift
  8161  				if b < 0x80 {
  8162  					break
  8163  				}
  8164  			}
  8165  			intStringLen := int(stringLen)
  8166  			if intStringLen < 0 {
  8167  				return ErrInvalidLengthGenerated
  8168  			}
  8169  			postIndex := iNdEx + intStringLen
  8170  			if postIndex < 0 {
  8171  				return ErrInvalidLengthGenerated
  8172  			}
  8173  			if postIndex > l {
  8174  				return io.ErrUnexpectedEOF
  8175  			}
  8176  			m.EvaluationError = string(dAtA[iNdEx:postIndex])
  8177  			iNdEx = postIndex
  8178  		default:
  8179  			iNdEx = preIndex
  8180  			skippy, err := skipGenerated(dAtA[iNdEx:])
  8181  			if err != nil {
  8182  				return err
  8183  			}
  8184  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8185  				return ErrInvalidLengthGenerated
  8186  			}
  8187  			if (iNdEx + skippy) > l {
  8188  				return io.ErrUnexpectedEOF
  8189  			}
  8190  			iNdEx += skippy
  8191  		}
  8192  	}
  8193  
  8194  	if iNdEx > l {
  8195  		return io.ErrUnexpectedEOF
  8196  	}
  8197  	return nil
  8198  }
  8199  func (m *SubjectRulesReview) Unmarshal(dAtA []byte) error {
  8200  	l := len(dAtA)
  8201  	iNdEx := 0
  8202  	for iNdEx < l {
  8203  		preIndex := iNdEx
  8204  		var wire uint64
  8205  		for shift := uint(0); ; shift += 7 {
  8206  			if shift >= 64 {
  8207  				return ErrIntOverflowGenerated
  8208  			}
  8209  			if iNdEx >= l {
  8210  				return io.ErrUnexpectedEOF
  8211  			}
  8212  			b := dAtA[iNdEx]
  8213  			iNdEx++
  8214  			wire |= uint64(b&0x7F) << shift
  8215  			if b < 0x80 {
  8216  				break
  8217  			}
  8218  		}
  8219  		fieldNum := int32(wire >> 3)
  8220  		wireType := int(wire & 0x7)
  8221  		if wireType == 4 {
  8222  			return fmt.Errorf("proto: SubjectRulesReview: wiretype end group for non-group")
  8223  		}
  8224  		if fieldNum <= 0 {
  8225  			return fmt.Errorf("proto: SubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire)
  8226  		}
  8227  		switch fieldNum {
  8228  		case 1:
  8229  			if wireType != 2 {
  8230  				return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  8231  			}
  8232  			var msglen int
  8233  			for shift := uint(0); ; shift += 7 {
  8234  				if shift >= 64 {
  8235  					return ErrIntOverflowGenerated
  8236  				}
  8237  				if iNdEx >= l {
  8238  					return io.ErrUnexpectedEOF
  8239  				}
  8240  				b := dAtA[iNdEx]
  8241  				iNdEx++
  8242  				msglen |= int(b&0x7F) << shift
  8243  				if b < 0x80 {
  8244  					break
  8245  				}
  8246  			}
  8247  			if msglen < 0 {
  8248  				return ErrInvalidLengthGenerated
  8249  			}
  8250  			postIndex := iNdEx + msglen
  8251  			if postIndex < 0 {
  8252  				return ErrInvalidLengthGenerated
  8253  			}
  8254  			if postIndex > l {
  8255  				return io.ErrUnexpectedEOF
  8256  			}
  8257  			if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8258  				return err
  8259  			}
  8260  			iNdEx = postIndex
  8261  		case 2:
  8262  			if wireType != 2 {
  8263  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  8264  			}
  8265  			var msglen int
  8266  			for shift := uint(0); ; shift += 7 {
  8267  				if shift >= 64 {
  8268  					return ErrIntOverflowGenerated
  8269  				}
  8270  				if iNdEx >= l {
  8271  					return io.ErrUnexpectedEOF
  8272  				}
  8273  				b := dAtA[iNdEx]
  8274  				iNdEx++
  8275  				msglen |= int(b&0x7F) << shift
  8276  				if b < 0x80 {
  8277  					break
  8278  				}
  8279  			}
  8280  			if msglen < 0 {
  8281  				return ErrInvalidLengthGenerated
  8282  			}
  8283  			postIndex := iNdEx + msglen
  8284  			if postIndex < 0 {
  8285  				return ErrInvalidLengthGenerated
  8286  			}
  8287  			if postIndex > l {
  8288  				return io.ErrUnexpectedEOF
  8289  			}
  8290  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8291  				return err
  8292  			}
  8293  			iNdEx = postIndex
  8294  		default:
  8295  			iNdEx = preIndex
  8296  			skippy, err := skipGenerated(dAtA[iNdEx:])
  8297  			if err != nil {
  8298  				return err
  8299  			}
  8300  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8301  				return ErrInvalidLengthGenerated
  8302  			}
  8303  			if (iNdEx + skippy) > l {
  8304  				return io.ErrUnexpectedEOF
  8305  			}
  8306  			iNdEx += skippy
  8307  		}
  8308  	}
  8309  
  8310  	if iNdEx > l {
  8311  		return io.ErrUnexpectedEOF
  8312  	}
  8313  	return nil
  8314  }
  8315  func (m *SubjectRulesReviewSpec) Unmarshal(dAtA []byte) error {
  8316  	l := len(dAtA)
  8317  	iNdEx := 0
  8318  	for iNdEx < l {
  8319  		preIndex := iNdEx
  8320  		var wire uint64
  8321  		for shift := uint(0); ; shift += 7 {
  8322  			if shift >= 64 {
  8323  				return ErrIntOverflowGenerated
  8324  			}
  8325  			if iNdEx >= l {
  8326  				return io.ErrUnexpectedEOF
  8327  			}
  8328  			b := dAtA[iNdEx]
  8329  			iNdEx++
  8330  			wire |= uint64(b&0x7F) << shift
  8331  			if b < 0x80 {
  8332  				break
  8333  			}
  8334  		}
  8335  		fieldNum := int32(wire >> 3)
  8336  		wireType := int(wire & 0x7)
  8337  		if wireType == 4 {
  8338  			return fmt.Errorf("proto: SubjectRulesReviewSpec: wiretype end group for non-group")
  8339  		}
  8340  		if fieldNum <= 0 {
  8341  			return fmt.Errorf("proto: SubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  8342  		}
  8343  		switch fieldNum {
  8344  		case 1:
  8345  			if wireType != 2 {
  8346  				return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  8347  			}
  8348  			var stringLen uint64
  8349  			for shift := uint(0); ; shift += 7 {
  8350  				if shift >= 64 {
  8351  					return ErrIntOverflowGenerated
  8352  				}
  8353  				if iNdEx >= l {
  8354  					return io.ErrUnexpectedEOF
  8355  				}
  8356  				b := dAtA[iNdEx]
  8357  				iNdEx++
  8358  				stringLen |= uint64(b&0x7F) << shift
  8359  				if b < 0x80 {
  8360  					break
  8361  				}
  8362  			}
  8363  			intStringLen := int(stringLen)
  8364  			if intStringLen < 0 {
  8365  				return ErrInvalidLengthGenerated
  8366  			}
  8367  			postIndex := iNdEx + intStringLen
  8368  			if postIndex < 0 {
  8369  				return ErrInvalidLengthGenerated
  8370  			}
  8371  			if postIndex > l {
  8372  				return io.ErrUnexpectedEOF
  8373  			}
  8374  			m.User = string(dAtA[iNdEx:postIndex])
  8375  			iNdEx = postIndex
  8376  		case 2:
  8377  			if wireType != 2 {
  8378  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  8379  			}
  8380  			var stringLen uint64
  8381  			for shift := uint(0); ; shift += 7 {
  8382  				if shift >= 64 {
  8383  					return ErrIntOverflowGenerated
  8384  				}
  8385  				if iNdEx >= l {
  8386  					return io.ErrUnexpectedEOF
  8387  				}
  8388  				b := dAtA[iNdEx]
  8389  				iNdEx++
  8390  				stringLen |= uint64(b&0x7F) << shift
  8391  				if b < 0x80 {
  8392  					break
  8393  				}
  8394  			}
  8395  			intStringLen := int(stringLen)
  8396  			if intStringLen < 0 {
  8397  				return ErrInvalidLengthGenerated
  8398  			}
  8399  			postIndex := iNdEx + intStringLen
  8400  			if postIndex < 0 {
  8401  				return ErrInvalidLengthGenerated
  8402  			}
  8403  			if postIndex > l {
  8404  				return io.ErrUnexpectedEOF
  8405  			}
  8406  			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  8407  			iNdEx = postIndex
  8408  		case 3:
  8409  			if wireType != 2 {
  8410  				return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType)
  8411  			}
  8412  			var msglen int
  8413  			for shift := uint(0); ; shift += 7 {
  8414  				if shift >= 64 {
  8415  					return ErrIntOverflowGenerated
  8416  				}
  8417  				if iNdEx >= l {
  8418  					return io.ErrUnexpectedEOF
  8419  				}
  8420  				b := dAtA[iNdEx]
  8421  				iNdEx++
  8422  				msglen |= int(b&0x7F) << shift
  8423  				if b < 0x80 {
  8424  					break
  8425  				}
  8426  			}
  8427  			if msglen < 0 {
  8428  				return ErrInvalidLengthGenerated
  8429  			}
  8430  			postIndex := iNdEx + msglen
  8431  			if postIndex < 0 {
  8432  				return ErrInvalidLengthGenerated
  8433  			}
  8434  			if postIndex > l {
  8435  				return io.ErrUnexpectedEOF
  8436  			}
  8437  			if m.Scopes == nil {
  8438  				m.Scopes = OptionalScopes{}
  8439  			}
  8440  			if err := m.Scopes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8441  				return err
  8442  			}
  8443  			iNdEx = postIndex
  8444  		default:
  8445  			iNdEx = preIndex
  8446  			skippy, err := skipGenerated(dAtA[iNdEx:])
  8447  			if err != nil {
  8448  				return err
  8449  			}
  8450  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8451  				return ErrInvalidLengthGenerated
  8452  			}
  8453  			if (iNdEx + skippy) > l {
  8454  				return io.ErrUnexpectedEOF
  8455  			}
  8456  			iNdEx += skippy
  8457  		}
  8458  	}
  8459  
  8460  	if iNdEx > l {
  8461  		return io.ErrUnexpectedEOF
  8462  	}
  8463  	return nil
  8464  }
  8465  func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error {
  8466  	l := len(dAtA)
  8467  	iNdEx := 0
  8468  	for iNdEx < l {
  8469  		preIndex := iNdEx
  8470  		var wire uint64
  8471  		for shift := uint(0); ; shift += 7 {
  8472  			if shift >= 64 {
  8473  				return ErrIntOverflowGenerated
  8474  			}
  8475  			if iNdEx >= l {
  8476  				return io.ErrUnexpectedEOF
  8477  			}
  8478  			b := dAtA[iNdEx]
  8479  			iNdEx++
  8480  			wire |= uint64(b&0x7F) << shift
  8481  			if b < 0x80 {
  8482  				break
  8483  			}
  8484  		}
  8485  		fieldNum := int32(wire >> 3)
  8486  		wireType := int(wire & 0x7)
  8487  		if wireType == 4 {
  8488  			return fmt.Errorf("proto: SubjectRulesReviewStatus: wiretype end group for non-group")
  8489  		}
  8490  		if fieldNum <= 0 {
  8491  			return fmt.Errorf("proto: SubjectRulesReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  8492  		}
  8493  		switch fieldNum {
  8494  		case 1:
  8495  			if wireType != 2 {
  8496  				return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  8497  			}
  8498  			var msglen int
  8499  			for shift := uint(0); ; shift += 7 {
  8500  				if shift >= 64 {
  8501  					return ErrIntOverflowGenerated
  8502  				}
  8503  				if iNdEx >= l {
  8504  					return io.ErrUnexpectedEOF
  8505  				}
  8506  				b := dAtA[iNdEx]
  8507  				iNdEx++
  8508  				msglen |= int(b&0x7F) << shift
  8509  				if b < 0x80 {
  8510  					break
  8511  				}
  8512  			}
  8513  			if msglen < 0 {
  8514  				return ErrInvalidLengthGenerated
  8515  			}
  8516  			postIndex := iNdEx + msglen
  8517  			if postIndex < 0 {
  8518  				return ErrInvalidLengthGenerated
  8519  			}
  8520  			if postIndex > l {
  8521  				return io.ErrUnexpectedEOF
  8522  			}
  8523  			m.Rules = append(m.Rules, PolicyRule{})
  8524  			if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8525  				return err
  8526  			}
  8527  			iNdEx = postIndex
  8528  		case 2:
  8529  			if wireType != 2 {
  8530  				return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType)
  8531  			}
  8532  			var stringLen uint64
  8533  			for shift := uint(0); ; shift += 7 {
  8534  				if shift >= 64 {
  8535  					return ErrIntOverflowGenerated
  8536  				}
  8537  				if iNdEx >= l {
  8538  					return io.ErrUnexpectedEOF
  8539  				}
  8540  				b := dAtA[iNdEx]
  8541  				iNdEx++
  8542  				stringLen |= uint64(b&0x7F) << shift
  8543  				if b < 0x80 {
  8544  					break
  8545  				}
  8546  			}
  8547  			intStringLen := int(stringLen)
  8548  			if intStringLen < 0 {
  8549  				return ErrInvalidLengthGenerated
  8550  			}
  8551  			postIndex := iNdEx + intStringLen
  8552  			if postIndex < 0 {
  8553  				return ErrInvalidLengthGenerated
  8554  			}
  8555  			if postIndex > l {
  8556  				return io.ErrUnexpectedEOF
  8557  			}
  8558  			m.EvaluationError = string(dAtA[iNdEx:postIndex])
  8559  			iNdEx = postIndex
  8560  		default:
  8561  			iNdEx = preIndex
  8562  			skippy, err := skipGenerated(dAtA[iNdEx:])
  8563  			if err != nil {
  8564  				return err
  8565  			}
  8566  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8567  				return ErrInvalidLengthGenerated
  8568  			}
  8569  			if (iNdEx + skippy) > l {
  8570  				return io.ErrUnexpectedEOF
  8571  			}
  8572  			iNdEx += skippy
  8573  		}
  8574  	}
  8575  
  8576  	if iNdEx > l {
  8577  		return io.ErrUnexpectedEOF
  8578  	}
  8579  	return nil
  8580  }
  8581  func (m *UserRestriction) Unmarshal(dAtA []byte) error {
  8582  	l := len(dAtA)
  8583  	iNdEx := 0
  8584  	for iNdEx < l {
  8585  		preIndex := iNdEx
  8586  		var wire uint64
  8587  		for shift := uint(0); ; shift += 7 {
  8588  			if shift >= 64 {
  8589  				return ErrIntOverflowGenerated
  8590  			}
  8591  			if iNdEx >= l {
  8592  				return io.ErrUnexpectedEOF
  8593  			}
  8594  			b := dAtA[iNdEx]
  8595  			iNdEx++
  8596  			wire |= uint64(b&0x7F) << shift
  8597  			if b < 0x80 {
  8598  				break
  8599  			}
  8600  		}
  8601  		fieldNum := int32(wire >> 3)
  8602  		wireType := int(wire & 0x7)
  8603  		if wireType == 4 {
  8604  			return fmt.Errorf("proto: UserRestriction: wiretype end group for non-group")
  8605  		}
  8606  		if fieldNum <= 0 {
  8607  			return fmt.Errorf("proto: UserRestriction: illegal tag %d (wire type %d)", fieldNum, wire)
  8608  		}
  8609  		switch fieldNum {
  8610  		case 1:
  8611  			if wireType != 2 {
  8612  				return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType)
  8613  			}
  8614  			var stringLen uint64
  8615  			for shift := uint(0); ; shift += 7 {
  8616  				if shift >= 64 {
  8617  					return ErrIntOverflowGenerated
  8618  				}
  8619  				if iNdEx >= l {
  8620  					return io.ErrUnexpectedEOF
  8621  				}
  8622  				b := dAtA[iNdEx]
  8623  				iNdEx++
  8624  				stringLen |= uint64(b&0x7F) << shift
  8625  				if b < 0x80 {
  8626  					break
  8627  				}
  8628  			}
  8629  			intStringLen := int(stringLen)
  8630  			if intStringLen < 0 {
  8631  				return ErrInvalidLengthGenerated
  8632  			}
  8633  			postIndex := iNdEx + intStringLen
  8634  			if postIndex < 0 {
  8635  				return ErrInvalidLengthGenerated
  8636  			}
  8637  			if postIndex > l {
  8638  				return io.ErrUnexpectedEOF
  8639  			}
  8640  			m.Users = append(m.Users, string(dAtA[iNdEx:postIndex]))
  8641  			iNdEx = postIndex
  8642  		case 2:
  8643  			if wireType != 2 {
  8644  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  8645  			}
  8646  			var stringLen uint64
  8647  			for shift := uint(0); ; shift += 7 {
  8648  				if shift >= 64 {
  8649  					return ErrIntOverflowGenerated
  8650  				}
  8651  				if iNdEx >= l {
  8652  					return io.ErrUnexpectedEOF
  8653  				}
  8654  				b := dAtA[iNdEx]
  8655  				iNdEx++
  8656  				stringLen |= uint64(b&0x7F) << shift
  8657  				if b < 0x80 {
  8658  					break
  8659  				}
  8660  			}
  8661  			intStringLen := int(stringLen)
  8662  			if intStringLen < 0 {
  8663  				return ErrInvalidLengthGenerated
  8664  			}
  8665  			postIndex := iNdEx + intStringLen
  8666  			if postIndex < 0 {
  8667  				return ErrInvalidLengthGenerated
  8668  			}
  8669  			if postIndex > l {
  8670  				return io.ErrUnexpectedEOF
  8671  			}
  8672  			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  8673  			iNdEx = postIndex
  8674  		case 3:
  8675  			if wireType != 2 {
  8676  				return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType)
  8677  			}
  8678  			var msglen int
  8679  			for shift := uint(0); ; shift += 7 {
  8680  				if shift >= 64 {
  8681  					return ErrIntOverflowGenerated
  8682  				}
  8683  				if iNdEx >= l {
  8684  					return io.ErrUnexpectedEOF
  8685  				}
  8686  				b := dAtA[iNdEx]
  8687  				iNdEx++
  8688  				msglen |= int(b&0x7F) << shift
  8689  				if b < 0x80 {
  8690  					break
  8691  				}
  8692  			}
  8693  			if msglen < 0 {
  8694  				return ErrInvalidLengthGenerated
  8695  			}
  8696  			postIndex := iNdEx + msglen
  8697  			if postIndex < 0 {
  8698  				return ErrInvalidLengthGenerated
  8699  			}
  8700  			if postIndex > l {
  8701  				return io.ErrUnexpectedEOF
  8702  			}
  8703  			m.Selectors = append(m.Selectors, v1.LabelSelector{})
  8704  			if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8705  				return err
  8706  			}
  8707  			iNdEx = postIndex
  8708  		default:
  8709  			iNdEx = preIndex
  8710  			skippy, err := skipGenerated(dAtA[iNdEx:])
  8711  			if err != nil {
  8712  				return err
  8713  			}
  8714  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8715  				return ErrInvalidLengthGenerated
  8716  			}
  8717  			if (iNdEx + skippy) > l {
  8718  				return io.ErrUnexpectedEOF
  8719  			}
  8720  			iNdEx += skippy
  8721  		}
  8722  	}
  8723  
  8724  	if iNdEx > l {
  8725  		return io.ErrUnexpectedEOF
  8726  	}
  8727  	return nil
  8728  }
  8729  func skipGenerated(dAtA []byte) (n int, err error) {
  8730  	l := len(dAtA)
  8731  	iNdEx := 0
  8732  	depth := 0
  8733  	for iNdEx < l {
  8734  		var wire uint64
  8735  		for shift := uint(0); ; shift += 7 {
  8736  			if shift >= 64 {
  8737  				return 0, ErrIntOverflowGenerated
  8738  			}
  8739  			if iNdEx >= l {
  8740  				return 0, io.ErrUnexpectedEOF
  8741  			}
  8742  			b := dAtA[iNdEx]
  8743  			iNdEx++
  8744  			wire |= (uint64(b) & 0x7F) << shift
  8745  			if b < 0x80 {
  8746  				break
  8747  			}
  8748  		}
  8749  		wireType := int(wire & 0x7)
  8750  		switch wireType {
  8751  		case 0:
  8752  			for shift := uint(0); ; shift += 7 {
  8753  				if shift >= 64 {
  8754  					return 0, ErrIntOverflowGenerated
  8755  				}
  8756  				if iNdEx >= l {
  8757  					return 0, io.ErrUnexpectedEOF
  8758  				}
  8759  				iNdEx++
  8760  				if dAtA[iNdEx-1] < 0x80 {
  8761  					break
  8762  				}
  8763  			}
  8764  		case 1:
  8765  			iNdEx += 8
  8766  		case 2:
  8767  			var length int
  8768  			for shift := uint(0); ; shift += 7 {
  8769  				if shift >= 64 {
  8770  					return 0, ErrIntOverflowGenerated
  8771  				}
  8772  				if iNdEx >= l {
  8773  					return 0, io.ErrUnexpectedEOF
  8774  				}
  8775  				b := dAtA[iNdEx]
  8776  				iNdEx++
  8777  				length |= (int(b) & 0x7F) << shift
  8778  				if b < 0x80 {
  8779  					break
  8780  				}
  8781  			}
  8782  			if length < 0 {
  8783  				return 0, ErrInvalidLengthGenerated
  8784  			}
  8785  			iNdEx += length
  8786  		case 3:
  8787  			depth++
  8788  		case 4:
  8789  			if depth == 0 {
  8790  				return 0, ErrUnexpectedEndOfGroupGenerated
  8791  			}
  8792  			depth--
  8793  		case 5:
  8794  			iNdEx += 4
  8795  		default:
  8796  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  8797  		}
  8798  		if iNdEx < 0 {
  8799  			return 0, ErrInvalidLengthGenerated
  8800  		}
  8801  		if depth == 0 {
  8802  			return iNdEx, nil
  8803  		}
  8804  	}
  8805  	return 0, io.ErrUnexpectedEOF
  8806  }
  8807  
  8808  var (
  8809  	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
  8810  	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
  8811  	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  8812  )
  8813  

View as plain text