2 Copyright The Kubernetes Authors.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 // Code generated by protoc-gen-gogo. DO NOT EDIT.
18 // source: k8s.io/kubernetes/vendor/k8s.io/api/rbac/v1beta1/generated.proto
21 Package v1beta1 is a generated protocol buffer package.
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/rbac/v1beta1/generated.proto
26 It has these top-level messages:
30 ClusterRoleBindingList
42 import proto "github.com/gogo/protobuf/proto"
46 import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
48 import strings "strings"
49 import reflect "reflect"
53 // Reference imports to suppress errors if they are not otherwise used.
58 // This is a compile-time assertion to ensure that this generated file
59 // is compatible with the proto package it is being compiled against.
60 // A compilation error at this line likely means your copy of the
61 // proto package needs to be updated.
62 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
64 func (m *AggregationRule) Reset() { *m = AggregationRule{} }
65 func (*AggregationRule) ProtoMessage() {}
66 func (*AggregationRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
68 func (m *ClusterRole) Reset() { *m = ClusterRole{} }
69 func (*ClusterRole) ProtoMessage() {}
70 func (*ClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
72 func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} }
73 func (*ClusterRoleBinding) ProtoMessage() {}
74 func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
76 func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} }
77 func (*ClusterRoleBindingList) ProtoMessage() {}
78 func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
80 func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} }
81 func (*ClusterRoleList) ProtoMessage() {}
82 func (*ClusterRoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
84 func (m *PolicyRule) Reset() { *m = PolicyRule{} }
85 func (*PolicyRule) ProtoMessage() {}
86 func (*PolicyRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
88 func (m *Role) Reset() { *m = Role{} }
89 func (*Role) ProtoMessage() {}
90 func (*Role) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
92 func (m *RoleBinding) Reset() { *m = RoleBinding{} }
93 func (*RoleBinding) ProtoMessage() {}
94 func (*RoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
96 func (m *RoleBindingList) Reset() { *m = RoleBindingList{} }
97 func (*RoleBindingList) ProtoMessage() {}
98 func (*RoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
100 func (m *RoleList) Reset() { *m = RoleList{} }
101 func (*RoleList) ProtoMessage() {}
102 func (*RoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
104 func (m *RoleRef) Reset() { *m = RoleRef{} }
105 func (*RoleRef) ProtoMessage() {}
106 func (*RoleRef) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
108 func (m *Subject) Reset() { *m = Subject{} }
109 func (*Subject) ProtoMessage() {}
110 func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
113 proto.RegisterType((*AggregationRule)(nil), "k8s.io.api.rbac.v1beta1.AggregationRule")
114 proto.RegisterType((*ClusterRole)(nil), "k8s.io.api.rbac.v1beta1.ClusterRole")
115 proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.api.rbac.v1beta1.ClusterRoleBinding")
116 proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.api.rbac.v1beta1.ClusterRoleBindingList")
117 proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.api.rbac.v1beta1.ClusterRoleList")
118 proto.RegisterType((*PolicyRule)(nil), "k8s.io.api.rbac.v1beta1.PolicyRule")
119 proto.RegisterType((*Role)(nil), "k8s.io.api.rbac.v1beta1.Role")
120 proto.RegisterType((*RoleBinding)(nil), "k8s.io.api.rbac.v1beta1.RoleBinding")
121 proto.RegisterType((*RoleBindingList)(nil), "k8s.io.api.rbac.v1beta1.RoleBindingList")
122 proto.RegisterType((*RoleList)(nil), "k8s.io.api.rbac.v1beta1.RoleList")
123 proto.RegisterType((*RoleRef)(nil), "k8s.io.api.rbac.v1beta1.RoleRef")
124 proto.RegisterType((*Subject)(nil), "k8s.io.api.rbac.v1beta1.Subject")
126 func (m *AggregationRule) Marshal() (dAtA []byte, err error) {
128 dAtA = make([]byte, size)
129 n, err := m.MarshalTo(dAtA)
136 func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error) {
141 if len(m.ClusterRoleSelectors) > 0 {
142 for _, msg := range m.ClusterRoleSelectors {
145 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
146 n, err := msg.MarshalTo(dAtA[i:])
156 func (m *ClusterRole) Marshal() (dAtA []byte, err error) {
158 dAtA = make([]byte, size)
159 n, err := m.MarshalTo(dAtA)
166 func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) {
173 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
174 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
179 if len(m.Rules) > 0 {
180 for _, msg := range m.Rules {
183 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
184 n, err := msg.MarshalTo(dAtA[i:])
191 if m.AggregationRule != nil {
194 i = encodeVarintGenerated(dAtA, i, uint64(m.AggregationRule.Size()))
195 n2, err := m.AggregationRule.MarshalTo(dAtA[i:])
204 func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) {
206 dAtA = make([]byte, size)
207 n, err := m.MarshalTo(dAtA)
214 func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) {
221 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
222 n3, err := m.ObjectMeta.MarshalTo(dAtA[i:])
227 if len(m.Subjects) > 0 {
228 for _, msg := range m.Subjects {
231 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
232 n, err := msg.MarshalTo(dAtA[i:])
241 i = encodeVarintGenerated(dAtA, i, uint64(m.RoleRef.Size()))
242 n4, err := m.RoleRef.MarshalTo(dAtA[i:])
250 func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) {
252 dAtA = make([]byte, size)
253 n, err := m.MarshalTo(dAtA)
260 func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) {
267 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
268 n5, err := m.ListMeta.MarshalTo(dAtA[i:])
273 if len(m.Items) > 0 {
274 for _, msg := range m.Items {
277 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
278 n, err := msg.MarshalTo(dAtA[i:])
288 func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) {
290 dAtA = make([]byte, size)
291 n, err := m.MarshalTo(dAtA)
298 func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) {
305 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
306 n6, err := m.ListMeta.MarshalTo(dAtA[i:])
311 if len(m.Items) > 0 {
312 for _, msg := range m.Items {
315 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
316 n, err := msg.MarshalTo(dAtA[i:])
326 func (m *PolicyRule) Marshal() (dAtA []byte, err error) {
328 dAtA = make([]byte, size)
329 n, err := m.MarshalTo(dAtA)
336 func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) {
341 if len(m.Verbs) > 0 {
342 for _, s := range m.Verbs {
347 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
353 i += copy(dAtA[i:], s)
356 if len(m.APIGroups) > 0 {
357 for _, s := range m.APIGroups {
362 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
368 i += copy(dAtA[i:], s)
371 if len(m.Resources) > 0 {
372 for _, s := range m.Resources {
377 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
383 i += copy(dAtA[i:], s)
386 if len(m.ResourceNames) > 0 {
387 for _, s := range m.ResourceNames {
392 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
398 i += copy(dAtA[i:], s)
401 if len(m.NonResourceURLs) > 0 {
402 for _, s := range m.NonResourceURLs {
407 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
413 i += copy(dAtA[i:], s)
419 func (m *Role) Marshal() (dAtA []byte, err error) {
421 dAtA = make([]byte, size)
422 n, err := m.MarshalTo(dAtA)
429 func (m *Role) MarshalTo(dAtA []byte) (int, error) {
436 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
437 n7, err := m.ObjectMeta.MarshalTo(dAtA[i:])
442 if len(m.Rules) > 0 {
443 for _, msg := range m.Rules {
446 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
447 n, err := msg.MarshalTo(dAtA[i:])
457 func (m *RoleBinding) Marshal() (dAtA []byte, err error) {
459 dAtA = make([]byte, size)
460 n, err := m.MarshalTo(dAtA)
467 func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) {
474 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
475 n8, err := m.ObjectMeta.MarshalTo(dAtA[i:])
480 if len(m.Subjects) > 0 {
481 for _, msg := range m.Subjects {
484 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
485 n, err := msg.MarshalTo(dAtA[i:])
494 i = encodeVarintGenerated(dAtA, i, uint64(m.RoleRef.Size()))
495 n9, err := m.RoleRef.MarshalTo(dAtA[i:])
503 func (m *RoleBindingList) Marshal() (dAtA []byte, err error) {
505 dAtA = make([]byte, size)
506 n, err := m.MarshalTo(dAtA)
513 func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) {
520 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
521 n10, err := m.ListMeta.MarshalTo(dAtA[i:])
526 if len(m.Items) > 0 {
527 for _, msg := range m.Items {
530 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
531 n, err := msg.MarshalTo(dAtA[i:])
541 func (m *RoleList) Marshal() (dAtA []byte, err error) {
543 dAtA = make([]byte, size)
544 n, err := m.MarshalTo(dAtA)
551 func (m *RoleList) MarshalTo(dAtA []byte) (int, error) {
558 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
559 n11, err := m.ListMeta.MarshalTo(dAtA[i:])
564 if len(m.Items) > 0 {
565 for _, msg := range m.Items {
568 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
569 n, err := msg.MarshalTo(dAtA[i:])
579 func (m *RoleRef) Marshal() (dAtA []byte, err error) {
581 dAtA = make([]byte, size)
582 n, err := m.MarshalTo(dAtA)
589 func (m *RoleRef) MarshalTo(dAtA []byte) (int, error) {
596 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
597 i += copy(dAtA[i:], m.APIGroup)
600 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
601 i += copy(dAtA[i:], m.Kind)
604 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
605 i += copy(dAtA[i:], m.Name)
609 func (m *Subject) Marshal() (dAtA []byte, err error) {
611 dAtA = make([]byte, size)
612 n, err := m.MarshalTo(dAtA)
619 func (m *Subject) MarshalTo(dAtA []byte) (int, error) {
626 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
627 i += copy(dAtA[i:], m.Kind)
630 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
631 i += copy(dAtA[i:], m.APIGroup)
634 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
635 i += copy(dAtA[i:], m.Name)
638 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
639 i += copy(dAtA[i:], m.Namespace)
643 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
645 dAtA[offset] = uint8(v&0x7f | 0x80)
649 dAtA[offset] = uint8(v)
652 func (m *AggregationRule) Size() (n int) {
655 if len(m.ClusterRoleSelectors) > 0 {
656 for _, e := range m.ClusterRoleSelectors {
658 n += 1 + l + sovGenerated(uint64(l))
664 func (m *ClusterRole) Size() (n int) {
667 l = m.ObjectMeta.Size()
668 n += 1 + l + sovGenerated(uint64(l))
669 if len(m.Rules) > 0 {
670 for _, e := range m.Rules {
672 n += 1 + l + sovGenerated(uint64(l))
675 if m.AggregationRule != nil {
676 l = m.AggregationRule.Size()
677 n += 1 + l + sovGenerated(uint64(l))
682 func (m *ClusterRoleBinding) Size() (n int) {
685 l = m.ObjectMeta.Size()
686 n += 1 + l + sovGenerated(uint64(l))
687 if len(m.Subjects) > 0 {
688 for _, e := range m.Subjects {
690 n += 1 + l + sovGenerated(uint64(l))
694 n += 1 + l + sovGenerated(uint64(l))
698 func (m *ClusterRoleBindingList) Size() (n int) {
701 l = m.ListMeta.Size()
702 n += 1 + l + sovGenerated(uint64(l))
703 if len(m.Items) > 0 {
704 for _, e := range m.Items {
706 n += 1 + l + sovGenerated(uint64(l))
712 func (m *ClusterRoleList) Size() (n int) {
715 l = m.ListMeta.Size()
716 n += 1 + l + sovGenerated(uint64(l))
717 if len(m.Items) > 0 {
718 for _, e := range m.Items {
720 n += 1 + l + sovGenerated(uint64(l))
726 func (m *PolicyRule) Size() (n int) {
729 if len(m.Verbs) > 0 {
730 for _, s := range m.Verbs {
732 n += 1 + l + sovGenerated(uint64(l))
735 if len(m.APIGroups) > 0 {
736 for _, s := range m.APIGroups {
738 n += 1 + l + sovGenerated(uint64(l))
741 if len(m.Resources) > 0 {
742 for _, s := range m.Resources {
744 n += 1 + l + sovGenerated(uint64(l))
747 if len(m.ResourceNames) > 0 {
748 for _, s := range m.ResourceNames {
750 n += 1 + l + sovGenerated(uint64(l))
753 if len(m.NonResourceURLs) > 0 {
754 for _, s := range m.NonResourceURLs {
756 n += 1 + l + sovGenerated(uint64(l))
762 func (m *Role) Size() (n int) {
765 l = m.ObjectMeta.Size()
766 n += 1 + l + sovGenerated(uint64(l))
767 if len(m.Rules) > 0 {
768 for _, e := range m.Rules {
770 n += 1 + l + sovGenerated(uint64(l))
776 func (m *RoleBinding) Size() (n int) {
779 l = m.ObjectMeta.Size()
780 n += 1 + l + sovGenerated(uint64(l))
781 if len(m.Subjects) > 0 {
782 for _, e := range m.Subjects {
784 n += 1 + l + sovGenerated(uint64(l))
788 n += 1 + l + sovGenerated(uint64(l))
792 func (m *RoleBindingList) Size() (n int) {
795 l = m.ListMeta.Size()
796 n += 1 + l + sovGenerated(uint64(l))
797 if len(m.Items) > 0 {
798 for _, e := range m.Items {
800 n += 1 + l + sovGenerated(uint64(l))
806 func (m *RoleList) Size() (n int) {
809 l = m.ListMeta.Size()
810 n += 1 + l + sovGenerated(uint64(l))
811 if len(m.Items) > 0 {
812 for _, e := range m.Items {
814 n += 1 + l + sovGenerated(uint64(l))
820 func (m *RoleRef) Size() (n int) {
824 n += 1 + l + sovGenerated(uint64(l))
826 n += 1 + l + sovGenerated(uint64(l))
828 n += 1 + l + sovGenerated(uint64(l))
832 func (m *Subject) Size() (n int) {
836 n += 1 + l + sovGenerated(uint64(l))
838 n += 1 + l + sovGenerated(uint64(l))
840 n += 1 + l + sovGenerated(uint64(l))
842 n += 1 + l + sovGenerated(uint64(l))
846 func sovGenerated(x uint64) (n int) {
856 func sozGenerated(x uint64) (n int) {
857 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
859 func (this *AggregationRule) String() string {
863 s := strings.Join([]string{`&AggregationRule{`,
864 `ClusterRoleSelectors:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ClusterRoleSelectors), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`,
869 func (this *ClusterRole) String() string {
873 s := strings.Join([]string{`&ClusterRole{`,
874 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
875 `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`,
876 `AggregationRule:` + strings.Replace(fmt.Sprintf("%v", this.AggregationRule), "AggregationRule", "AggregationRule", 1) + `,`,
881 func (this *ClusterRoleBinding) String() string {
885 s := strings.Join([]string{`&ClusterRoleBinding{`,
886 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
887 `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "Subject", "Subject", 1), `&`, ``, 1) + `,`,
888 `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`,
893 func (this *ClusterRoleBindingList) String() string {
897 s := strings.Join([]string{`&ClusterRoleBindingList{`,
898 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
899 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + `,`,
904 func (this *ClusterRoleList) String() string {
908 s := strings.Join([]string{`&ClusterRoleList{`,
909 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
910 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + `,`,
915 func (this *PolicyRule) String() string {
919 s := strings.Join([]string{`&PolicyRule{`,
920 `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`,
921 `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
922 `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
923 `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`,
924 `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`,
929 func (this *Role) String() string {
933 s := strings.Join([]string{`&Role{`,
934 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
935 `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`,
940 func (this *RoleBinding) String() string {
944 s := strings.Join([]string{`&RoleBinding{`,
945 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
946 `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "Subject", "Subject", 1), `&`, ``, 1) + `,`,
947 `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`,
952 func (this *RoleBindingList) String() string {
956 s := strings.Join([]string{`&RoleBindingList{`,
957 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
958 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + `,`,
963 func (this *RoleList) String() string {
967 s := strings.Join([]string{`&RoleList{`,
968 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
969 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Role", "Role", 1), `&`, ``, 1) + `,`,
974 func (this *RoleRef) String() string {
978 s := strings.Join([]string{`&RoleRef{`,
979 `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
980 `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
981 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
986 func (this *Subject) String() string {
990 s := strings.Join([]string{`&Subject{`,
991 `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
992 `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
993 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
994 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
999 func valueToStringGenerated(v interface{}) string {
1000 rv := reflect.ValueOf(v)
1004 pv := reflect.Indirect(rv).Interface()
1005 return fmt.Sprintf("*%v", pv)
1007 func (m *AggregationRule) Unmarshal(dAtA []byte) error {
1013 for shift := uint(0); ; shift += 7 {
1015 return ErrIntOverflowGenerated
1018 return io.ErrUnexpectedEOF
1022 wire |= (uint64(b) & 0x7F) << shift
1027 fieldNum := int32(wire >> 3)
1028 wireType := int(wire & 0x7)
1030 return fmt.Errorf("proto: AggregationRule: wiretype end group for non-group")
1033 return fmt.Errorf("proto: AggregationRule: illegal tag %d (wire type %d)", fieldNum, wire)
1038 return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleSelectors", wireType)
1041 for shift := uint(0); ; shift += 7 {
1043 return ErrIntOverflowGenerated
1046 return io.ErrUnexpectedEOF
1050 msglen |= (int(b) & 0x7F) << shift
1056 return ErrInvalidLengthGenerated
1058 postIndex := iNdEx + msglen
1060 return io.ErrUnexpectedEOF
1062 m.ClusterRoleSelectors = append(m.ClusterRoleSelectors, k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{})
1063 if err := m.ClusterRoleSelectors[len(m.ClusterRoleSelectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1069 skippy, err := skipGenerated(dAtA[iNdEx:])
1074 return ErrInvalidLengthGenerated
1076 if (iNdEx + skippy) > l {
1077 return io.ErrUnexpectedEOF
1084 return io.ErrUnexpectedEOF
1088 func (m *ClusterRole) Unmarshal(dAtA []byte) error {
1094 for shift := uint(0); ; shift += 7 {
1096 return ErrIntOverflowGenerated
1099 return io.ErrUnexpectedEOF
1103 wire |= (uint64(b) & 0x7F) << shift
1108 fieldNum := int32(wire >> 3)
1109 wireType := int(wire & 0x7)
1111 return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group")
1114 return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire)
1119 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1122 for shift := uint(0); ; shift += 7 {
1124 return ErrIntOverflowGenerated
1127 return io.ErrUnexpectedEOF
1131 msglen |= (int(b) & 0x7F) << shift
1137 return ErrInvalidLengthGenerated
1139 postIndex := iNdEx + msglen
1141 return io.ErrUnexpectedEOF
1143 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1149 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
1152 for shift := uint(0); ; shift += 7 {
1154 return ErrIntOverflowGenerated
1157 return io.ErrUnexpectedEOF
1161 msglen |= (int(b) & 0x7F) << shift
1167 return ErrInvalidLengthGenerated
1169 postIndex := iNdEx + msglen
1171 return io.ErrUnexpectedEOF
1173 m.Rules = append(m.Rules, PolicyRule{})
1174 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1180 return fmt.Errorf("proto: wrong wireType = %d for field AggregationRule", wireType)
1183 for shift := uint(0); ; shift += 7 {
1185 return ErrIntOverflowGenerated
1188 return io.ErrUnexpectedEOF
1192 msglen |= (int(b) & 0x7F) << shift
1198 return ErrInvalidLengthGenerated
1200 postIndex := iNdEx + msglen
1202 return io.ErrUnexpectedEOF
1204 if m.AggregationRule == nil {
1205 m.AggregationRule = &AggregationRule{}
1207 if err := m.AggregationRule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1213 skippy, err := skipGenerated(dAtA[iNdEx:])
1218 return ErrInvalidLengthGenerated
1220 if (iNdEx + skippy) > l {
1221 return io.ErrUnexpectedEOF
1228 return io.ErrUnexpectedEOF
1232 func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error {
1238 for shift := uint(0); ; shift += 7 {
1240 return ErrIntOverflowGenerated
1243 return io.ErrUnexpectedEOF
1247 wire |= (uint64(b) & 0x7F) << shift
1252 fieldNum := int32(wire >> 3)
1253 wireType := int(wire & 0x7)
1255 return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group")
1258 return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
1263 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1266 for shift := uint(0); ; shift += 7 {
1268 return ErrIntOverflowGenerated
1271 return io.ErrUnexpectedEOF
1275 msglen |= (int(b) & 0x7F) << shift
1281 return ErrInvalidLengthGenerated
1283 postIndex := iNdEx + msglen
1285 return io.ErrUnexpectedEOF
1287 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1293 return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
1296 for shift := uint(0); ; shift += 7 {
1298 return ErrIntOverflowGenerated
1301 return io.ErrUnexpectedEOF
1305 msglen |= (int(b) & 0x7F) << shift
1311 return ErrInvalidLengthGenerated
1313 postIndex := iNdEx + msglen
1315 return io.ErrUnexpectedEOF
1317 m.Subjects = append(m.Subjects, Subject{})
1318 if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1324 return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType)
1327 for shift := uint(0); ; shift += 7 {
1329 return ErrIntOverflowGenerated
1332 return io.ErrUnexpectedEOF
1336 msglen |= (int(b) & 0x7F) << shift
1342 return ErrInvalidLengthGenerated
1344 postIndex := iNdEx + msglen
1346 return io.ErrUnexpectedEOF
1348 if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1354 skippy, err := skipGenerated(dAtA[iNdEx:])
1359 return ErrInvalidLengthGenerated
1361 if (iNdEx + skippy) > l {
1362 return io.ErrUnexpectedEOF
1369 return io.ErrUnexpectedEOF
1373 func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error {
1379 for shift := uint(0); ; shift += 7 {
1381 return ErrIntOverflowGenerated
1384 return io.ErrUnexpectedEOF
1388 wire |= (uint64(b) & 0x7F) << shift
1393 fieldNum := int32(wire >> 3)
1394 wireType := int(wire & 0x7)
1396 return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group")
1399 return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire)
1404 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1407 for shift := uint(0); ; shift += 7 {
1409 return ErrIntOverflowGenerated
1412 return io.ErrUnexpectedEOF
1416 msglen |= (int(b) & 0x7F) << shift
1422 return ErrInvalidLengthGenerated
1424 postIndex := iNdEx + msglen
1426 return io.ErrUnexpectedEOF
1428 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1434 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1437 for shift := uint(0); ; shift += 7 {
1439 return ErrIntOverflowGenerated
1442 return io.ErrUnexpectedEOF
1446 msglen |= (int(b) & 0x7F) << shift
1452 return ErrInvalidLengthGenerated
1454 postIndex := iNdEx + msglen
1456 return io.ErrUnexpectedEOF
1458 m.Items = append(m.Items, ClusterRoleBinding{})
1459 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1465 skippy, err := skipGenerated(dAtA[iNdEx:])
1470 return ErrInvalidLengthGenerated
1472 if (iNdEx + skippy) > l {
1473 return io.ErrUnexpectedEOF
1480 return io.ErrUnexpectedEOF
1484 func (m *ClusterRoleList) Unmarshal(dAtA []byte) error {
1490 for shift := uint(0); ; shift += 7 {
1492 return ErrIntOverflowGenerated
1495 return io.ErrUnexpectedEOF
1499 wire |= (uint64(b) & 0x7F) << shift
1504 fieldNum := int32(wire >> 3)
1505 wireType := int(wire & 0x7)
1507 return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group")
1510 return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire)
1515 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1518 for shift := uint(0); ; shift += 7 {
1520 return ErrIntOverflowGenerated
1523 return io.ErrUnexpectedEOF
1527 msglen |= (int(b) & 0x7F) << shift
1533 return ErrInvalidLengthGenerated
1535 postIndex := iNdEx + msglen
1537 return io.ErrUnexpectedEOF
1539 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1545 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1548 for shift := uint(0); ; shift += 7 {
1550 return ErrIntOverflowGenerated
1553 return io.ErrUnexpectedEOF
1557 msglen |= (int(b) & 0x7F) << shift
1563 return ErrInvalidLengthGenerated
1565 postIndex := iNdEx + msglen
1567 return io.ErrUnexpectedEOF
1569 m.Items = append(m.Items, ClusterRole{})
1570 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1576 skippy, err := skipGenerated(dAtA[iNdEx:])
1581 return ErrInvalidLengthGenerated
1583 if (iNdEx + skippy) > l {
1584 return io.ErrUnexpectedEOF
1591 return io.ErrUnexpectedEOF
1595 func (m *PolicyRule) Unmarshal(dAtA []byte) error {
1601 for shift := uint(0); ; shift += 7 {
1603 return ErrIntOverflowGenerated
1606 return io.ErrUnexpectedEOF
1610 wire |= (uint64(b) & 0x7F) << shift
1615 fieldNum := int32(wire >> 3)
1616 wireType := int(wire & 0x7)
1618 return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group")
1621 return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
1626 return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
1628 var stringLen uint64
1629 for shift := uint(0); ; shift += 7 {
1631 return ErrIntOverflowGenerated
1634 return io.ErrUnexpectedEOF
1638 stringLen |= (uint64(b) & 0x7F) << shift
1643 intStringLen := int(stringLen)
1644 if intStringLen < 0 {
1645 return ErrInvalidLengthGenerated
1647 postIndex := iNdEx + intStringLen
1649 return io.ErrUnexpectedEOF
1651 m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
1655 return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
1657 var stringLen uint64
1658 for shift := uint(0); ; shift += 7 {
1660 return ErrIntOverflowGenerated
1663 return io.ErrUnexpectedEOF
1667 stringLen |= (uint64(b) & 0x7F) << shift
1672 intStringLen := int(stringLen)
1673 if intStringLen < 0 {
1674 return ErrInvalidLengthGenerated
1676 postIndex := iNdEx + intStringLen
1678 return io.ErrUnexpectedEOF
1680 m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
1684 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
1686 var stringLen uint64
1687 for shift := uint(0); ; shift += 7 {
1689 return ErrIntOverflowGenerated
1692 return io.ErrUnexpectedEOF
1696 stringLen |= (uint64(b) & 0x7F) << shift
1701 intStringLen := int(stringLen)
1702 if intStringLen < 0 {
1703 return ErrInvalidLengthGenerated
1705 postIndex := iNdEx + intStringLen
1707 return io.ErrUnexpectedEOF
1709 m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
1713 return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType)
1715 var stringLen uint64
1716 for shift := uint(0); ; shift += 7 {
1718 return ErrIntOverflowGenerated
1721 return io.ErrUnexpectedEOF
1725 stringLen |= (uint64(b) & 0x7F) << shift
1730 intStringLen := int(stringLen)
1731 if intStringLen < 0 {
1732 return ErrInvalidLengthGenerated
1734 postIndex := iNdEx + intStringLen
1736 return io.ErrUnexpectedEOF
1738 m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex]))
1742 return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType)
1744 var stringLen uint64
1745 for shift := uint(0); ; shift += 7 {
1747 return ErrIntOverflowGenerated
1750 return io.ErrUnexpectedEOF
1754 stringLen |= (uint64(b) & 0x7F) << shift
1759 intStringLen := int(stringLen)
1760 if intStringLen < 0 {
1761 return ErrInvalidLengthGenerated
1763 postIndex := iNdEx + intStringLen
1765 return io.ErrUnexpectedEOF
1767 m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex]))
1771 skippy, err := skipGenerated(dAtA[iNdEx:])
1776 return ErrInvalidLengthGenerated
1778 if (iNdEx + skippy) > l {
1779 return io.ErrUnexpectedEOF
1786 return io.ErrUnexpectedEOF
1790 func (m *Role) Unmarshal(dAtA []byte) error {
1796 for shift := uint(0); ; shift += 7 {
1798 return ErrIntOverflowGenerated
1801 return io.ErrUnexpectedEOF
1805 wire |= (uint64(b) & 0x7F) << shift
1810 fieldNum := int32(wire >> 3)
1811 wireType := int(wire & 0x7)
1813 return fmt.Errorf("proto: Role: wiretype end group for non-group")
1816 return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire)
1821 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1824 for shift := uint(0); ; shift += 7 {
1826 return ErrIntOverflowGenerated
1829 return io.ErrUnexpectedEOF
1833 msglen |= (int(b) & 0x7F) << shift
1839 return ErrInvalidLengthGenerated
1841 postIndex := iNdEx + msglen
1843 return io.ErrUnexpectedEOF
1845 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1851 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
1854 for shift := uint(0); ; shift += 7 {
1856 return ErrIntOverflowGenerated
1859 return io.ErrUnexpectedEOF
1863 msglen |= (int(b) & 0x7F) << shift
1869 return ErrInvalidLengthGenerated
1871 postIndex := iNdEx + msglen
1873 return io.ErrUnexpectedEOF
1875 m.Rules = append(m.Rules, PolicyRule{})
1876 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1882 skippy, err := skipGenerated(dAtA[iNdEx:])
1887 return ErrInvalidLengthGenerated
1889 if (iNdEx + skippy) > l {
1890 return io.ErrUnexpectedEOF
1897 return io.ErrUnexpectedEOF
1901 func (m *RoleBinding) Unmarshal(dAtA []byte) error {
1907 for shift := uint(0); ; shift += 7 {
1909 return ErrIntOverflowGenerated
1912 return io.ErrUnexpectedEOF
1916 wire |= (uint64(b) & 0x7F) << shift
1921 fieldNum := int32(wire >> 3)
1922 wireType := int(wire & 0x7)
1924 return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group")
1927 return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
1932 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1935 for shift := uint(0); ; shift += 7 {
1937 return ErrIntOverflowGenerated
1940 return io.ErrUnexpectedEOF
1944 msglen |= (int(b) & 0x7F) << shift
1950 return ErrInvalidLengthGenerated
1952 postIndex := iNdEx + msglen
1954 return io.ErrUnexpectedEOF
1956 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1962 return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
1965 for shift := uint(0); ; shift += 7 {
1967 return ErrIntOverflowGenerated
1970 return io.ErrUnexpectedEOF
1974 msglen |= (int(b) & 0x7F) << shift
1980 return ErrInvalidLengthGenerated
1982 postIndex := iNdEx + msglen
1984 return io.ErrUnexpectedEOF
1986 m.Subjects = append(m.Subjects, Subject{})
1987 if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1993 return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType)
1996 for shift := uint(0); ; shift += 7 {
1998 return ErrIntOverflowGenerated
2001 return io.ErrUnexpectedEOF
2005 msglen |= (int(b) & 0x7F) << shift
2011 return ErrInvalidLengthGenerated
2013 postIndex := iNdEx + msglen
2015 return io.ErrUnexpectedEOF
2017 if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2023 skippy, err := skipGenerated(dAtA[iNdEx:])
2028 return ErrInvalidLengthGenerated
2030 if (iNdEx + skippy) > l {
2031 return io.ErrUnexpectedEOF
2038 return io.ErrUnexpectedEOF
2042 func (m *RoleBindingList) Unmarshal(dAtA []byte) error {
2048 for shift := uint(0); ; shift += 7 {
2050 return ErrIntOverflowGenerated
2053 return io.ErrUnexpectedEOF
2057 wire |= (uint64(b) & 0x7F) << shift
2062 fieldNum := int32(wire >> 3)
2063 wireType := int(wire & 0x7)
2065 return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group")
2068 return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire)
2073 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
2076 for shift := uint(0); ; shift += 7 {
2078 return ErrIntOverflowGenerated
2081 return io.ErrUnexpectedEOF
2085 msglen |= (int(b) & 0x7F) << shift
2091 return ErrInvalidLengthGenerated
2093 postIndex := iNdEx + msglen
2095 return io.ErrUnexpectedEOF
2097 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2103 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
2106 for shift := uint(0); ; shift += 7 {
2108 return ErrIntOverflowGenerated
2111 return io.ErrUnexpectedEOF
2115 msglen |= (int(b) & 0x7F) << shift
2121 return ErrInvalidLengthGenerated
2123 postIndex := iNdEx + msglen
2125 return io.ErrUnexpectedEOF
2127 m.Items = append(m.Items, RoleBinding{})
2128 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2134 skippy, err := skipGenerated(dAtA[iNdEx:])
2139 return ErrInvalidLengthGenerated
2141 if (iNdEx + skippy) > l {
2142 return io.ErrUnexpectedEOF
2149 return io.ErrUnexpectedEOF
2153 func (m *RoleList) Unmarshal(dAtA []byte) error {
2159 for shift := uint(0); ; shift += 7 {
2161 return ErrIntOverflowGenerated
2164 return io.ErrUnexpectedEOF
2168 wire |= (uint64(b) & 0x7F) << shift
2173 fieldNum := int32(wire >> 3)
2174 wireType := int(wire & 0x7)
2176 return fmt.Errorf("proto: RoleList: wiretype end group for non-group")
2179 return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire)
2184 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
2187 for shift := uint(0); ; shift += 7 {
2189 return ErrIntOverflowGenerated
2192 return io.ErrUnexpectedEOF
2196 msglen |= (int(b) & 0x7F) << shift
2202 return ErrInvalidLengthGenerated
2204 postIndex := iNdEx + msglen
2206 return io.ErrUnexpectedEOF
2208 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2214 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
2217 for shift := uint(0); ; shift += 7 {
2219 return ErrIntOverflowGenerated
2222 return io.ErrUnexpectedEOF
2226 msglen |= (int(b) & 0x7F) << shift
2232 return ErrInvalidLengthGenerated
2234 postIndex := iNdEx + msglen
2236 return io.ErrUnexpectedEOF
2238 m.Items = append(m.Items, Role{})
2239 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2245 skippy, err := skipGenerated(dAtA[iNdEx:])
2250 return ErrInvalidLengthGenerated
2252 if (iNdEx + skippy) > l {
2253 return io.ErrUnexpectedEOF
2260 return io.ErrUnexpectedEOF
2264 func (m *RoleRef) Unmarshal(dAtA []byte) error {
2270 for shift := uint(0); ; shift += 7 {
2272 return ErrIntOverflowGenerated
2275 return io.ErrUnexpectedEOF
2279 wire |= (uint64(b) & 0x7F) << shift
2284 fieldNum := int32(wire >> 3)
2285 wireType := int(wire & 0x7)
2287 return fmt.Errorf("proto: RoleRef: wiretype end group for non-group")
2290 return fmt.Errorf("proto: RoleRef: illegal tag %d (wire type %d)", fieldNum, wire)
2295 return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
2297 var stringLen uint64
2298 for shift := uint(0); ; shift += 7 {
2300 return ErrIntOverflowGenerated
2303 return io.ErrUnexpectedEOF
2307 stringLen |= (uint64(b) & 0x7F) << shift
2312 intStringLen := int(stringLen)
2313 if intStringLen < 0 {
2314 return ErrInvalidLengthGenerated
2316 postIndex := iNdEx + intStringLen
2318 return io.ErrUnexpectedEOF
2320 m.APIGroup = string(dAtA[iNdEx:postIndex])
2324 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
2326 var stringLen uint64
2327 for shift := uint(0); ; shift += 7 {
2329 return ErrIntOverflowGenerated
2332 return io.ErrUnexpectedEOF
2336 stringLen |= (uint64(b) & 0x7F) << shift
2341 intStringLen := int(stringLen)
2342 if intStringLen < 0 {
2343 return ErrInvalidLengthGenerated
2345 postIndex := iNdEx + intStringLen
2347 return io.ErrUnexpectedEOF
2349 m.Kind = string(dAtA[iNdEx:postIndex])
2353 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2355 var stringLen uint64
2356 for shift := uint(0); ; shift += 7 {
2358 return ErrIntOverflowGenerated
2361 return io.ErrUnexpectedEOF
2365 stringLen |= (uint64(b) & 0x7F) << shift
2370 intStringLen := int(stringLen)
2371 if intStringLen < 0 {
2372 return ErrInvalidLengthGenerated
2374 postIndex := iNdEx + intStringLen
2376 return io.ErrUnexpectedEOF
2378 m.Name = string(dAtA[iNdEx:postIndex])
2382 skippy, err := skipGenerated(dAtA[iNdEx:])
2387 return ErrInvalidLengthGenerated
2389 if (iNdEx + skippy) > l {
2390 return io.ErrUnexpectedEOF
2397 return io.ErrUnexpectedEOF
2401 func (m *Subject) Unmarshal(dAtA []byte) error {
2407 for shift := uint(0); ; shift += 7 {
2409 return ErrIntOverflowGenerated
2412 return io.ErrUnexpectedEOF
2416 wire |= (uint64(b) & 0x7F) << shift
2421 fieldNum := int32(wire >> 3)
2422 wireType := int(wire & 0x7)
2424 return fmt.Errorf("proto: Subject: wiretype end group for non-group")
2427 return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire)
2432 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
2434 var stringLen uint64
2435 for shift := uint(0); ; shift += 7 {
2437 return ErrIntOverflowGenerated
2440 return io.ErrUnexpectedEOF
2444 stringLen |= (uint64(b) & 0x7F) << shift
2449 intStringLen := int(stringLen)
2450 if intStringLen < 0 {
2451 return ErrInvalidLengthGenerated
2453 postIndex := iNdEx + intStringLen
2455 return io.ErrUnexpectedEOF
2457 m.Kind = string(dAtA[iNdEx:postIndex])
2461 return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
2463 var stringLen uint64
2464 for shift := uint(0); ; shift += 7 {
2466 return ErrIntOverflowGenerated
2469 return io.ErrUnexpectedEOF
2473 stringLen |= (uint64(b) & 0x7F) << shift
2478 intStringLen := int(stringLen)
2479 if intStringLen < 0 {
2480 return ErrInvalidLengthGenerated
2482 postIndex := iNdEx + intStringLen
2484 return io.ErrUnexpectedEOF
2486 m.APIGroup = string(dAtA[iNdEx:postIndex])
2490 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2492 var stringLen uint64
2493 for shift := uint(0); ; shift += 7 {
2495 return ErrIntOverflowGenerated
2498 return io.ErrUnexpectedEOF
2502 stringLen |= (uint64(b) & 0x7F) << shift
2507 intStringLen := int(stringLen)
2508 if intStringLen < 0 {
2509 return ErrInvalidLengthGenerated
2511 postIndex := iNdEx + intStringLen
2513 return io.ErrUnexpectedEOF
2515 m.Name = string(dAtA[iNdEx:postIndex])
2519 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
2521 var stringLen uint64
2522 for shift := uint(0); ; shift += 7 {
2524 return ErrIntOverflowGenerated
2527 return io.ErrUnexpectedEOF
2531 stringLen |= (uint64(b) & 0x7F) << shift
2536 intStringLen := int(stringLen)
2537 if intStringLen < 0 {
2538 return ErrInvalidLengthGenerated
2540 postIndex := iNdEx + intStringLen
2542 return io.ErrUnexpectedEOF
2544 m.Namespace = string(dAtA[iNdEx:postIndex])
2548 skippy, err := skipGenerated(dAtA[iNdEx:])
2553 return ErrInvalidLengthGenerated
2555 if (iNdEx + skippy) > l {
2556 return io.ErrUnexpectedEOF
2563 return io.ErrUnexpectedEOF
2567 func skipGenerated(dAtA []byte) (n int, err error) {
2572 for shift := uint(0); ; shift += 7 {
2574 return 0, ErrIntOverflowGenerated
2577 return 0, io.ErrUnexpectedEOF
2581 wire |= (uint64(b) & 0x7F) << shift
2586 wireType := int(wire & 0x7)
2589 for shift := uint(0); ; shift += 7 {
2591 return 0, ErrIntOverflowGenerated
2594 return 0, io.ErrUnexpectedEOF
2597 if dAtA[iNdEx-1] < 0x80 {
2607 for shift := uint(0); ; shift += 7 {
2609 return 0, ErrIntOverflowGenerated
2612 return 0, io.ErrUnexpectedEOF
2616 length |= (int(b) & 0x7F) << shift
2623 return 0, ErrInvalidLengthGenerated
2628 var innerWire uint64
2629 var start int = iNdEx
2630 for shift := uint(0); ; shift += 7 {
2632 return 0, ErrIntOverflowGenerated
2635 return 0, io.ErrUnexpectedEOF
2639 innerWire |= (uint64(b) & 0x7F) << shift
2644 innerWireType := int(innerWire & 0x7)
2645 if innerWireType == 4 {
2648 next, err := skipGenerated(dAtA[start:])
2652 iNdEx = start + next
2661 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
2664 panic("unreachable")
2668 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
2669 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
2673 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/rbac/v1beta1/generated.proto", fileDescriptorGenerated)
2676 var fileDescriptorGenerated = []byte{
2677 // 808 bytes of a gzipped FileDescriptorProto
2678 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xbd, 0x6f, 0xfb, 0x44,
2679 0x18, 0xce, 0xa5, 0x89, 0x12, 0x5f, 0x88, 0xc2, 0xef, 0xa8, 0xc0, 0xaa, 0xc0, 0x89, 0x02, 0x43,
2680 0xa5, 0x52, 0x9b, 0x16, 0x04, 0x2c, 0x48, 0xd4, 0x0c, 0x50, 0xb5, 0x84, 0xea, 0x2a, 0x18, 0x10,
2681 0x03, 0x67, 0xe7, 0xea, 0x1e, 0xf1, 0x97, 0xee, 0xec, 0x48, 0x15, 0x0b, 0x0b, 0x1b, 0x03, 0x12,
2682 0x13, 0x2b, 0x33, 0x13, 0x23, 0x7f, 0x41, 0xc6, 0x8e, 0x9d, 0x22, 0x6a, 0xfe, 0x10, 0xd0, 0xf9,
2683 0x23, 0xce, 0x67, 0x9b, 0x29, 0x12, 0x12, 0x53, 0x7b, 0xef, 0xfb, 0xbc, 0xcf, 0xfb, 0xbc, 0x8f,
2684 0xef, 0xde, 0xc0, 0x8f, 0x47, 0x1f, 0x0a, 0x9d, 0x05, 0xc6, 0x28, 0xb6, 0x28, 0xf7, 0x69, 0x44,
2685 0x85, 0x31, 0xa6, 0xfe, 0x30, 0xe0, 0x46, 0x9e, 0x20, 0x21, 0x33, 0xb8, 0x45, 0x6c, 0x63, 0x7c,
2686 0x62, 0xd1, 0x88, 0x9c, 0x18, 0x0e, 0xf5, 0x29, 0x27, 0x11, 0x1d, 0xea, 0x21, 0x0f, 0xa2, 0x00,
2687 0xbd, 0x96, 0x01, 0x75, 0x12, 0x32, 0x5d, 0x02, 0xf5, 0x1c, 0x78, 0x70, 0xec, 0xb0, 0xe8, 0x36,
2688 0xb6, 0x74, 0x3b, 0xf0, 0x0c, 0x27, 0x70, 0x02, 0x23, 0xc5, 0x5b, 0xf1, 0x4d, 0x7a, 0x4a, 0x0f,
2689 0xe9, 0x7f, 0x19, 0xcf, 0xc1, 0x7b, 0x65, 0x43, 0x8f, 0xd8, 0xb7, 0xcc, 0xa7, 0xfc, 0xce, 0x08,
2690 0x47, 0x8e, 0x0c, 0x08, 0xc3, 0xa3, 0x11, 0x31, 0xc6, 0x2b, 0xdd, 0x0f, 0x8c, 0x4d, 0x55, 0x3c,
2691 0xf6, 0x23, 0xe6, 0xd1, 0x95, 0x82, 0xf7, 0x9f, 0x2b, 0x10, 0xf6, 0x2d, 0xf5, 0xc8, 0x72, 0x5d,
2692 0xff, 0x57, 0x00, 0x3b, 0x67, 0x8e, 0xc3, 0xa9, 0x43, 0x22, 0x16, 0xf8, 0x38, 0x76, 0x29, 0xfa,
2693 0x11, 0xc0, 0x7d, 0xdb, 0x8d, 0x45, 0x44, 0x39, 0x0e, 0x5c, 0x7a, 0x4d, 0x5d, 0x6a, 0x47, 0x01,
2694 0x17, 0x2a, 0xe8, 0xed, 0x1d, 0xb6, 0x4e, 0xdf, 0xd5, 0x4b, 0x6b, 0x66, 0xbd, 0xf4, 0x70, 0xe4,
2695 0xc8, 0x80, 0xd0, 0xe5, 0x48, 0xfa, 0xf8, 0x44, 0xbf, 0x24, 0x16, 0x75, 0x8b, 0x5a, 0xf3, 0xf5,
2696 0xc9, 0xb4, 0x5b, 0x49, 0xa6, 0xdd, 0xfd, 0x4f, 0xd6, 0x10, 0xe3, 0xb5, 0xed, 0xfa, 0xbf, 0x55,
2697 0x61, 0x6b, 0x0e, 0x8e, 0xbe, 0x85, 0x4d, 0x49, 0x3e, 0x24, 0x11, 0x51, 0x41, 0x0f, 0x1c, 0xb6,
2698 0x4e, 0xdf, 0xd9, 0x4e, 0xca, 0x17, 0xd6, 0x77, 0xd4, 0x8e, 0x3e, 0xa7, 0x11, 0x31, 0x51, 0xae,
2699 0x03, 0x96, 0x31, 0x3c, 0x63, 0x45, 0x9f, 0xc1, 0x3a, 0x8f, 0x5d, 0x2a, 0xd4, 0x6a, 0x3a, 0xe9,
2700 0x9b, 0xfa, 0x86, 0x4b, 0xa0, 0x5f, 0x05, 0x2e, 0xb3, 0xef, 0xa4, 0x5b, 0x66, 0x3b, 0x67, 0xac,
2701 0xcb, 0x93, 0xc0, 0x19, 0x01, 0x72, 0x60, 0x87, 0x2c, 0xda, 0xaa, 0xee, 0xa5, 0x92, 0x0f, 0x37,
2702 0x72, 0x2e, 0x7d, 0x06, 0xf3, 0x95, 0x64, 0xda, 0x5d, 0xfe, 0x36, 0x78, 0x99, 0xb5, 0xff, 0x4b,
2703 0x15, 0xa2, 0x39, 0x93, 0x4c, 0xe6, 0x0f, 0x99, 0xef, 0xec, 0xc0, 0xab, 0x01, 0x6c, 0x8a, 0x38,
2704 0x4d, 0x14, 0x76, 0xf5, 0x36, 0x8e, 0x76, 0x9d, 0x01, 0xcd, 0x97, 0x73, 0xc6, 0x66, 0x1e, 0x10,
2705 0x78, 0xc6, 0x81, 0x2e, 0x60, 0x83, 0x07, 0x2e, 0xc5, 0xf4, 0x26, 0x77, 0x6a, 0x33, 0x1d, 0xce,
2706 0x70, 0x66, 0x27, 0xa7, 0x6b, 0xe4, 0x01, 0x5c, 0x30, 0xf4, 0x27, 0x00, 0xbe, 0xba, 0xea, 0xca,
2707 0x25, 0x13, 0x11, 0xfa, 0x66, 0xc5, 0x19, 0x7d, 0xcb, 0x0b, 0xcd, 0x44, 0xe6, 0xcb, 0x6c, 0x8a,
2708 0x22, 0x32, 0xe7, 0xca, 0x15, 0xac, 0xb3, 0x88, 0x7a, 0x85, 0x25, 0x47, 0x1b, 0x67, 0x58, 0x55,
2709 0x57, 0xde, 0xa4, 0x73, 0xc9, 0x80, 0x33, 0xa2, 0xfe, 0x9f, 0x00, 0x76, 0xe6, 0xc0, 0x3b, 0x98,
2710 0xe1, 0x7c, 0x71, 0x86, 0xb7, 0xb6, 0x9a, 0x61, 0xbd, 0xf8, 0x7f, 0x00, 0x84, 0xe5, 0x5b, 0x41,
2711 0x5d, 0x58, 0x1f, 0x53, 0x6e, 0x65, 0x9b, 0x44, 0x31, 0x15, 0x89, 0xff, 0x4a, 0x06, 0x70, 0x16,
2712 0x47, 0x47, 0x50, 0x21, 0x21, 0xfb, 0x94, 0x07, 0x71, 0x98, 0xb5, 0x57, 0xcc, 0x76, 0x32, 0xed,
2713 0x2a, 0x67, 0x57, 0xe7, 0x59, 0x10, 0x97, 0x79, 0x09, 0xe6, 0x54, 0x04, 0x31, 0xb7, 0xa9, 0x50,
2714 0xf7, 0x4a, 0x30, 0x2e, 0x82, 0xb8, 0xcc, 0xa3, 0x0f, 0x60, 0xbb, 0x38, 0x0c, 0x88, 0x47, 0x85,
2715 0x5a, 0x4b, 0x0b, 0x5e, 0x24, 0xd3, 0x6e, 0x1b, 0xcf, 0x27, 0xf0, 0x22, 0x0e, 0x7d, 0x04, 0x3b,
2716 0x7e, 0xe0, 0x17, 0x90, 0x2f, 0xf1, 0xa5, 0x50, 0xeb, 0x69, 0x69, 0xfa, 0x3e, 0x07, 0x8b, 0x29,
2717 0xbc, 0x8c, 0xed, 0xff, 0x01, 0x60, 0xed, 0xbf, 0xb6, 0xbd, 0xfa, 0x3f, 0x55, 0x61, 0xeb, 0xff,
2718 0x6d, 0x32, 0xdb, 0x26, 0xf2, 0x09, 0xee, 0x76, 0x8d, 0x6c, 0xfd, 0x04, 0x9f, 0xdf, 0x1f, 0xbf,
2719 0x03, 0xd8, 0xdc, 0xd1, 0xe2, 0x30, 0x17, 0x55, 0xbf, 0xf1, 0xb4, 0xea, 0xf5, 0x72, 0xbf, 0x87,
2720 0x85, 0xff, 0xe8, 0x6d, 0xd8, 0x2c, 0x1e, 0x7b, 0x2a, 0x56, 0x29, 0x9b, 0x17, 0xfb, 0x00, 0xcf,
2721 0x10, 0xa8, 0x07, 0x6b, 0x23, 0xe6, 0x0f, 0xd5, 0x6a, 0x8a, 0x7c, 0x29, 0x47, 0xd6, 0x2e, 0x98,
2722 0x3f, 0xc4, 0x69, 0x46, 0x22, 0x7c, 0xe2, 0x65, 0x3f, 0xc4, 0x73, 0x08, 0xf9, 0xcc, 0x71, 0x9a,
2723 0x91, 0x5e, 0x35, 0xf2, 0xcb, 0x34, 0xe3, 0x03, 0x1b, 0xf9, 0xe6, 0xf5, 0x55, 0xb7, 0xd1, 0xf7,
2724 0x74, 0x77, 0x64, 0x40, 0x45, 0xfe, 0x15, 0x21, 0xb1, 0xa9, 0x5a, 0x4b, 0x61, 0x2f, 0x72, 0x98,
2725 0x32, 0x28, 0x12, 0xb8, 0xc4, 0x98, 0xc7, 0x93, 0x47, 0xad, 0x72, 0xff, 0xa8, 0x55, 0x1e, 0x1e,
2726 0xb5, 0xca, 0x0f, 0x89, 0x06, 0x26, 0x89, 0x06, 0xee, 0x13, 0x0d, 0x3c, 0x24, 0x1a, 0xf8, 0x2b,
2727 0xd1, 0xc0, 0xcf, 0x7f, 0x6b, 0x95, 0xaf, 0x1b, 0xb9, 0xeb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff,
2728 0x37, 0x8f, 0x77, 0xcd, 0x15, 0x0b, 0x00, 0x00,