2019-08-30 18:33:25 +00:00
|
|
|
/*
|
|
|
|
Copyright The Kubernetes Authors.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
|
// source: k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto
|
|
|
|
|
|
|
|
package v1alpha1
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
io "io"
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
proto "github.com/gogo/protobuf/proto"
|
2019-08-30 18:33:25 +00:00
|
|
|
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
2019-09-27 21:51:53 +00:00
|
|
|
v11 "k8s.io/api/core/v1"
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
2019-08-30 18:33:25 +00:00
|
|
|
reflect "reflect"
|
2019-09-27 21:51:53 +00:00
|
|
|
strings "strings"
|
2019-08-30 18:33:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} }
|
|
|
|
func (*VolumeAttachment) ProtoMessage() {}
|
|
|
|
func (*VolumeAttachment) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_10f856db1e670dc4, []int{0}
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_VolumeAttachment.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_VolumeAttachment.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_VolumeAttachment proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} }
|
|
|
|
func (*VolumeAttachmentList) ProtoMessage() {}
|
|
|
|
func (*VolumeAttachmentList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_10f856db1e670dc4, []int{1}
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_VolumeAttachmentList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_VolumeAttachmentList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_VolumeAttachmentList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} }
|
|
|
|
func (*VolumeAttachmentSource) ProtoMessage() {}
|
|
|
|
func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_10f856db1e670dc4, []int{2}
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSource) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSource) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_VolumeAttachmentSource.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSource) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSource) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_VolumeAttachmentSource.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_VolumeAttachmentSource proto.InternalMessageInfo
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} }
|
|
|
|
func (*VolumeAttachmentSpec) ProtoMessage() {}
|
|
|
|
func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_10f856db1e670dc4, []int{3}
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_VolumeAttachmentSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_VolumeAttachmentSpec.DiscardUnknown(m)
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
var xxx_messageInfo_VolumeAttachmentSpec proto.InternalMessageInfo
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} }
|
|
|
|
func (*VolumeAttachmentStatus) ProtoMessage() {}
|
|
|
|
func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_10f856db1e670dc4, []int{4}
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_VolumeAttachmentStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_VolumeAttachmentStatus.DiscardUnknown(m)
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
var xxx_messageInfo_VolumeAttachmentStatus proto.InternalMessageInfo
|
2019-08-30 18:33:25 +00:00
|
|
|
|
2019-09-27 21:51:53 +00:00
|
|
|
func (m *VolumeError) Reset() { *m = VolumeError{} }
|
|
|
|
func (*VolumeError) ProtoMessage() {}
|
|
|
|
func (*VolumeError) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_10f856db1e670dc4, []int{5}
|
|
|
|
}
|
|
|
|
func (m *VolumeError) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *VolumeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *VolumeError) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_VolumeError.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *VolumeError) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *VolumeError) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_VolumeError.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_VolumeError proto.InternalMessageInfo
|
2019-08-30 18:33:25 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachment")
|
|
|
|
proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentList")
|
|
|
|
proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSource")
|
|
|
|
proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSpec")
|
|
|
|
proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus")
|
2019-09-27 21:51:53 +00:00
|
|
|
proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus.AttachmentMetadataEntry")
|
2019-08-30 18:33:25 +00:00
|
|
|
proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1alpha1.VolumeError")
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto", fileDescriptor_10f856db1e670dc4)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_10f856db1e670dc4 = []byte{
|
|
|
|
// 745 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcd, 0x6e, 0xd3, 0x40,
|
|
|
|
0x10, 0xc7, 0xe3, 0x24, 0x6d, 0xd3, 0x0d, 0x1f, 0xd1, 0x2a, 0x82, 0x28, 0x48, 0x4e, 0x95, 0x53,
|
|
|
|
0x40, 0x74, 0x4d, 0x0a, 0x42, 0x15, 0xb7, 0x58, 0xed, 0xa1, 0xa2, 0x2d, 0x68, 0x8b, 0x38, 0x00,
|
|
|
|
0x07, 0x36, 0xf6, 0xe2, 0xb8, 0x89, 0x3f, 0xe4, 0x5d, 0x47, 0xea, 0x8d, 0x13, 0x67, 0x6e, 0xbc,
|
|
|
|
0x01, 0xcf, 0x92, 0x1b, 0x15, 0xa7, 0x9e, 0x22, 0x6a, 0xde, 0x82, 0x0b, 0x68, 0xd7, 0x9b, 0xc4,
|
|
|
|
0x24, 0x29, 0xb4, 0xbd, 0x79, 0x66, 0x67, 0x7e, 0x33, 0xf3, 0xdf, 0xf1, 0x82, 0x9d, 0xfe, 0x36,
|
|
|
|
0x43, 0x6e, 0x60, 0xf4, 0xe3, 0x2e, 0x8d, 0x7c, 0xca, 0x29, 0x33, 0x86, 0xd4, 0xb7, 0x83, 0xc8,
|
|
|
|
0x50, 0x07, 0x24, 0x74, 0x0d, 0xc6, 0x83, 0x88, 0x38, 0xd4, 0x18, 0xb6, 0xc9, 0x20, 0xec, 0x91,
|
|
|
|
0xb6, 0xe1, 0x50, 0x9f, 0x46, 0x84, 0x53, 0x1b, 0x85, 0x51, 0xc0, 0x03, 0x78, 0x2f, 0x0d, 0x46,
|
|
|
|
0x24, 0x74, 0x91, 0x0a, 0x46, 0x93, 0xe0, 0xfa, 0xa6, 0xe3, 0xf2, 0x5e, 0xdc, 0x45, 0x56, 0xe0,
|
|
|
|
0x19, 0x4e, 0xe0, 0x04, 0x86, 0xcc, 0xe9, 0xc6, 0x1f, 0xa4, 0x25, 0x0d, 0xf9, 0x95, 0xb2, 0xea,
|
|
|
|
0xcd, 0x4c, 0x61, 0x2b, 0x88, 0x44, 0xd5, 0xf9, 0x7a, 0xf5, 0x27, 0xb3, 0x18, 0x8f, 0x58, 0x3d,
|
|
|
|
0xd7, 0xa7, 0xd1, 0x89, 0x11, 0xf6, 0x1d, 0xe1, 0x60, 0x86, 0x47, 0x39, 0x59, 0x96, 0x65, 0x5c,
|
|
|
|
0x94, 0x15, 0xc5, 0x3e, 0x77, 0x3d, 0xba, 0x90, 0xf0, 0xf4, 0x7f, 0x09, 0xcc, 0xea, 0x51, 0x8f,
|
|
|
|
0xcc, 0xe7, 0x35, 0xbf, 0xe6, 0x41, 0xe5, 0x75, 0x30, 0x88, 0x3d, 0xda, 0xe1, 0x9c, 0x58, 0x3d,
|
|
|
|
0x8f, 0xfa, 0x1c, 0xbe, 0x07, 0x25, 0xd1, 0x98, 0x4d, 0x38, 0xa9, 0x69, 0x1b, 0x5a, 0xab, 0xbc,
|
|
|
|
0xf5, 0x08, 0xcd, 0x64, 0x9b, 0xf2, 0x51, 0xd8, 0x77, 0x84, 0x83, 0x21, 0x11, 0x8d, 0x86, 0x6d,
|
|
|
|
0xf4, 0xa2, 0x7b, 0x4c, 0x2d, 0x7e, 0x40, 0x39, 0x31, 0xe1, 0x68, 0xdc, 0xc8, 0x25, 0xe3, 0x06,
|
|
|
|
0x98, 0xf9, 0xf0, 0x94, 0x0a, 0x8f, 0x40, 0x91, 0x85, 0xd4, 0xaa, 0xe5, 0x25, 0xbd, 0x8d, 0xfe,
|
|
|
|
0x71, 0x29, 0x68, 0xbe, 0xbd, 0xa3, 0x90, 0x5a, 0xe6, 0x0d, 0x85, 0x2f, 0x0a, 0x0b, 0x4b, 0x18,
|
|
|
|
0x7c, 0x0b, 0x56, 0x19, 0x27, 0x3c, 0x66, 0xb5, 0x82, 0xc4, 0x3e, 0xbe, 0x1a, 0x56, 0xa6, 0x9a,
|
|
|
|
0xb7, 0x14, 0x78, 0x35, 0xb5, 0xb1, 0x42, 0x36, 0x47, 0x1a, 0xa8, 0xce, 0xa7, 0xec, 0xbb, 0x8c,
|
|
|
|
0xc3, 0x77, 0x0b, 0x62, 0xa1, 0xcb, 0x89, 0x25, 0xb2, 0xa5, 0x54, 0x15, 0x55, 0xb2, 0x34, 0xf1,
|
|
|
|
0x64, 0x84, 0xc2, 0x60, 0xc5, 0xe5, 0xd4, 0x63, 0xb5, 0xfc, 0x46, 0xa1, 0x55, 0xde, 0xda, 0xbc,
|
|
|
|
0xd2, 0x48, 0xe6, 0x4d, 0x45, 0x5e, 0xd9, 0x13, 0x0c, 0x9c, 0xa2, 0x9a, 0xdf, 0x35, 0x70, 0x67,
|
|
|
|
0x61, 0xfa, 0x20, 0x8e, 0x2c, 0x0a, 0xf7, 0x41, 0x35, 0xa4, 0x11, 0x73, 0x19, 0xa7, 0x3e, 0x4f,
|
|
|
|
0x63, 0x0e, 0x89, 0x47, 0xe5, 0x60, 0xeb, 0x66, 0x2d, 0x19, 0x37, 0xaa, 0x2f, 0x97, 0x9c, 0xe3,
|
|
|
|
0xa5, 0x59, 0xf0, 0x18, 0x54, 0x5c, 0x7f, 0xe0, 0xfa, 0x34, 0xf5, 0x1d, 0xcd, 0x6e, 0xbc, 0x95,
|
|
|
|
0x9d, 0x43, 0xfc, 0x3a, 0x42, 0x90, 0x79, 0xb2, 0xbc, 0xe8, 0x6a, 0x32, 0x6e, 0x54, 0xf6, 0xe6,
|
|
|
|
0x28, 0x78, 0x81, 0xdb, 0xfc, 0xb6, 0xe4, 0x7e, 0xc4, 0x01, 0x7c, 0x08, 0x4a, 0x44, 0x7a, 0x68,
|
|
|
|
0xa4, 0xc6, 0x98, 0xea, 0xdd, 0x51, 0x7e, 0x3c, 0x8d, 0x90, 0x3b, 0x24, 0xa5, 0x50, 0x8d, 0x5e,
|
|
|
|
0x71, 0x87, 0x64, 0x6a, 0x66, 0x87, 0xa4, 0x8d, 0x15, 0x52, 0xb4, 0xe2, 0x07, 0x76, 0xaa, 0x68,
|
|
|
|
0xe1, 0xef, 0x56, 0x0e, 0x95, 0x1f, 0x4f, 0x23, 0x9a, 0xbf, 0x0b, 0x4b, 0xae, 0x49, 0x2e, 0x63,
|
|
|
|
0x66, 0x26, 0x5b, 0xce, 0x54, 0x5a, 0x98, 0xc9, 0x9e, 0xce, 0x64, 0xc3, 0x2f, 0x1a, 0x80, 0x64,
|
|
|
|
0x8a, 0x38, 0x98, 0x2c, 0x6b, 0xba, 0x51, 0xcf, 0xaf, 0xf1, 0x93, 0xa0, 0xce, 0x02, 0x6d, 0xd7,
|
|
|
|
0xe7, 0xd1, 0x89, 0x59, 0x57, 0x5d, 0xc0, 0xc5, 0x00, 0xbc, 0xa4, 0x05, 0x78, 0x0c, 0xca, 0xa9,
|
|
|
|
0x77, 0x37, 0x8a, 0x82, 0x48, 0xfd, 0xb6, 0xad, 0x4b, 0x74, 0x24, 0xe3, 0x4d, 0x3d, 0x19, 0x37,
|
|
|
|
0xca, 0x9d, 0x19, 0xe0, 0xd7, 0xb8, 0x51, 0xce, 0x9c, 0xe3, 0x2c, 0x5c, 0xd4, 0xb2, 0xe9, 0xac,
|
|
|
|
0x56, 0xf1, 0x3a, 0xb5, 0x76, 0xe8, 0xc5, 0xb5, 0x32, 0xf0, 0xfa, 0x2e, 0xb8, 0x7b, 0x81, 0x44,
|
|
|
|
0xb0, 0x02, 0x0a, 0x7d, 0x7a, 0x92, 0x6e, 0x22, 0x16, 0x9f, 0xb0, 0x0a, 0x56, 0x86, 0x64, 0x10,
|
|
|
|
0xa7, 0x1b, 0xb7, 0x8e, 0x53, 0xe3, 0x59, 0x7e, 0x5b, 0x6b, 0x7e, 0xd2, 0x40, 0xb6, 0x06, 0xdc,
|
|
|
|
0x07, 0x45, 0xf1, 0x96, 0xab, 0x67, 0xe6, 0xc1, 0xe5, 0x9e, 0x99, 0x57, 0xae, 0x47, 0x67, 0xcf,
|
|
|
|
0xa5, 0xb0, 0xb0, 0xa4, 0xc0, 0xfb, 0x60, 0xcd, 0xa3, 0x8c, 0x11, 0x47, 0x55, 0x36, 0x6f, 0xab,
|
|
|
|
0xa0, 0xb5, 0x83, 0xd4, 0x8d, 0x27, 0xe7, 0x26, 0x1a, 0x9d, 0xeb, 0xb9, 0xd3, 0x73, 0x3d, 0x77,
|
|
|
|
0x76, 0xae, 0xe7, 0x3e, 0x26, 0xba, 0x36, 0x4a, 0x74, 0xed, 0x34, 0xd1, 0xb5, 0xb3, 0x44, 0xd7,
|
|
|
|
0x7e, 0x24, 0xba, 0xf6, 0xf9, 0xa7, 0x9e, 0x7b, 0x53, 0x9a, 0x08, 0xf7, 0x27, 0x00, 0x00, 0xff,
|
|
|
|
0xff, 0xe8, 0x45, 0xe3, 0xba, 0xab, 0x07, 0x00, 0x00,
|
|
|
|
}
|
|
|
|
|
2019-08-30 18:33:25 +00:00
|
|
|
func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-09-27 21:51:53 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-08-30 18:33:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) {
|
2019-09-27 21:51:53 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-08-30 18:33:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-09-27 21:51:53 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
2019-08-30 18:33:25 +00:00
|
|
|
dAtA[i] = 0x1a
|
2019-09-27 21:51:53 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-09-27 21:51:53 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-08-30 18:33:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) {
|
2019-09-27 21:51:53 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-08-30 18:33:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2019-09-27 21:51:53 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-09-27 21:51:53 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-08-30 18:33:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) {
|
2019-09-27 21:51:53 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-08-30 18:33:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.InlineVolumeSpec != nil {
|
2019-09-27 21:51:53 +00:00
|
|
|
{
|
|
|
|
size, err := m.InlineVolumeSpec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if m.PersistentVolumeName != nil {
|
|
|
|
i -= len(*m.PersistentVolumeName)
|
|
|
|
copy(dAtA[i:], *m.PersistentVolumeName)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-09-27 21:51:53 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-08-30 18:33:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) {
|
2019-09-27 21:51:53 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-08-30 18:33:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-09-27 21:51:53 +00:00
|
|
|
i -= len(m.NodeName)
|
|
|
|
copy(dAtA[i:], m.NodeName)
|
2019-08-30 18:33:25 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName)))
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
{
|
|
|
|
size, err := m.Source.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Attacher)
|
|
|
|
copy(dAtA[i:], m.Attacher)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-09-27 21:51:53 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-08-30 18:33:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) {
|
2019-09-27 21:51:53 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-08-30 18:33:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-09-27 21:51:53 +00:00
|
|
|
if m.DetachError != nil {
|
|
|
|
{
|
|
|
|
size, err := m.DetachError.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
if m.AttachError != nil {
|
|
|
|
{
|
|
|
|
size, err := m.AttachError.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
if len(m.AttachmentMetadata) > 0 {
|
|
|
|
keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata))
|
|
|
|
for k := range m.AttachmentMetadata {
|
|
|
|
keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata)
|
2019-09-27 21:51:53 +00:00
|
|
|
for iNdEx := len(keysForAttachmentMetadata) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
v := m.AttachmentMetadata[string(keysForAttachmentMetadata[iNdEx])]
|
|
|
|
baseI := i
|
|
|
|
i -= len(v)
|
|
|
|
copy(dAtA[i:], v)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
|
|
|
|
i--
|
2019-08-30 18:33:25 +00:00
|
|
|
dAtA[i] = 0x12
|
2019-09-27 21:51:53 +00:00
|
|
|
i -= len(keysForAttachmentMetadata[iNdEx])
|
|
|
|
copy(dAtA[i:], keysForAttachmentMetadata[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAttachmentMetadata[iNdEx])))
|
|
|
|
i--
|
2019-08-30 18:33:25 +00:00
|
|
|
dAtA[i] = 0xa
|
2019-09-27 21:51:53 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
|
|
|
|
i--
|
2019-08-30 18:33:25 +00:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
if m.Attached {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeError) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-09-27 21:51:53 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-08-30 18:33:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) {
|
2019-09-27 21:51:53 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeError) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-08-30 18:33:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-09-27 21:51:53 +00:00
|
|
|
i -= len(m.Message)
|
|
|
|
copy(dAtA[i:], m.Message)
|
2019-08-30 18:33:25 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
2019-09-27 21:51:53 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.Time.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
2019-09-27 21:51:53 +00:00
|
|
|
offset -= sovGenerated(v)
|
|
|
|
base := offset
|
2019-08-30 18:33:25 +00:00
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
2019-09-27 21:51:53 +00:00
|
|
|
return base
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) Size() (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentList) Size() (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSource) Size() (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.PersistentVolumeName != nil {
|
|
|
|
l = len(*m.PersistentVolumeName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.InlineVolumeSpec != nil {
|
|
|
|
l = m.InlineVolumeSpec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentSpec) Size() (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Attacher)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Source.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.NodeName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeAttachmentStatus) Size() (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 2
|
|
|
|
if len(m.AttachmentMetadata) > 0 {
|
|
|
|
for k, v := range m.AttachmentMetadata {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.AttachError != nil {
|
|
|
|
l = m.AttachError.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.DetachError != nil {
|
|
|
|
l = m.DetachError.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VolumeError) Size() (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Time.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
2019-09-27 21:51:53 +00:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
func sozGenerated(x uint64) (n int) {
|
|
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (this *VolumeAttachment) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VolumeAttachment{`,
|
2019-09-27 21:51:53 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-08-30 18:33:25 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VolumeAttachmentList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
repeatedStringForItems := "[]VolumeAttachment{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-08-30 18:33:25 +00:00
|
|
|
s := strings.Join([]string{`&VolumeAttachmentList{`,
|
2019-09-27 21:51:53 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-08-30 18:33:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VolumeAttachmentSource) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VolumeAttachmentSource{`,
|
|
|
|
`PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`,
|
2019-09-27 21:51:53 +00:00
|
|
|
`InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "v11.PersistentVolumeSpec", 1) + `,`,
|
2019-08-30 18:33:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VolumeAttachmentSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VolumeAttachmentSpec{`,
|
|
|
|
`Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`,
|
|
|
|
`Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`,
|
|
|
|
`NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VolumeAttachmentStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata))
|
|
|
|
for k := range this.AttachmentMetadata {
|
|
|
|
keysForAttachmentMetadata = append(keysForAttachmentMetadata, k)
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata)
|
|
|
|
mapStringForAttachmentMetadata := "map[string]string{"
|
|
|
|
for _, k := range keysForAttachmentMetadata {
|
|
|
|
mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k])
|
|
|
|
}
|
|
|
|
mapStringForAttachmentMetadata += "}"
|
|
|
|
s := strings.Join([]string{`&VolumeAttachmentStatus{`,
|
|
|
|
`Attached:` + fmt.Sprintf("%v", this.Attached) + `,`,
|
|
|
|
`AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`,
|
2019-09-27 21:51:53 +00:00
|
|
|
`AttachError:` + strings.Replace(this.AttachError.String(), "VolumeError", "VolumeError", 1) + `,`,
|
|
|
|
`DetachError:` + strings.Replace(this.DetachError.String(), "VolumeError", "VolumeError", 1) + `,`,
|
2019-08-30 18:33:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VolumeError) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VolumeError{`,
|
2019-09-27 21:51:53 +00:00
|
|
|
`Time:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
|
2019-08-30 18:33:25 +00:00
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func valueToStringGenerated(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachment) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, VolumeAttachment{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := string(dAtA[iNdEx:postIndex])
|
|
|
|
m.PersistentVolumeName = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.InlineVolumeSpec == nil {
|
2019-09-27 21:51:53 +00:00
|
|
|
m.InlineVolumeSpec = &v11.PersistentVolumeSpec{}
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Attacher = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.NodeName = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Attached = bool(v != 0)
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.AttachmentMetadata == nil {
|
|
|
|
m.AttachmentMetadata = make(map[string]string)
|
|
|
|
}
|
|
|
|
var mapkey string
|
|
|
|
var mapvalue string
|
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
if fieldNum == 1 {
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
2019-09-27 21:51:53 +00:00
|
|
|
if postStringIndexmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
} else if fieldNum == 2 {
|
|
|
|
var stringLenmapvalue uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
stringLenmapvalue |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLenmapvalue := int(stringLenmapvalue)
|
|
|
|
if intStringLenmapvalue < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
2019-09-27 21:51:53 +00:00
|
|
|
if postStringIndexmapvalue < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postStringIndexmapvalue > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
|
iNdEx = postStringIndexmapvalue
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.AttachmentMetadata[mapkey] = mapvalue
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.AttachError == nil {
|
|
|
|
m.AttachError = &VolumeError{}
|
|
|
|
}
|
|
|
|
if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.DetachError == nil {
|
|
|
|
m.DetachError = &VolumeError{}
|
|
|
|
}
|
|
|
|
if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *VolumeError) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: VolumeError: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-09-27 21:51:53 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-08-30 18:33:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2019-09-27 21:51:53 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
return iNdEx, nil
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-09-27 21:51:53 +00:00
|
|
|
iNdEx += length
|
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
return iNdEx, nil
|
|
|
|
case 3:
|
|
|
|
for {
|
|
|
|
var innerWire uint64
|
|
|
|
var start int = iNdEx
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
innerWireType := int(innerWire & 0x7)
|
|
|
|
if innerWireType == 4 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
next, err := skipGenerated(dAtA[start:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
iNdEx = start + next
|
2019-09-27 21:51:53 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-08-30 18:33:25 +00:00
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 4:
|
|
|
|
return iNdEx, nil
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
return iNdEx, nil
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
panic("unreachable")
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
|
|
)
|