// Code generated by protoc-gen-gogo. DO NOT EDIT. // github.com/Microsoft/hcsshim/pkg/ncproxy/nodenetsvc/v0/nodenetsvc.proto is a deprecated file. package v0 import ( context "context" fmt "fmt" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" io "io" math "math" math_bits "math/bits" reflect "reflect" strings "strings" ) // 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package type RequestType int32 // Deprecated: Do not use. const ( RequestType_Setup RequestType = 0 // Deprecated: Do not use. RequestType_Teardown RequestType = 1 // Deprecated: Do not use. ) var RequestType_name = map[int32]string{ 0: "Setup", 1: "Teardown", } var RequestType_value = map[string]int32{ "Setup": 0, "Teardown": 1, } func (x RequestType) String() string { return proto.EnumName(RequestType_name, int32(x)) } func (RequestType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{0} } // Deprecated: Do not use. type ConfigureNetworkingRequest struct { ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Deprecated: Do not use. RequestType RequestType `protobuf:"varint,2,opt,name=request_type,json=requestType,proto3,enum=azure.nodenetworkservice.RequestType" json:"request_type,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ConfigureNetworkingRequest) Reset() { *m = ConfigureNetworkingRequest{} } func (*ConfigureNetworkingRequest) ProtoMessage() {} func (*ConfigureNetworkingRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{0} } func (m *ConfigureNetworkingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ConfigureNetworkingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ConfigureNetworkingRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ConfigureNetworkingRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ConfigureNetworkingRequest.Merge(m, src) } func (m *ConfigureNetworkingRequest) XXX_Size() int { return m.Size() } func (m *ConfigureNetworkingRequest) XXX_DiscardUnknown() { xxx_messageInfo_ConfigureNetworkingRequest.DiscardUnknown(m) } var xxx_messageInfo_ConfigureNetworkingRequest proto.InternalMessageInfo // Deprecated: Do not use. type ConfigureNetworkingResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ConfigureNetworkingResponse) Reset() { *m = ConfigureNetworkingResponse{} } func (*ConfigureNetworkingResponse) ProtoMessage() {} func (*ConfigureNetworkingResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{1} } func (m *ConfigureNetworkingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ConfigureNetworkingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ConfigureNetworkingResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ConfigureNetworkingResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ConfigureNetworkingResponse.Merge(m, src) } func (m *ConfigureNetworkingResponse) XXX_Size() int { return m.Size() } func (m *ConfigureNetworkingResponse) XXX_DiscardUnknown() { xxx_messageInfo_ConfigureNetworkingResponse.DiscardUnknown(m) } var xxx_messageInfo_ConfigureNetworkingResponse proto.InternalMessageInfo // Deprecated: Do not use. type PingNodeNetworkServiceRequest struct { PingRequestMessage string `protobuf:"bytes,1,opt,name=ping_request_message,json=pingRequestMessage,proto3" json:"ping_request_message,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PingNodeNetworkServiceRequest) Reset() { *m = PingNodeNetworkServiceRequest{} } func (*PingNodeNetworkServiceRequest) ProtoMessage() {} func (*PingNodeNetworkServiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{2} } func (m *PingNodeNetworkServiceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PingNodeNetworkServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PingNodeNetworkServiceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *PingNodeNetworkServiceRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_PingNodeNetworkServiceRequest.Merge(m, src) } func (m *PingNodeNetworkServiceRequest) XXX_Size() int { return m.Size() } func (m *PingNodeNetworkServiceRequest) XXX_DiscardUnknown() { xxx_messageInfo_PingNodeNetworkServiceRequest.DiscardUnknown(m) } var xxx_messageInfo_PingNodeNetworkServiceRequest proto.InternalMessageInfo // Deprecated: Do not use. type PingNodeNetworkServiceResponse struct { PingResponseMessage string `protobuf:"bytes,1,opt,name=ping_response_message,json=pingResponseMessage,proto3" json:"ping_response_message,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PingNodeNetworkServiceResponse) Reset() { *m = PingNodeNetworkServiceResponse{} } func (*PingNodeNetworkServiceResponse) ProtoMessage() {} func (*PingNodeNetworkServiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{3} } func (m *PingNodeNetworkServiceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PingNodeNetworkServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PingNodeNetworkServiceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *PingNodeNetworkServiceResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_PingNodeNetworkServiceResponse.Merge(m, src) } func (m *PingNodeNetworkServiceResponse) XXX_Size() int { return m.Size() } func (m *PingNodeNetworkServiceResponse) XXX_DiscardUnknown() { xxx_messageInfo_PingNodeNetworkServiceResponse.DiscardUnknown(m) } var xxx_messageInfo_PingNodeNetworkServiceResponse proto.InternalMessageInfo // Deprecated: Do not use. type ConfigureContainerNetworkingRequest struct { RequestType RequestType `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=azure.nodenetworkservice.RequestType" json:"request_type,omitempty"` // Deprecated: Do not use. ContainerID string `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Deprecated: Do not use. NetworkNamespaceID string `protobuf:"bytes,3,opt,name=network_namespace_id,json=networkNamespaceId,proto3" json:"network_namespace_id,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ConfigureContainerNetworkingRequest) Reset() { *m = ConfigureContainerNetworkingRequest{} } func (*ConfigureContainerNetworkingRequest) ProtoMessage() {} func (*ConfigureContainerNetworkingRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{4} } func (m *ConfigureContainerNetworkingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ConfigureContainerNetworkingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ConfigureContainerNetworkingRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ConfigureContainerNetworkingRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ConfigureContainerNetworkingRequest.Merge(m, src) } func (m *ConfigureContainerNetworkingRequest) XXX_Size() int { return m.Size() } func (m *ConfigureContainerNetworkingRequest) XXX_DiscardUnknown() { xxx_messageInfo_ConfigureContainerNetworkingRequest.DiscardUnknown(m) } var xxx_messageInfo_ConfigureContainerNetworkingRequest proto.InternalMessageInfo // Deprecated: Do not use. type ConfigureContainerNetworkingResponse struct { Interfaces []*ContainerNetworkInterface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ConfigureContainerNetworkingResponse) Reset() { *m = ConfigureContainerNetworkingResponse{} } func (*ConfigureContainerNetworkingResponse) ProtoMessage() {} func (*ConfigureContainerNetworkingResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{5} } func (m *ConfigureContainerNetworkingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ConfigureContainerNetworkingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ConfigureContainerNetworkingResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ConfigureContainerNetworkingResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ConfigureContainerNetworkingResponse.Merge(m, src) } func (m *ConfigureContainerNetworkingResponse) XXX_Size() int { return m.Size() } func (m *ConfigureContainerNetworkingResponse) XXX_DiscardUnknown() { xxx_messageInfo_ConfigureContainerNetworkingResponse.DiscardUnknown(m) } var xxx_messageInfo_ConfigureContainerNetworkingResponse proto.InternalMessageInfo // Deprecated: Do not use. type ContainerIPAddress struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Deprecated: Do not use. Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // Deprecated: Do not use. PrefixLength string `protobuf:"bytes,4,opt,name=prefix_length,json=prefixLength,proto3" json:"prefix_length,omitempty"` // Deprecated: Do not use. DefaultGateway string `protobuf:"bytes,5,opt,name=default_gateway,json=defaultGateway,proto3" json:"default_gateway,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ContainerIPAddress) Reset() { *m = ContainerIPAddress{} } func (*ContainerIPAddress) ProtoMessage() {} func (*ContainerIPAddress) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{6} } func (m *ContainerIPAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerIPAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ContainerIPAddress.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ContainerIPAddress) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerIPAddress.Merge(m, src) } func (m *ContainerIPAddress) XXX_Size() int { return m.Size() } func (m *ContainerIPAddress) XXX_DiscardUnknown() { xxx_messageInfo_ContainerIPAddress.DiscardUnknown(m) } var xxx_messageInfo_ContainerIPAddress proto.InternalMessageInfo // Deprecated: Do not use. type ContainerNetworkInterface struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. MacAddress string `protobuf:"bytes,2,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` // Deprecated: Do not use. NetworkNamespaceID string `protobuf:"bytes,3,opt,name=network_namespace_id,json=networkNamespaceId,proto3" json:"network_namespace_id,omitempty"` // Deprecated: Do not use. Ipaddresses []*ContainerIPAddress `protobuf:"bytes,4,rep,name=ipaddresses,proto3" json:"ipaddresses,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ContainerNetworkInterface) Reset() { *m = ContainerNetworkInterface{} } func (*ContainerNetworkInterface) ProtoMessage() {} func (*ContainerNetworkInterface) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{7} } func (m *ContainerNetworkInterface) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerNetworkInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ContainerNetworkInterface.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ContainerNetworkInterface) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerNetworkInterface.Merge(m, src) } func (m *ContainerNetworkInterface) XXX_Size() int { return m.Size() } func (m *ContainerNetworkInterface) XXX_DiscardUnknown() { xxx_messageInfo_ContainerNetworkInterface.DiscardUnknown(m) } var xxx_messageInfo_ContainerNetworkInterface proto.InternalMessageInfo // Deprecated: Do not use. type GetHostLocalIpAddressRequest struct { ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetHostLocalIpAddressRequest) Reset() { *m = GetHostLocalIpAddressRequest{} } func (*GetHostLocalIpAddressRequest) ProtoMessage() {} func (*GetHostLocalIpAddressRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{8} } func (m *GetHostLocalIpAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetHostLocalIpAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetHostLocalIpAddressRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *GetHostLocalIpAddressRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetHostLocalIpAddressRequest.Merge(m, src) } func (m *GetHostLocalIpAddressRequest) XXX_Size() int { return m.Size() } func (m *GetHostLocalIpAddressRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetHostLocalIpAddressRequest.DiscardUnknown(m) } var xxx_messageInfo_GetHostLocalIpAddressRequest proto.InternalMessageInfo // Deprecated: Do not use. type GetHostLocalIpAddressResponse struct { IpAddr string `protobuf:"bytes,1,opt,name=ip_addr,json=ipAddr,proto3" json:"ip_addr,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetHostLocalIpAddressResponse) Reset() { *m = GetHostLocalIpAddressResponse{} } func (*GetHostLocalIpAddressResponse) ProtoMessage() {} func (*GetHostLocalIpAddressResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8f1cc039953ac339, []int{9} } func (m *GetHostLocalIpAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetHostLocalIpAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetHostLocalIpAddressResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *GetHostLocalIpAddressResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetHostLocalIpAddressResponse.Merge(m, src) } func (m *GetHostLocalIpAddressResponse) XXX_Size() int { return m.Size() } func (m *GetHostLocalIpAddressResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetHostLocalIpAddressResponse.DiscardUnknown(m) } var xxx_messageInfo_GetHostLocalIpAddressResponse proto.InternalMessageInfo func init() { proto.RegisterEnum("azure.nodenetworkservice.RequestType", RequestType_name, RequestType_value) proto.RegisterType((*ConfigureNetworkingRequest)(nil), "azure.nodenetworkservice.ConfigureNetworkingRequest") proto.RegisterType((*ConfigureNetworkingResponse)(nil), "azure.nodenetworkservice.ConfigureNetworkingResponse") proto.RegisterType((*PingNodeNetworkServiceRequest)(nil), "azure.nodenetworkservice.PingNodeNetworkServiceRequest") proto.RegisterType((*PingNodeNetworkServiceResponse)(nil), "azure.nodenetworkservice.PingNodeNetworkServiceResponse") proto.RegisterType((*ConfigureContainerNetworkingRequest)(nil), "azure.nodenetworkservice.ConfigureContainerNetworkingRequest") proto.RegisterType((*ConfigureContainerNetworkingResponse)(nil), "azure.nodenetworkservice.ConfigureContainerNetworkingResponse") proto.RegisterType((*ContainerIPAddress)(nil), "azure.nodenetworkservice.ContainerIPAddress") proto.RegisterType((*ContainerNetworkInterface)(nil), "azure.nodenetworkservice.ContainerNetworkInterface") proto.RegisterType((*GetHostLocalIpAddressRequest)(nil), "azure.nodenetworkservice.GetHostLocalIpAddressRequest") proto.RegisterType((*GetHostLocalIpAddressResponse)(nil), "azure.nodenetworkservice.GetHostLocalIpAddressResponse") } func init() { proto.RegisterFile("github.com/Microsoft/hcsshim/pkg/ncproxy/nodenetsvc/v0/nodenetsvc.proto", fileDescriptor_8f1cc039953ac339) } var fileDescriptor_8f1cc039953ac339 = []byte{ // 758 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5b, 0x4f, 0x13, 0x4d, 0x18, 0x66, 0x96, 0x72, 0xf8, 0xde, 0x02, 0x1f, 0xdf, 0x70, 0xc8, 0x7e, 0x05, 0x0a, 0x82, 0x46, 0xa2, 0xa6, 0x35, 0x05, 0xc1, 0x98, 0x68, 0x14, 0x4c, 0xb0, 0x06, 0x08, 0x01, 0x12, 0x0f, 0x31, 0x69, 0x96, 0xdd, 0xe9, 0x76, 0x02, 0x9d, 0x19, 0x77, 0xb6, 0x85, 0x7a, 0x65, 0xf4, 0xc6, 0xc4, 0xdf, 0x60, 0xe2, 0x85, 0x3f, 0xc2, 0x9f, 0xc0, 0xa5, 0xf1, 0xca, 0x2b, 0x22, 0xfd, 0x17, 0x26, 0x5e, 0x98, 0xce, 0x4e, 0xdb, 0x0d, 0x74, 0x1b, 0x0e, 0x5e, 0xee, 0x7b, 0x78, 0xe6, 0x79, 0x9e, 0x77, 0xf6, 0xdd, 0x85, 0x15, 0x97, 0xfa, 0x85, 0xd2, 0x4e, 0xca, 0xe6, 0xc5, 0xf4, 0x1a, 0xb5, 0x3d, 0x2e, 0x79, 0xde, 0x4f, 0x17, 0x6c, 0x29, 0x0b, 0xb4, 0x98, 0x16, 0xbb, 0x6e, 0x9a, 0xd9, 0xc2, 0xe3, 0x07, 0x95, 0x34, 0xe3, 0x0e, 0x61, 0xc4, 0x97, 0x65, 0x3b, 0x5d, 0xbe, 0x1d, 0x7a, 0x4a, 0x09, 0x8f, 0xfb, 0x1c, 0x9b, 0xd6, 0x9b, 0x92, 0x47, 0x52, 0x3a, 0xbe, 0xcf, 0xbd, 0x5d, 0x49, 0xbc, 0x32, 0xb5, 0xc9, 0xf4, 0x17, 0x04, 0x89, 0x65, 0xce, 0xf2, 0xd4, 0x2d, 0x79, 0x64, 0x3d, 0xc8, 0x51, 0xe6, 0x6e, 0x92, 0xd7, 0x25, 0x22, 0x7d, 0x3c, 0x0f, 0x7d, 0x36, 0x67, 0xbe, 0x45, 0x19, 0xf1, 0x72, 0xd4, 0x31, 0xd1, 0x14, 0x9a, 0xfd, 0x67, 0xe9, 0xbf, 0xea, 0xd1, 0x64, 0x7c, 0xb9, 0x1e, 0xcf, 0x3e, 0x36, 0xd1, 0x66, 0xbc, 0x51, 0x96, 0x75, 0xf0, 0x2a, 0xf4, 0x79, 0x01, 0x40, 0xce, 0xaf, 0x08, 0x62, 0x1a, 0x53, 0x68, 0x76, 0x20, 0x73, 0x2d, 0x15, 0xc5, 0x22, 0xa5, 0x8f, 0xdb, 0xae, 0x08, 0xb2, 0x64, 0xd4, 0xd0, 0xbc, 0x66, 0xe0, 0x9e, 0x61, 0xa2, 0xe9, 0x2b, 0x30, 0xd6, 0x92, 0xa5, 0x14, 0x9c, 0xc9, 0xa0, 0xe4, 0x05, 0x4c, 0x6c, 0x50, 0xe6, 0xae, 0x73, 0xa7, 0x5e, 0xb1, 0x15, 0xa0, 0x37, 0xb5, 0x0c, 0x0b, 0xca, 0xdc, 0x5c, 0x9d, 0x5a, 0x91, 0x48, 0x69, 0xb9, 0x44, 0x6b, 0xaa, 0x1d, 0x8b, 0x45, 0x53, 0xfa, 0x5a, 0x90, 0x55, 0xd0, 0xaf, 0x20, 0x19, 0x05, 0x1d, 0x10, 0xc0, 0x0b, 0x30, 0xa2, 0xb1, 0x83, 0x40, 0x0b, 0xf0, 0x21, 0x11, 0x62, 0x1c, 0x46, 0xff, 0x85, 0x60, 0xa6, 0x21, 0xae, 0xe1, 0xea, 0xe9, 0x59, 0x9c, 0x74, 0x15, 0x5d, 0xc6, 0xd5, 0x53, 0x93, 0x35, 0xce, 0x34, 0xd9, 0xa7, 0x30, 0xac, 0x0f, 0xc9, 0x31, 0xab, 0x48, 0xa4, 0xb0, 0x6c, 0x52, 0xeb, 0xee, 0x54, 0xdd, 0x66, 0xf5, 0x68, 0x12, 0x6b, 0xe2, 0xeb, 0xf5, 0xb4, 0x02, 0xc1, 0xec, 0x64, 0xd4, 0x51, 0xda, 0xdf, 0x23, 0xb8, 0xda, 0x5e, 0xbb, 0x36, 0xf8, 0x19, 0x00, 0x65, 0x3e, 0xf1, 0xf2, 0x96, 0x4d, 0xa4, 0x89, 0xa6, 0x3a, 0x67, 0xe3, 0x99, 0xb9, 0x68, 0xe9, 0x27, 0xa1, 0xb2, 0xf5, 0x5e, 0x65, 0x44, 0x08, 0x4a, 0xb1, 0xf8, 0x8c, 0x00, 0x37, 0x45, 0x6f, 0x3c, 0x72, 0x1c, 0x8f, 0x48, 0x89, 0xc7, 0xa1, 0xa7, 0x4c, 0x3c, 0x49, 0x39, 0x0b, 0x8d, 0xb1, 0x1e, 0xc2, 0x18, 0x0c, 0x2a, 0xb4, 0xf0, 0x5a, 0xc2, 0xa0, 0x02, 0x5f, 0x87, 0x7e, 0xe1, 0x91, 0x3c, 0x3d, 0xc8, 0xed, 0x11, 0xe6, 0xfa, 0x05, 0x33, 0xd6, 0x48, 0xf7, 0x05, 0x89, 0x55, 0x15, 0xc7, 0x37, 0xe1, 0x5f, 0x87, 0xe4, 0xad, 0xd2, 0x9e, 0x9f, 0x73, 0x2d, 0x9f, 0xec, 0x5b, 0x15, 0xb3, 0xab, 0x51, 0x3a, 0xa0, 0x53, 0x2b, 0x41, 0x46, 0x51, 0xfc, 0x8d, 0xe0, 0xff, 0x48, 0x51, 0x78, 0x14, 0x62, 0xb5, 0x71, 0x84, 0x68, 0xaa, 0x67, 0x3c, 0x03, 0xf1, 0xa2, 0x65, 0xe7, 0xac, 0x40, 0x90, 0x9e, 0xb1, 0x72, 0xa0, 0x68, 0xd9, 0x75, 0x99, 0x7f, 0x71, 0xa6, 0x78, 0x13, 0xe2, 0x54, 0xe8, 0xe3, 0x88, 0x34, 0x63, 0x6a, 0x4e, 0xb7, 0xce, 0x30, 0xa7, 0x86, 0xeb, 0xc1, 0x4d, 0x0d, 0x81, 0x28, 0xf9, 0xcf, 0x61, 0x7c, 0x85, 0xf8, 0x4f, 0xb8, 0xf4, 0x57, 0xb9, 0x6d, 0xed, 0x65, 0x85, 0xae, 0xbe, 0xd4, 0x9e, 0x52, 0xc8, 0x0f, 0x61, 0x22, 0x02, 0x59, 0xdf, 0xbc, 0x31, 0xe8, 0xa1, 0x42, 0x59, 0x18, 0xb2, 0xb7, 0x9b, 0xaa, 0xba, 0x1a, 0xc2, 0x8d, 0x0c, 0xc4, 0x43, 0x6f, 0x1a, 0xee, 0x87, 0xae, 0x2d, 0xe2, 0x97, 0xc4, 0x60, 0x47, 0xc2, 0xe8, 0x45, 0x78, 0x10, 0x7a, 0xb7, 0x89, 0xe5, 0x39, 0x7c, 0x9f, 0x0d, 0xa2, 0x5a, 0x24, 0x61, 0x98, 0x28, 0xf3, 0x3d, 0x06, 0xf8, 0xf4, 0x3a, 0xc1, 0xef, 0x10, 0x0c, 0xb5, 0xd8, 0x73, 0x78, 0xbe, 0xad, 0x83, 0x11, 0xcb, 0x3b, 0x71, 0xe7, 0x9c, 0x5d, 0x5a, 0xf0, 0x27, 0x04, 0xe3, 0xed, 0xde, 0x49, 0x7c, 0xff, 0x0c, 0xb8, 0xd1, 0x7b, 0x2c, 0xf1, 0xe0, 0xa2, 0xed, 0x9a, 0xdf, 0x47, 0x04, 0xa3, 0xad, 0xd7, 0x31, 0x5e, 0x8c, 0x86, 0x6e, 0xfb, 0x6d, 0x48, 0xdc, 0x3d, 0x7f, 0xa3, 0x66, 0xf3, 0x01, 0xc1, 0x48, 0xcb, 0x0b, 0x84, 0x17, 0xa2, 0x31, 0xdb, 0xdd, 0xe5, 0xc4, 0xe2, 0xb9, 0xfb, 0x02, 0x2a, 0x4b, 0x5b, 0x87, 0xc7, 0xc9, 0x8e, 0x1f, 0xc7, 0xc9, 0x8e, 0xb7, 0xd5, 0x24, 0x3a, 0xac, 0x26, 0xd1, 0xb7, 0x6a, 0x12, 0xfd, 0xac, 0x26, 0xd1, 0xcb, 0x85, 0x8b, 0xfd, 0x48, 0x7c, 0x45, 0x68, 0xa7, 0x5b, 0xfd, 0x41, 0xcc, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xef, 0xcb, 0xf1, 0x3e, 0x8c, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // NodeNetworkServiceClient is the client API for NodeNetworkService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type NodeNetworkServiceClient interface { ConfigureNetworking(ctx context.Context, in *ConfigureNetworkingRequest, opts ...grpc.CallOption) (*ConfigureNetworkingResponse, error) ConfigureContainerNetworking(ctx context.Context, in *ConfigureContainerNetworkingRequest, opts ...grpc.CallOption) (*ConfigureContainerNetworkingResponse, error) PingNodeNetworkService(ctx context.Context, in *PingNodeNetworkServiceRequest, opts ...grpc.CallOption) (*PingNodeNetworkServiceResponse, error) GetHostLocalIpAddress(ctx context.Context, in *GetHostLocalIpAddressRequest, opts ...grpc.CallOption) (*GetHostLocalIpAddressResponse, error) } type nodeNetworkServiceClient struct { cc *grpc.ClientConn } func NewNodeNetworkServiceClient(cc *grpc.ClientConn) NodeNetworkServiceClient { return &nodeNetworkServiceClient{cc} } func (c *nodeNetworkServiceClient) ConfigureNetworking(ctx context.Context, in *ConfigureNetworkingRequest, opts ...grpc.CallOption) (*ConfigureNetworkingResponse, error) { out := new(ConfigureNetworkingResponse) err := c.cc.Invoke(ctx, "/azure.nodenetworkservice.NodeNetworkService/ConfigureNetworking", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *nodeNetworkServiceClient) ConfigureContainerNetworking(ctx context.Context, in *ConfigureContainerNetworkingRequest, opts ...grpc.CallOption) (*ConfigureContainerNetworkingResponse, error) { out := new(ConfigureContainerNetworkingResponse) err := c.cc.Invoke(ctx, "/azure.nodenetworkservice.NodeNetworkService/ConfigureContainerNetworking", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *nodeNetworkServiceClient) PingNodeNetworkService(ctx context.Context, in *PingNodeNetworkServiceRequest, opts ...grpc.CallOption) (*PingNodeNetworkServiceResponse, error) { out := new(PingNodeNetworkServiceResponse) err := c.cc.Invoke(ctx, "/azure.nodenetworkservice.NodeNetworkService/PingNodeNetworkService", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *nodeNetworkServiceClient) GetHostLocalIpAddress(ctx context.Context, in *GetHostLocalIpAddressRequest, opts ...grpc.CallOption) (*GetHostLocalIpAddressResponse, error) { out := new(GetHostLocalIpAddressResponse) err := c.cc.Invoke(ctx, "/azure.nodenetworkservice.NodeNetworkService/GetHostLocalIpAddress", in, out, opts...) if err != nil { return nil, err } return out, nil } // NodeNetworkServiceServer is the server API for NodeNetworkService service. type NodeNetworkServiceServer interface { ConfigureNetworking(context.Context, *ConfigureNetworkingRequest) (*ConfigureNetworkingResponse, error) ConfigureContainerNetworking(context.Context, *ConfigureContainerNetworkingRequest) (*ConfigureContainerNetworkingResponse, error) PingNodeNetworkService(context.Context, *PingNodeNetworkServiceRequest) (*PingNodeNetworkServiceResponse, error) GetHostLocalIpAddress(context.Context, *GetHostLocalIpAddressRequest) (*GetHostLocalIpAddressResponse, error) } // UnimplementedNodeNetworkServiceServer can be embedded to have forward compatible implementations. type UnimplementedNodeNetworkServiceServer struct { } func (*UnimplementedNodeNetworkServiceServer) ConfigureNetworking(ctx context.Context, req *ConfigureNetworkingRequest) (*ConfigureNetworkingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ConfigureNetworking not implemented") } func (*UnimplementedNodeNetworkServiceServer) ConfigureContainerNetworking(ctx context.Context, req *ConfigureContainerNetworkingRequest) (*ConfigureContainerNetworkingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ConfigureContainerNetworking not implemented") } func (*UnimplementedNodeNetworkServiceServer) PingNodeNetworkService(ctx context.Context, req *PingNodeNetworkServiceRequest) (*PingNodeNetworkServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PingNodeNetworkService not implemented") } func (*UnimplementedNodeNetworkServiceServer) GetHostLocalIpAddress(ctx context.Context, req *GetHostLocalIpAddressRequest) (*GetHostLocalIpAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetHostLocalIpAddress not implemented") } func RegisterNodeNetworkServiceServer(s *grpc.Server, srv NodeNetworkServiceServer) { s.RegisterService(&_NodeNetworkService_serviceDesc, srv) } func _NodeNetworkService_ConfigureNetworking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ConfigureNetworkingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NodeNetworkServiceServer).ConfigureNetworking(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/azure.nodenetworkservice.NodeNetworkService/ConfigureNetworking", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeNetworkServiceServer).ConfigureNetworking(ctx, req.(*ConfigureNetworkingRequest)) } return interceptor(ctx, in, info, handler) } func _NodeNetworkService_ConfigureContainerNetworking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ConfigureContainerNetworkingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NodeNetworkServiceServer).ConfigureContainerNetworking(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/azure.nodenetworkservice.NodeNetworkService/ConfigureContainerNetworking", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeNetworkServiceServer).ConfigureContainerNetworking(ctx, req.(*ConfigureContainerNetworkingRequest)) } return interceptor(ctx, in, info, handler) } func _NodeNetworkService_PingNodeNetworkService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PingNodeNetworkServiceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NodeNetworkServiceServer).PingNodeNetworkService(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/azure.nodenetworkservice.NodeNetworkService/PingNodeNetworkService", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeNetworkServiceServer).PingNodeNetworkService(ctx, req.(*PingNodeNetworkServiceRequest)) } return interceptor(ctx, in, info, handler) } func _NodeNetworkService_GetHostLocalIpAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetHostLocalIpAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NodeNetworkServiceServer).GetHostLocalIpAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/azure.nodenetworkservice.NodeNetworkService/GetHostLocalIpAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeNetworkServiceServer).GetHostLocalIpAddress(ctx, req.(*GetHostLocalIpAddressRequest)) } return interceptor(ctx, in, info, handler) } var _NodeNetworkService_serviceDesc = grpc.ServiceDesc{ ServiceName: "azure.nodenetworkservice.NodeNetworkService", HandlerType: (*NodeNetworkServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ConfigureNetworking", Handler: _NodeNetworkService_ConfigureNetworking_Handler, }, { MethodName: "ConfigureContainerNetworking", Handler: _NodeNetworkService_ConfigureContainerNetworking_Handler, }, { MethodName: "PingNodeNetworkService", Handler: _NodeNetworkService_PingNodeNetworkService_Handler, }, { MethodName: "GetHostLocalIpAddress", Handler: _NodeNetworkService_GetHostLocalIpAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/Microsoft/hcsshim/pkg/ncproxy/nodenetsvc/v0/nodenetsvc.proto", } func (m *ConfigureNetworkingRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ConfigureNetworkingRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ConfigureNetworkingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if m.RequestType != 0 { i = encodeVarintNodenetsvc(dAtA, i, uint64(m.RequestType)) i-- dAtA[i] = 0x10 } if len(m.ContainerID) > 0 { i -= len(m.ContainerID) copy(dAtA[i:], m.ContainerID) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.ContainerID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ConfigureNetworkingResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ConfigureNetworkingResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ConfigureNetworkingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } return len(dAtA) - i, nil } func (m *PingNodeNetworkServiceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PingNodeNetworkServiceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PingNodeNetworkServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.PingRequestMessage) > 0 { i -= len(m.PingRequestMessage) copy(dAtA[i:], m.PingRequestMessage) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.PingRequestMessage))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *PingNodeNetworkServiceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PingNodeNetworkServiceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PingNodeNetworkServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.PingResponseMessage) > 0 { i -= len(m.PingResponseMessage) copy(dAtA[i:], m.PingResponseMessage) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.PingResponseMessage))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ConfigureContainerNetworkingRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ConfigureContainerNetworkingRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ConfigureContainerNetworkingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.NetworkNamespaceID) > 0 { i -= len(m.NetworkNamespaceID) copy(dAtA[i:], m.NetworkNamespaceID) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.NetworkNamespaceID))) i-- dAtA[i] = 0x1a } if len(m.ContainerID) > 0 { i -= len(m.ContainerID) copy(dAtA[i:], m.ContainerID) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.ContainerID))) i-- dAtA[i] = 0x12 } if m.RequestType != 0 { i = encodeVarintNodenetsvc(dAtA, i, uint64(m.RequestType)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *ConfigureContainerNetworkingResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ConfigureContainerNetworkingResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ConfigureContainerNetworkingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Interfaces) > 0 { for iNdEx := len(m.Interfaces) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Interfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNodenetsvc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *ContainerIPAddress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerIPAddress) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerIPAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.DefaultGateway) > 0 { i -= len(m.DefaultGateway) copy(dAtA[i:], m.DefaultGateway) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.DefaultGateway))) i-- dAtA[i] = 0x2a } if len(m.PrefixLength) > 0 { i -= len(m.PrefixLength) copy(dAtA[i:], m.PrefixLength) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.PrefixLength))) i-- dAtA[i] = 0x22 } if len(m.Ip) > 0 { i -= len(m.Ip) copy(dAtA[i:], m.Ip) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.Ip))) i-- dAtA[i] = 0x1a } if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.Version))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ContainerNetworkInterface) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerNetworkInterface) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerNetworkInterface) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Ipaddresses) > 0 { for iNdEx := len(m.Ipaddresses) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Ipaddresses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNodenetsvc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } } if len(m.NetworkNamespaceID) > 0 { i -= len(m.NetworkNamespaceID) copy(dAtA[i:], m.NetworkNamespaceID) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.NetworkNamespaceID))) i-- dAtA[i] = 0x1a } if len(m.MacAddress) > 0 { i -= len(m.MacAddress) copy(dAtA[i:], m.MacAddress) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.MacAddress))) i-- dAtA[i] = 0x12 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *GetHostLocalIpAddressRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GetHostLocalIpAddressRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetHostLocalIpAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ContainerID) > 0 { i -= len(m.ContainerID) copy(dAtA[i:], m.ContainerID) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.ContainerID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *GetHostLocalIpAddressResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GetHostLocalIpAddressResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetHostLocalIpAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.IpAddr) > 0 { i -= len(m.IpAddr) copy(dAtA[i:], m.IpAddr) i = encodeVarintNodenetsvc(dAtA, i, uint64(len(m.IpAddr))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintNodenetsvc(dAtA []byte, offset int, v uint64) int { offset -= sovNodenetsvc(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *ConfigureNetworkingRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ContainerID) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.RequestType != 0 { n += 1 + sovNodenetsvc(uint64(m.RequestType)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ConfigureNetworkingResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *PingNodeNetworkServiceRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PingRequestMessage) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *PingNodeNetworkServiceResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PingResponseMessage) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ConfigureContainerNetworkingRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.RequestType != 0 { n += 1 + sovNodenetsvc(uint64(m.RequestType)) } l = len(m.ContainerID) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } l = len(m.NetworkNamespaceID) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ConfigureContainerNetworkingResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Interfaces) > 0 { for _, e := range m.Interfaces { l = e.Size() n += 1 + l + sovNodenetsvc(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ContainerIPAddress) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Version) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } l = len(m.Ip) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } l = len(m.PrefixLength) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } l = len(m.DefaultGateway) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ContainerNetworkInterface) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } l = len(m.MacAddress) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } l = len(m.NetworkNamespaceID) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if len(m.Ipaddresses) > 0 { for _, e := range m.Ipaddresses { l = e.Size() n += 1 + l + sovNodenetsvc(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetHostLocalIpAddressRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ContainerID) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetHostLocalIpAddressResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.IpAddr) if l > 0 { n += 1 + l + sovNodenetsvc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovNodenetsvc(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozNodenetsvc(x uint64) (n int) { return sovNodenetsvc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *ConfigureNetworkingRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ConfigureNetworkingRequest{`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `RequestType:` + fmt.Sprintf("%v", this.RequestType) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ConfigureNetworkingResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ConfigureNetworkingResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *PingNodeNetworkServiceRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PingNodeNetworkServiceRequest{`, `PingRequestMessage:` + fmt.Sprintf("%v", this.PingRequestMessage) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *PingNodeNetworkServiceResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PingNodeNetworkServiceResponse{`, `PingResponseMessage:` + fmt.Sprintf("%v", this.PingResponseMessage) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ConfigureContainerNetworkingRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ConfigureContainerNetworkingRequest{`, `RequestType:` + fmt.Sprintf("%v", this.RequestType) + `,`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `NetworkNamespaceID:` + fmt.Sprintf("%v", this.NetworkNamespaceID) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ConfigureContainerNetworkingResponse) String() string { if this == nil { return "nil" } repeatedStringForInterfaces := "[]*ContainerNetworkInterface{" for _, f := range this.Interfaces { repeatedStringForInterfaces += strings.Replace(f.String(), "ContainerNetworkInterface", "ContainerNetworkInterface", 1) + "," } repeatedStringForInterfaces += "}" s := strings.Join([]string{`&ConfigureContainerNetworkingResponse{`, `Interfaces:` + repeatedStringForInterfaces + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ContainerIPAddress) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerIPAddress{`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `Ip:` + fmt.Sprintf("%v", this.Ip) + `,`, `PrefixLength:` + fmt.Sprintf("%v", this.PrefixLength) + `,`, `DefaultGateway:` + fmt.Sprintf("%v", this.DefaultGateway) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ContainerNetworkInterface) String() string { if this == nil { return "nil" } repeatedStringForIpaddresses := "[]*ContainerIPAddress{" for _, f := range this.Ipaddresses { repeatedStringForIpaddresses += strings.Replace(f.String(), "ContainerIPAddress", "ContainerIPAddress", 1) + "," } repeatedStringForIpaddresses += "}" s := strings.Join([]string{`&ContainerNetworkInterface{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `MacAddress:` + fmt.Sprintf("%v", this.MacAddress) + `,`, `NetworkNamespaceID:` + fmt.Sprintf("%v", this.NetworkNamespaceID) + `,`, `Ipaddresses:` + repeatedStringForIpaddresses + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetHostLocalIpAddressRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetHostLocalIpAddressRequest{`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetHostLocalIpAddressResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetHostLocalIpAddressResponse{`, `IpAddr:` + fmt.Sprintf("%v", this.IpAddr) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func valueToStringNodenetsvc(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } func (m *ConfigureNetworkingRequest) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ConfigureNetworkingRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ConfigureNetworkingRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.ContainerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType) } m.RequestType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.RequestType |= RequestType(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ConfigureNetworkingResponse) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ConfigureNetworkingResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ConfigureNetworkingResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PingNodeNetworkServiceRequest) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PingNodeNetworkServiceRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PingNodeNetworkServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PingRequestMessage", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.PingRequestMessage = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PingNodeNetworkServiceResponse) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PingNodeNetworkServiceResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PingNodeNetworkServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PingResponseMessage", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.PingResponseMessage = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ConfigureContainerNetworkingRequest) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ConfigureContainerNetworkingRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ConfigureContainerNetworkingRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType) } m.RequestType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.RequestType |= RequestType(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.ContainerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NetworkNamespaceID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.NetworkNamespaceID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ConfigureContainerNetworkingResponse) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ConfigureContainerNetworkingResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ConfigureContainerNetworkingResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.Interfaces = append(m.Interfaces, &ContainerNetworkInterface{}) if err := m.Interfaces[len(m.Interfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerIPAddress) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerIPAddress: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerIPAddress: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.Ip = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PrefixLength", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.PrefixLength = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DefaultGateway", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.DefaultGateway = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerNetworkInterface) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerNetworkInterface: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerNetworkInterface: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MacAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.MacAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NetworkNamespaceID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.NetworkNamespaceID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ipaddresses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.Ipaddresses = append(m.Ipaddresses, &ContainerIPAddress{}) if err := m.Ipaddresses[len(m.Ipaddresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GetHostLocalIpAddressRequest) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GetHostLocalIpAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetHostLocalIpAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.ContainerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GetHostLocalIpAddressResponse) 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 ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GetHostLocalIpAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetHostLocalIpAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IpAddr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNodenetsvc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthNodenetsvc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNodenetsvc } if postIndex > l { return io.ErrUnexpectedEOF } m.IpAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNodenetsvc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNodenetsvc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipNodenetsvc(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowNodenetsvc } 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, ErrIntOverflowNodenetsvc } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowNodenetsvc } 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, ErrInvalidLengthNodenetsvc } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupNodenetsvc } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthNodenetsvc } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthNodenetsvc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNodenetsvc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNodenetsvc = fmt.Errorf("proto: unexpected end of group") )