// Code generated by protoc-gen-gogo. DO NOT EDIT. // github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v0/networkconfigproxy.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 CreateNetworkRequest_NetworkMode int32 // Deprecated: Do not use. const ( CreateNetworkRequest_Transparent CreateNetworkRequest_NetworkMode = 0 // Deprecated: Do not use. CreateNetworkRequest_NAT CreateNetworkRequest_NetworkMode = 1 // Deprecated: Do not use. ) var CreateNetworkRequest_NetworkMode_name = map[int32]string{ 0: "Transparent", 1: "NAT", } var CreateNetworkRequest_NetworkMode_value = map[string]int32{ "Transparent": 0, "NAT": 1, } func (x CreateNetworkRequest_NetworkMode) String() string { return proto.EnumName(CreateNetworkRequest_NetworkMode_name, int32(x)) } func (CreateNetworkRequest_NetworkMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{6, 0} } type CreateNetworkRequest_IpamType int32 // Deprecated: Do not use. const ( CreateNetworkRequest_Static CreateNetworkRequest_IpamType = 0 // Deprecated: Do not use. CreateNetworkRequest_DHCP CreateNetworkRequest_IpamType = 1 // Deprecated: Do not use. ) var CreateNetworkRequest_IpamType_name = map[int32]string{ 0: "Static", 1: "DHCP", } var CreateNetworkRequest_IpamType_value = map[string]int32{ "Static": 0, "DHCP": 1, } func (x CreateNetworkRequest_IpamType) String() string { return proto.EnumName(CreateNetworkRequest_IpamType_name, int32(x)) } func (CreateNetworkRequest_IpamType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{6, 1} } // Deprecated: Do not use. type AddNICRequest struct { ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Deprecated: Do not use. NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` // Deprecated: Do not use. EndpointName string `protobuf:"bytes,3,opt,name=endpoint_name,json=endpointName,proto3" json:"endpoint_name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddNICRequest) Reset() { *m = AddNICRequest{} } func (*AddNICRequest) ProtoMessage() {} func (*AddNICRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{0} } func (m *AddNICRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AddNICRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AddNICRequest.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 *AddNICRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AddNICRequest.Merge(m, src) } func (m *AddNICRequest) XXX_Size() int { return m.Size() } func (m *AddNICRequest) XXX_DiscardUnknown() { xxx_messageInfo_AddNICRequest.DiscardUnknown(m) } var xxx_messageInfo_AddNICRequest proto.InternalMessageInfo // Deprecated: Do not use. type AddNICResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddNICResponse) Reset() { *m = AddNICResponse{} } func (*AddNICResponse) ProtoMessage() {} func (*AddNICResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{1} } func (m *AddNICResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AddNICResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AddNICResponse.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 *AddNICResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_AddNICResponse.Merge(m, src) } func (m *AddNICResponse) XXX_Size() int { return m.Size() } func (m *AddNICResponse) XXX_DiscardUnknown() { xxx_messageInfo_AddNICResponse.DiscardUnknown(m) } var xxx_messageInfo_AddNICResponse proto.InternalMessageInfo // Deprecated: Do not use. type ModifyNICRequest struct { ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Deprecated: Do not use. NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` // Deprecated: Do not use. EndpointName string `protobuf:"bytes,3,opt,name=endpoint_name,json=endpointName,proto3" json:"endpoint_name,omitempty"` // Deprecated: Do not use. IovPolicySettings *IovEndpointPolicySetting `protobuf:"bytes,4,opt,name=iov_policy_settings,json=iovPolicySettings,proto3" json:"iov_policy_settings,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ModifyNICRequest) Reset() { *m = ModifyNICRequest{} } func (*ModifyNICRequest) ProtoMessage() {} func (*ModifyNICRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{2} } func (m *ModifyNICRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ModifyNICRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ModifyNICRequest.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 *ModifyNICRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ModifyNICRequest.Merge(m, src) } func (m *ModifyNICRequest) XXX_Size() int { return m.Size() } func (m *ModifyNICRequest) XXX_DiscardUnknown() { xxx_messageInfo_ModifyNICRequest.DiscardUnknown(m) } var xxx_messageInfo_ModifyNICRequest proto.InternalMessageInfo // Deprecated: Do not use. type ModifyNICResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ModifyNICResponse) Reset() { *m = ModifyNICResponse{} } func (*ModifyNICResponse) ProtoMessage() {} func (*ModifyNICResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{3} } func (m *ModifyNICResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ModifyNICResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ModifyNICResponse.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 *ModifyNICResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ModifyNICResponse.Merge(m, src) } func (m *ModifyNICResponse) XXX_Size() int { return m.Size() } func (m *ModifyNICResponse) XXX_DiscardUnknown() { xxx_messageInfo_ModifyNICResponse.DiscardUnknown(m) } var xxx_messageInfo_ModifyNICResponse proto.InternalMessageInfo // Deprecated: Do not use. type DeleteNICRequest struct { ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Deprecated: Do not use. NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` // Deprecated: Do not use. EndpointName string `protobuf:"bytes,3,opt,name=endpoint_name,json=endpointName,proto3" json:"endpoint_name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteNICRequest) Reset() { *m = DeleteNICRequest{} } func (*DeleteNICRequest) ProtoMessage() {} func (*DeleteNICRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{4} } func (m *DeleteNICRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DeleteNICRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DeleteNICRequest.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 *DeleteNICRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteNICRequest.Merge(m, src) } func (m *DeleteNICRequest) XXX_Size() int { return m.Size() } func (m *DeleteNICRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteNICRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteNICRequest proto.InternalMessageInfo // Deprecated: Do not use. type DeleteNICResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteNICResponse) Reset() { *m = DeleteNICResponse{} } func (*DeleteNICResponse) ProtoMessage() {} func (*DeleteNICResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{5} } func (m *DeleteNICResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DeleteNICResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DeleteNICResponse.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 *DeleteNICResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteNICResponse.Merge(m, src) } func (m *DeleteNICResponse) XXX_Size() int { return m.Size() } func (m *DeleteNICResponse) XXX_DiscardUnknown() { xxx_messageInfo_DeleteNICResponse.DiscardUnknown(m) } var xxx_messageInfo_DeleteNICResponse proto.InternalMessageInfo // Deprecated: Do not use. type CreateNetworkRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. Mode CreateNetworkRequest_NetworkMode `protobuf:"varint,2,opt,name=mode,proto3,enum=ncproxygrpc.CreateNetworkRequest_NetworkMode" json:"mode,omitempty"` // Deprecated: Do not use. SwitchName string `protobuf:"bytes,3,opt,name=switch_name,json=switchName,proto3" json:"switch_name,omitempty"` // Deprecated: Do not use. IpamType CreateNetworkRequest_IpamType `protobuf:"varint,4,opt,name=ipam_type,json=ipamType,proto3,enum=ncproxygrpc.CreateNetworkRequest_IpamType" json:"ipam_type,omitempty"` // Deprecated: Do not use. SubnetIpaddressPrefix []string `protobuf:"bytes,5,rep,name=subnet_ipaddress_prefix,json=subnetIpaddressPrefix,proto3" json:"subnet_ipaddress_prefix,omitempty"` // Deprecated: Do not use. DefaultGateway string `protobuf:"bytes,6,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 *CreateNetworkRequest) Reset() { *m = CreateNetworkRequest{} } func (*CreateNetworkRequest) ProtoMessage() {} func (*CreateNetworkRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{6} } func (m *CreateNetworkRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CreateNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CreateNetworkRequest.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 *CreateNetworkRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateNetworkRequest.Merge(m, src) } func (m *CreateNetworkRequest) XXX_Size() int { return m.Size() } func (m *CreateNetworkRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateNetworkRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateNetworkRequest proto.InternalMessageInfo // Deprecated: Do not use. type CreateNetworkResponse struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateNetworkResponse) Reset() { *m = CreateNetworkResponse{} } func (*CreateNetworkResponse) ProtoMessage() {} func (*CreateNetworkResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{7} } func (m *CreateNetworkResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CreateNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CreateNetworkResponse.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 *CreateNetworkResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateNetworkResponse.Merge(m, src) } func (m *CreateNetworkResponse) XXX_Size() int { return m.Size() } func (m *CreateNetworkResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateNetworkResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateNetworkResponse proto.InternalMessageInfo // Deprecated: Do not use. type PortNameEndpointPolicySetting struct { PortName string `protobuf:"bytes,1,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PortNameEndpointPolicySetting) Reset() { *m = PortNameEndpointPolicySetting{} } func (*PortNameEndpointPolicySetting) ProtoMessage() {} func (*PortNameEndpointPolicySetting) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{8} } func (m *PortNameEndpointPolicySetting) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PortNameEndpointPolicySetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PortNameEndpointPolicySetting.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 *PortNameEndpointPolicySetting) XXX_Merge(src proto.Message) { xxx_messageInfo_PortNameEndpointPolicySetting.Merge(m, src) } func (m *PortNameEndpointPolicySetting) XXX_Size() int { return m.Size() } func (m *PortNameEndpointPolicySetting) XXX_DiscardUnknown() { xxx_messageInfo_PortNameEndpointPolicySetting.DiscardUnknown(m) } var xxx_messageInfo_PortNameEndpointPolicySetting proto.InternalMessageInfo // Deprecated: Do not use. type IovEndpointPolicySetting struct { IovOffloadWeight uint32 `protobuf:"varint,1,opt,name=iov_offload_weight,json=iovOffloadWeight,proto3" json:"iov_offload_weight,omitempty"` // Deprecated: Do not use. QueuePairsRequested uint32 `protobuf:"varint,2,opt,name=queue_pairs_requested,json=queuePairsRequested,proto3" json:"queue_pairs_requested,omitempty"` // Deprecated: Do not use. InterruptModeration uint32 `protobuf:"varint,3,opt,name=interrupt_moderation,json=interruptModeration,proto3" json:"interrupt_moderation,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IovEndpointPolicySetting) Reset() { *m = IovEndpointPolicySetting{} } func (*IovEndpointPolicySetting) ProtoMessage() {} func (*IovEndpointPolicySetting) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{9} } func (m *IovEndpointPolicySetting) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IovEndpointPolicySetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_IovEndpointPolicySetting.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 *IovEndpointPolicySetting) XXX_Merge(src proto.Message) { xxx_messageInfo_IovEndpointPolicySetting.Merge(m, src) } func (m *IovEndpointPolicySetting) XXX_Size() int { return m.Size() } func (m *IovEndpointPolicySetting) XXX_DiscardUnknown() { xxx_messageInfo_IovEndpointPolicySetting.DiscardUnknown(m) } var xxx_messageInfo_IovEndpointPolicySetting proto.InternalMessageInfo // Deprecated: Do not use. type DnsSetting struct { ServerIpAddrs []string `protobuf:"bytes,1,rep,name=server_ip_addrs,json=serverIpAddrs,proto3" json:"server_ip_addrs,omitempty"` // Deprecated: Do not use. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // Deprecated: Do not use. Search []string `protobuf:"bytes,3,rep,name=search,proto3" json:"search,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DnsSetting) Reset() { *m = DnsSetting{} } func (*DnsSetting) ProtoMessage() {} func (*DnsSetting) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{10} } func (m *DnsSetting) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DnsSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DnsSetting.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 *DnsSetting) XXX_Merge(src proto.Message) { xxx_messageInfo_DnsSetting.Merge(m, src) } func (m *DnsSetting) XXX_Size() int { return m.Size() } func (m *DnsSetting) XXX_DiscardUnknown() { xxx_messageInfo_DnsSetting.DiscardUnknown(m) } var xxx_messageInfo_DnsSetting proto.InternalMessageInfo // Deprecated: Do not use. type CreateEndpointRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. Macaddress string `protobuf:"bytes,2,opt,name=macaddress,proto3" json:"macaddress,omitempty"` // Deprecated: Do not use. Ipaddress string `protobuf:"bytes,3,opt,name=ipaddress,proto3" json:"ipaddress,omitempty"` // Deprecated: Do not use. IpaddressPrefixlength string `protobuf:"bytes,4,opt,name=ipaddress_prefixlength,json=ipaddressPrefixlength,proto3" json:"ipaddress_prefixlength,omitempty"` // Deprecated: Do not use. NetworkName string `protobuf:"bytes,5,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"` // Deprecated: Do not use. PortnamePolicySetting *PortNameEndpointPolicySetting `protobuf:"bytes,6,opt,name=portname_policy_setting,json=portnamePolicySetting,proto3" json:"portname_policy_setting,omitempty"` // Deprecated: Do not use. IovPolicySettings *IovEndpointPolicySetting `protobuf:"bytes,7,opt,name=iov_policy_settings,json=iovPolicySettings,proto3" json:"iov_policy_settings,omitempty"` // Deprecated: Do not use. DnsSetting *DnsSetting `protobuf:"bytes,16,opt,name=dns_setting,json=dnsSetting,proto3" json:"dns_setting,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateEndpointRequest) Reset() { *m = CreateEndpointRequest{} } func (*CreateEndpointRequest) ProtoMessage() {} func (*CreateEndpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{11} } func (m *CreateEndpointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CreateEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CreateEndpointRequest.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 *CreateEndpointRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateEndpointRequest.Merge(m, src) } func (m *CreateEndpointRequest) XXX_Size() int { return m.Size() } func (m *CreateEndpointRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateEndpointRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateEndpointRequest proto.InternalMessageInfo // Deprecated: Do not use. type CreateEndpointResponse struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateEndpointResponse) Reset() { *m = CreateEndpointResponse{} } func (*CreateEndpointResponse) ProtoMessage() {} func (*CreateEndpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{12} } func (m *CreateEndpointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CreateEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CreateEndpointResponse.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 *CreateEndpointResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateEndpointResponse.Merge(m, src) } func (m *CreateEndpointResponse) XXX_Size() int { return m.Size() } func (m *CreateEndpointResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateEndpointResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateEndpointResponse proto.InternalMessageInfo // Deprecated: Do not use. type AddEndpointRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. NamespaceID string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddEndpointRequest) Reset() { *m = AddEndpointRequest{} } func (*AddEndpointRequest) ProtoMessage() {} func (*AddEndpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{13} } func (m *AddEndpointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AddEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AddEndpointRequest.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 *AddEndpointRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AddEndpointRequest.Merge(m, src) } func (m *AddEndpointRequest) XXX_Size() int { return m.Size() } func (m *AddEndpointRequest) XXX_DiscardUnknown() { xxx_messageInfo_AddEndpointRequest.DiscardUnknown(m) } var xxx_messageInfo_AddEndpointRequest proto.InternalMessageInfo // Deprecated: Do not use. type AddEndpointResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddEndpointResponse) Reset() { *m = AddEndpointResponse{} } func (*AddEndpointResponse) ProtoMessage() {} func (*AddEndpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{14} } func (m *AddEndpointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AddEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AddEndpointResponse.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 *AddEndpointResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_AddEndpointResponse.Merge(m, src) } func (m *AddEndpointResponse) XXX_Size() int { return m.Size() } func (m *AddEndpointResponse) XXX_DiscardUnknown() { xxx_messageInfo_AddEndpointResponse.DiscardUnknown(m) } var xxx_messageInfo_AddEndpointResponse proto.InternalMessageInfo // Deprecated: Do not use. type DeleteEndpointRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteEndpointRequest) Reset() { *m = DeleteEndpointRequest{} } func (*DeleteEndpointRequest) ProtoMessage() {} func (*DeleteEndpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{15} } func (m *DeleteEndpointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DeleteEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DeleteEndpointRequest.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 *DeleteEndpointRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteEndpointRequest.Merge(m, src) } func (m *DeleteEndpointRequest) XXX_Size() int { return m.Size() } func (m *DeleteEndpointRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteEndpointRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteEndpointRequest proto.InternalMessageInfo // Deprecated: Do not use. type DeleteEndpointResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteEndpointResponse) Reset() { *m = DeleteEndpointResponse{} } func (*DeleteEndpointResponse) ProtoMessage() {} func (*DeleteEndpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{16} } func (m *DeleteEndpointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DeleteEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DeleteEndpointResponse.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 *DeleteEndpointResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteEndpointResponse.Merge(m, src) } func (m *DeleteEndpointResponse) XXX_Size() int { return m.Size() } func (m *DeleteEndpointResponse) XXX_DiscardUnknown() { xxx_messageInfo_DeleteEndpointResponse.DiscardUnknown(m) } var xxx_messageInfo_DeleteEndpointResponse proto.InternalMessageInfo // Deprecated: Do not use. type DeleteNetworkRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteNetworkRequest) Reset() { *m = DeleteNetworkRequest{} } func (*DeleteNetworkRequest) ProtoMessage() {} func (*DeleteNetworkRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{17} } func (m *DeleteNetworkRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DeleteNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DeleteNetworkRequest.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 *DeleteNetworkRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteNetworkRequest.Merge(m, src) } func (m *DeleteNetworkRequest) XXX_Size() int { return m.Size() } func (m *DeleteNetworkRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteNetworkRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteNetworkRequest proto.InternalMessageInfo // Deprecated: Do not use. type DeleteNetworkResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteNetworkResponse) Reset() { *m = DeleteNetworkResponse{} } func (*DeleteNetworkResponse) ProtoMessage() {} func (*DeleteNetworkResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{18} } func (m *DeleteNetworkResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DeleteNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DeleteNetworkResponse.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 *DeleteNetworkResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteNetworkResponse.Merge(m, src) } func (m *DeleteNetworkResponse) XXX_Size() int { return m.Size() } func (m *DeleteNetworkResponse) XXX_DiscardUnknown() { xxx_messageInfo_DeleteNetworkResponse.DiscardUnknown(m) } var xxx_messageInfo_DeleteNetworkResponse proto.InternalMessageInfo // Deprecated: Do not use. type GetEndpointRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetEndpointRequest) Reset() { *m = GetEndpointRequest{} } func (*GetEndpointRequest) ProtoMessage() {} func (*GetEndpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{19} } func (m *GetEndpointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetEndpointRequest.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 *GetEndpointRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetEndpointRequest.Merge(m, src) } func (m *GetEndpointRequest) XXX_Size() int { return m.Size() } func (m *GetEndpointRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetEndpointRequest.DiscardUnknown(m) } var xxx_messageInfo_GetEndpointRequest proto.InternalMessageInfo // Deprecated: Do not use. type GetEndpointResponse struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` // Deprecated: Do not use. Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` // Deprecated: Do not use. DnsSetting *DnsSetting `protobuf:"bytes,5,opt,name=dns_setting,json=dnsSetting,proto3" json:"dns_setting,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetEndpointResponse) Reset() { *m = GetEndpointResponse{} } func (*GetEndpointResponse) ProtoMessage() {} func (*GetEndpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{20} } func (m *GetEndpointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetEndpointResponse.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 *GetEndpointResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetEndpointResponse.Merge(m, src) } func (m *GetEndpointResponse) XXX_Size() int { return m.Size() } func (m *GetEndpointResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetEndpointResponse.DiscardUnknown(m) } var xxx_messageInfo_GetEndpointResponse proto.InternalMessageInfo // Deprecated: Do not use. type GetNetworkRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetNetworkRequest) Reset() { *m = GetNetworkRequest{} } func (*GetNetworkRequest) ProtoMessage() {} func (*GetNetworkRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{21} } func (m *GetNetworkRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetNetworkRequest.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 *GetNetworkRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetNetworkRequest.Merge(m, src) } func (m *GetNetworkRequest) XXX_Size() int { return m.Size() } func (m *GetNetworkRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetNetworkRequest.DiscardUnknown(m) } var xxx_messageInfo_GetNetworkRequest proto.InternalMessageInfo // Deprecated: Do not use. type GetNetworkResponse struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetNetworkResponse) Reset() { *m = GetNetworkResponse{} } func (*GetNetworkResponse) ProtoMessage() {} func (*GetNetworkResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{22} } func (m *GetNetworkResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetNetworkResponse.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 *GetNetworkResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetNetworkResponse.Merge(m, src) } func (m *GetNetworkResponse) XXX_Size() int { return m.Size() } func (m *GetNetworkResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetNetworkResponse.DiscardUnknown(m) } var xxx_messageInfo_GetNetworkResponse proto.InternalMessageInfo // Deprecated: Do not use. type GetEndpointsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetEndpointsRequest) Reset() { *m = GetEndpointsRequest{} } func (*GetEndpointsRequest) ProtoMessage() {} func (*GetEndpointsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{23} } func (m *GetEndpointsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetEndpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetEndpointsRequest.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 *GetEndpointsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetEndpointsRequest.Merge(m, src) } func (m *GetEndpointsRequest) XXX_Size() int { return m.Size() } func (m *GetEndpointsRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetEndpointsRequest.DiscardUnknown(m) } var xxx_messageInfo_GetEndpointsRequest proto.InternalMessageInfo // Deprecated: Do not use. type GetEndpointsResponse struct { Endpoints []*GetEndpointResponse `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetEndpointsResponse) Reset() { *m = GetEndpointsResponse{} } func (*GetEndpointsResponse) ProtoMessage() {} func (*GetEndpointsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{24} } func (m *GetEndpointsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetEndpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetEndpointsResponse.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 *GetEndpointsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetEndpointsResponse.Merge(m, src) } func (m *GetEndpointsResponse) XXX_Size() int { return m.Size() } func (m *GetEndpointsResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetEndpointsResponse.DiscardUnknown(m) } var xxx_messageInfo_GetEndpointsResponse proto.InternalMessageInfo // Deprecated: Do not use. type GetNetworksRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetNetworksRequest) Reset() { *m = GetNetworksRequest{} } func (*GetNetworksRequest) ProtoMessage() {} func (*GetNetworksRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{25} } func (m *GetNetworksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetNetworksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetNetworksRequest.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 *GetNetworksRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetNetworksRequest.Merge(m, src) } func (m *GetNetworksRequest) XXX_Size() int { return m.Size() } func (m *GetNetworksRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetNetworksRequest.DiscardUnknown(m) } var xxx_messageInfo_GetNetworksRequest proto.InternalMessageInfo // Deprecated: Do not use. type GetNetworksResponse struct { Networks []*GetNetworkResponse `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"` // Deprecated: Do not use. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetNetworksResponse) Reset() { *m = GetNetworksResponse{} } func (*GetNetworksResponse) ProtoMessage() {} func (*GetNetworksResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2f3a1f7794389dcf, []int{26} } func (m *GetNetworksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GetNetworksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GetNetworksResponse.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 *GetNetworksResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetNetworksResponse.Merge(m, src) } func (m *GetNetworksResponse) XXX_Size() int { return m.Size() } func (m *GetNetworksResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetNetworksResponse.DiscardUnknown(m) } var xxx_messageInfo_GetNetworksResponse proto.InternalMessageInfo func init() { proto.RegisterEnum("ncproxygrpc.CreateNetworkRequest_NetworkMode", CreateNetworkRequest_NetworkMode_name, CreateNetworkRequest_NetworkMode_value) proto.RegisterEnum("ncproxygrpc.CreateNetworkRequest_IpamType", CreateNetworkRequest_IpamType_name, CreateNetworkRequest_IpamType_value) proto.RegisterType((*AddNICRequest)(nil), "ncproxygrpc.AddNICRequest") proto.RegisterType((*AddNICResponse)(nil), "ncproxygrpc.AddNICResponse") proto.RegisterType((*ModifyNICRequest)(nil), "ncproxygrpc.ModifyNICRequest") proto.RegisterType((*ModifyNICResponse)(nil), "ncproxygrpc.ModifyNICResponse") proto.RegisterType((*DeleteNICRequest)(nil), "ncproxygrpc.DeleteNICRequest") proto.RegisterType((*DeleteNICResponse)(nil), "ncproxygrpc.DeleteNICResponse") proto.RegisterType((*CreateNetworkRequest)(nil), "ncproxygrpc.CreateNetworkRequest") proto.RegisterType((*CreateNetworkResponse)(nil), "ncproxygrpc.CreateNetworkResponse") proto.RegisterType((*PortNameEndpointPolicySetting)(nil), "ncproxygrpc.PortNameEndpointPolicySetting") proto.RegisterType((*IovEndpointPolicySetting)(nil), "ncproxygrpc.IovEndpointPolicySetting") proto.RegisterType((*DnsSetting)(nil), "ncproxygrpc.DnsSetting") proto.RegisterType((*CreateEndpointRequest)(nil), "ncproxygrpc.CreateEndpointRequest") proto.RegisterType((*CreateEndpointResponse)(nil), "ncproxygrpc.CreateEndpointResponse") proto.RegisterType((*AddEndpointRequest)(nil), "ncproxygrpc.AddEndpointRequest") proto.RegisterType((*AddEndpointResponse)(nil), "ncproxygrpc.AddEndpointResponse") proto.RegisterType((*DeleteEndpointRequest)(nil), "ncproxygrpc.DeleteEndpointRequest") proto.RegisterType((*DeleteEndpointResponse)(nil), "ncproxygrpc.DeleteEndpointResponse") proto.RegisterType((*DeleteNetworkRequest)(nil), "ncproxygrpc.DeleteNetworkRequest") proto.RegisterType((*DeleteNetworkResponse)(nil), "ncproxygrpc.DeleteNetworkResponse") proto.RegisterType((*GetEndpointRequest)(nil), "ncproxygrpc.GetEndpointRequest") proto.RegisterType((*GetEndpointResponse)(nil), "ncproxygrpc.GetEndpointResponse") proto.RegisterType((*GetNetworkRequest)(nil), "ncproxygrpc.GetNetworkRequest") proto.RegisterType((*GetNetworkResponse)(nil), "ncproxygrpc.GetNetworkResponse") proto.RegisterType((*GetEndpointsRequest)(nil), "ncproxygrpc.GetEndpointsRequest") proto.RegisterType((*GetEndpointsResponse)(nil), "ncproxygrpc.GetEndpointsResponse") proto.RegisterType((*GetNetworksRequest)(nil), "ncproxygrpc.GetNetworksRequest") proto.RegisterType((*GetNetworksResponse)(nil), "ncproxygrpc.GetNetworksResponse") } func init() { proto.RegisterFile("github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v0/networkconfigproxy.proto", fileDescriptor_2f3a1f7794389dcf) } var fileDescriptor_2f3a1f7794389dcf = []byte{ // 1318 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdd, 0x8e, 0xdb, 0x44, 0x14, 0x8e, 0x93, 0xdd, 0x34, 0x7b, 0x9c, 0x4d, 0xb3, 0xb3, 0x7f, 0x26, 0x6d, 0x93, 0xd4, 0x55, 0x45, 0x55, 0x60, 0x53, 0xa5, 0x3f, 0x88, 0x0a, 0x09, 0x6d, 0xb3, 0x55, 0x49, 0x61, 0xd3, 0x68, 0xbb, 0x08, 0x28, 0x12, 0x96, 0x6b, 0x4f, 0x92, 0x51, 0x37, 0x1e, 0xd7, 0x9e, 0x64, 0x9b, 0x3b, 0xee, 0x78, 0x03, 0x24, 0x9e, 0x04, 0xee, 0xb8, 0x2d, 0x77, 0x5c, 0x72, 0x55, 0xd1, 0x3c, 0x03, 0x0f, 0x80, 0x3c, 0x63, 0x3b, 0xf6, 0x90, 0xec, 0x0f, 0xdc, 0xf4, 0x2a, 0xf2, 0x39, 0xdf, 0xf9, 0x99, 0x73, 0xbe, 0x73, 0x66, 0x14, 0xe8, 0xf6, 0x09, 0x1b, 0x8c, 0x9e, 0xef, 0x58, 0x74, 0xd8, 0xd8, 0x27, 0x96, 0x47, 0x7d, 0xda, 0x63, 0x8d, 0x81, 0xe5, 0xfb, 0x03, 0x32, 0x6c, 0xb8, 0x2f, 0xfa, 0x0d, 0xc7, 0x72, 0x3d, 0xfa, 0x6a, 0x12, 0xfd, 0xf6, 0x3d, 0xd7, 0x6a, 0x8c, 0x6f, 0x35, 0x1c, 0xcc, 0x8e, 0xa9, 0xf7, 0xc2, 0xa2, 0x4e, 0x8f, 0xf4, 0xb9, 0x66, 0xc7, 0xf5, 0x28, 0xa3, 0x48, 0x4d, 0x00, 0xf5, 0x9f, 0x14, 0x58, 0xdd, 0xb5, 0xed, 0x4e, 0xbb, 0x75, 0x80, 0x5f, 0x8e, 0xb0, 0xcf, 0xd0, 0x1d, 0x28, 0x5a, 0xd4, 0x61, 0x26, 0x71, 0xb0, 0x67, 0x10, 0x5b, 0x53, 0xea, 0xca, 0x8d, 0x95, 0x07, 0x6b, 0xd3, 0x37, 0x35, 0xb5, 0x15, 0xc9, 0xdb, 0x7b, 0x9a, 0x72, 0xa0, 0xc6, 0xb0, 0xb6, 0x8d, 0x74, 0xc8, 0x3b, 0xc4, 0x0a, 0xf0, 0x59, 0x8e, 0x57, 0xa7, 0x6f, 0x6a, 0xcb, 0x1d, 0x62, 0x71, 0xe4, 0xb2, 0x43, 0xac, 0xb6, 0x8d, 0xde, 0x87, 0x55, 0xec, 0xd8, 0x2e, 0x25, 0x0e, 0x33, 0x1c, 0x73, 0x88, 0xb5, 0x1c, 0x87, 0x66, 0x35, 0xe5, 0xa0, 0x18, 0x29, 0x3a, 0xe6, 0x10, 0xdf, 0xcf, 0x6a, 0x8a, 0xbe, 0x01, 0xa5, 0x28, 0x2f, 0xdf, 0xa5, 0x8e, 0x2f, 0xa4, 0x7f, 0x2b, 0x50, 0xde, 0xa7, 0x36, 0xe9, 0x4d, 0xde, 0xa9, 0x8c, 0xd1, 0xb7, 0xb0, 0x4e, 0xe8, 0xd8, 0x70, 0xe9, 0x11, 0xb1, 0x26, 0x86, 0x8f, 0x19, 0x23, 0x4e, 0xdf, 0xd7, 0x96, 0xea, 0xca, 0x0d, 0xb5, 0x79, 0x7d, 0x27, 0x51, 0xf1, 0x9d, 0x36, 0x1d, 0x3f, 0x0c, 0x4d, 0xbb, 0x1c, 0xfe, 0x54, 0xa0, 0xb9, 0xd7, 0x35, 0x42, 0xc7, 0x29, 0xa9, 0xcf, 0x8f, 0xbd, 0x0d, 0x6b, 0x89, 0x53, 0x27, 0xea, 0xf1, 0xb3, 0x02, 0xe5, 0x3d, 0x7c, 0x84, 0x19, 0x7e, 0xf7, 0x3a, 0xb8, 0x0d, 0x6b, 0x89, 0xd4, 0x12, 0x49, 0xff, 0x92, 0x83, 0x8d, 0x96, 0x87, 0x4d, 0x86, 0x3b, 0x82, 0xa3, 0x51, 0xe2, 0x5b, 0xb0, 0xc4, 0xbd, 0x2a, 0xb1, 0x57, 0xfe, 0x8d, 0x1e, 0xc2, 0xd2, 0x90, 0xda, 0x98, 0x27, 0x56, 0x6a, 0x7e, 0x94, 0x2a, 0xe7, 0x3c, 0x47, 0x3b, 0xe1, 0xe7, 0x3e, 0xb5, 0xb1, 0x70, 0x13, 0x98, 0xa3, 0x6b, 0xa0, 0xfa, 0xc7, 0x84, 0x59, 0x03, 0x39, 0x77, 0x10, 0x62, 0xde, 0xc9, 0x2f, 0x60, 0x85, 0xb8, 0xe6, 0xd0, 0x60, 0x13, 0x17, 0xf3, 0xfe, 0x95, 0x9a, 0x37, 0x4f, 0x0f, 0xd8, 0x76, 0xcd, 0xe1, 0xe1, 0xc4, 0x15, 0xd1, 0x0a, 0x24, 0xfc, 0x42, 0xf7, 0x61, 0xdb, 0x1f, 0x3d, 0x77, 0x30, 0x33, 0x88, 0x6b, 0xda, 0xb6, 0x87, 0x7d, 0xdf, 0x70, 0x3d, 0xdc, 0x23, 0xaf, 0xb4, 0xe5, 0x7a, 0x2e, 0x8c, 0xbe, 0x29, 0x20, 0xed, 0x08, 0xd1, 0xe5, 0x00, 0xf4, 0x01, 0x5c, 0xb4, 0x71, 0xcf, 0x1c, 0x1d, 0x31, 0xa3, 0x6f, 0x32, 0x7c, 0x6c, 0x4e, 0xb4, 0x7c, 0x9c, 0x71, 0x29, 0x54, 0x3d, 0x12, 0x1a, 0xfd, 0x36, 0xa8, 0x89, 0x33, 0xa3, 0x75, 0x50, 0x0f, 0x3d, 0xd3, 0xf1, 0x5d, 0xd3, 0xc3, 0x0e, 0x2b, 0x67, 0x2a, 0xd9, 0x82, 0x82, 0x54, 0xc8, 0x75, 0x76, 0x0f, 0xcb, 0x4a, 0xf0, 0x51, 0x09, 0xfa, 0xf0, 0x21, 0x14, 0xa2, 0xbc, 0x51, 0x09, 0xf2, 0x4f, 0x99, 0xc9, 0x88, 0x15, 0x82, 0x8b, 0xb0, 0xb4, 0xf7, 0x79, 0xab, 0x3b, 0x43, 0xf3, 0xce, 0xdd, 0x85, 0x4d, 0xe9, 0xf8, 0xa2, 0xad, 0x48, 0x83, 0x6c, 0x4c, 0xb4, 0xc2, 0xf4, 0x4d, 0x2d, 0xcb, 0x59, 0x93, 0x25, 0x36, 0x37, 0xdb, 0x83, 0x2b, 0x5d, 0xea, 0x71, 0x66, 0xcc, 0xa5, 0x3e, 0xaa, 0xc1, 0x8a, 0x4b, 0xbd, 0x90, 0x53, 0xb3, 0xee, 0x17, 0xdc, 0xd0, 0x8a, 0x7b, 0xf9, 0x4d, 0x01, 0x6d, 0xd1, 0xf0, 0xa0, 0x5b, 0x80, 0x82, 0x01, 0xa4, 0xbd, 0xde, 0x11, 0x35, 0x6d, 0xe3, 0x18, 0x93, 0xfe, 0x80, 0x71, 0x57, 0xab, 0xdc, 0x55, 0x99, 0xd0, 0xf1, 0x13, 0xa1, 0xfc, 0x9a, 0xeb, 0xd0, 0x3d, 0xd8, 0x7c, 0x39, 0xc2, 0x23, 0x6c, 0xb8, 0x26, 0xf1, 0x7c, 0xc3, 0x13, 0x9d, 0xc4, 0x82, 0xfe, 0xc2, 0x68, 0x9d, 0x03, 0xba, 0x81, 0xfe, 0x20, 0x52, 0xa3, 0xbb, 0xb0, 0x41, 0x1c, 0x86, 0x3d, 0x6f, 0xe4, 0x32, 0x23, 0xe0, 0x95, 0x67, 0x32, 0x42, 0x1d, 0x4e, 0xa7, 0xd0, 0x2c, 0xd6, 0xef, 0xc7, 0x6a, 0x7e, 0x02, 0x06, 0xb0, 0xe7, 0xf8, 0x51, 0xca, 0x37, 0xe1, 0xa2, 0x8f, 0xbd, 0x71, 0x30, 0xa3, 0xae, 0x11, 0xf4, 0xde, 0xd7, 0x94, 0x98, 0x14, 0xab, 0x42, 0xd5, 0x76, 0x77, 0x03, 0x05, 0xaa, 0x40, 0xde, 0xa6, 0x43, 0x93, 0x38, 0xe1, 0x70, 0x06, 0x90, 0x50, 0x12, 0xe8, 0x7c, 0x6c, 0x7a, 0xd6, 0x40, 0xcb, 0xc5, 0xe6, 0xa1, 0x84, 0x47, 0x9d, 0xe6, 0xa2, 0xae, 0x45, 0xa5, 0x3b, 0x6d, 0xde, 0x74, 0x80, 0xa1, 0x69, 0x85, 0x74, 0x4c, 0x44, 0x4c, 0x48, 0x51, 0x9d, 0xcf, 0x49, 0x08, 0x99, 0x8d, 0xd2, 0x4c, 0x88, 0x3e, 0x81, 0x2d, 0x99, 0xf5, 0x47, 0xd8, 0xe9, 0xb3, 0x01, 0x1f, 0xab, 0x90, 0xfb, 0x24, 0xcd, 0x7a, 0x01, 0x40, 0xd7, 0xa1, 0x18, 0x5e, 0x5f, 0x82, 0x12, 0xcb, 0xb1, 0x81, 0x1a, 0xca, 0xf9, 0xac, 0xf6, 0x60, 0x3b, 0x60, 0x48, 0x00, 0x91, 0x56, 0x2f, 0x1f, 0x15, 0x55, 0x9a, 0xdc, 0x13, 0x39, 0x28, 0xd2, 0x89, 0xdc, 0xa5, 0xc9, 0xb5, 0x60, 0xbb, 0x5f, 0xf8, 0xff, 0xdb, 0x1d, 0x7d, 0x0a, 0xaa, 0xed, 0xf8, 0x71, 0xda, 0x65, 0xee, 0x72, 0x3b, 0xe5, 0x72, 0x46, 0x19, 0xd1, 0x04, 0x3b, 0xfe, 0x0e, 0xda, 0xfb, 0x78, 0xa9, 0x50, 0x28, 0x97, 0xf5, 0x7b, 0xb0, 0x25, 0xf7, 0xf8, 0x4c, 0xa3, 0xd9, 0x03, 0xb4, 0x6b, 0xdb, 0x67, 0x25, 0xc6, 0x1d, 0x28, 0x06, 0xbf, 0xbe, 0x6b, 0x5a, 0x78, 0x76, 0x53, 0xf0, 0x9b, 0xa5, 0x13, 0xc9, 0xc5, 0xcd, 0x12, 0xc3, 0xda, 0x22, 0xce, 0x7b, 0xb0, 0x9e, 0x8a, 0x93, 0xb8, 0x0e, 0x6e, 0xc3, 0xa6, 0xb8, 0x27, 0xce, 0x98, 0x05, 0x37, 0xba, 0x0c, 0x5b, 0xb2, 0x51, 0xc2, 0x65, 0x13, 0x36, 0xc2, 0xab, 0xe7, 0x4c, 0x17, 0x0c, 0xb7, 0xb9, 0x14, 0xa5, 0x21, 0xed, 0x36, 0xae, 0xbc, 0x05, 0xe8, 0x11, 0x66, 0xe7, 0x49, 0xf0, 0x77, 0x05, 0xd6, 0x53, 0x26, 0xa7, 0xb5, 0x23, 0xf6, 0x96, 0x95, 0x8a, 0x7e, 0x19, 0x2e, 0x84, 0xa4, 0x4f, 0xcc, 0x59, 0x24, 0x0a, 0xe6, 0x30, 0xae, 0x75, 0x62, 0xb0, 0x66, 0x42, 0x99, 0x62, 0xcb, 0xe7, 0xa6, 0x98, 0xde, 0x80, 0xb5, 0x47, 0x98, 0x9d, 0xa3, 0x96, 0x8f, 0x79, 0xb9, 0xce, 0x7c, 0x49, 0x2c, 0x3a, 0x7a, 0xc4, 0x9c, 0x44, 0x1d, 0xa3, 0x45, 0xcc, 0x55, 0xdf, 0xc3, 0x46, 0x5a, 0x15, 0x06, 0x7a, 0x00, 0x2b, 0xd1, 0x6b, 0x44, 0xec, 0x54, 0xb5, 0x59, 0x4f, 0x9d, 0x77, 0x4e, 0x63, 0x44, 0xd5, 0x62, 0x33, 0xee, 0x5f, 0x4b, 0x1e, 0x23, 0x15, 0xf9, 0x19, 0x4f, 0x6a, 0xa6, 0x09, 0x03, 0x7f, 0x06, 0x85, 0xb0, 0x2f, 0x51, 0xdc, 0x9a, 0x1c, 0x57, 0x2a, 0x8a, 0xb8, 0xe7, 0x22, 0xa3, 0xc0, 0x77, 0xf3, 0xc7, 0x02, 0xa0, 0x10, 0xd5, 0xe2, 0x8f, 0xf7, 0x6e, 0x60, 0x8f, 0x5a, 0x90, 0x17, 0x0f, 0x62, 0x54, 0x49, 0xf9, 0x4c, 0xbd, 0xde, 0x2b, 0x97, 0xe6, 0xea, 0x44, 0x2c, 0x3d, 0x83, 0xbe, 0x84, 0x95, 0xf8, 0x21, 0x89, 0xae, 0xa4, 0xb0, 0xf2, 0xb3, 0xba, 0x52, 0x5d, 0xa4, 0x4e, 0x7a, 0x8b, 0x5f, 0x78, 0x92, 0x37, 0xf9, 0x51, 0x2a, 0x79, 0xfb, 0xd7, 0xc3, 0x50, 0xcf, 0xa0, 0x6f, 0x60, 0x35, 0xf5, 0xb8, 0x40, 0x57, 0x4f, 0x7d, 0x77, 0x55, 0xf4, 0x93, 0x20, 0xb1, 0xe7, 0xef, 0xa0, 0x94, 0x5e, 0x8e, 0x68, 0x9e, 0x9d, 0x34, 0xdd, 0x95, 0x6b, 0x27, 0x62, 0x62, 0xe7, 0x07, 0xa0, 0x26, 0x36, 0x1b, 0xaa, 0xc9, 0x0d, 0x90, 0xdd, 0xd6, 0x17, 0x03, 0x92, 0x09, 0xa7, 0xb7, 0x9b, 0x94, 0xf0, 0xdc, 0x7d, 0x29, 0x25, 0x3c, 0x7f, 0x3d, 0x8a, 0x3a, 0xa7, 0x16, 0x9d, 0x54, 0xe7, 0x79, 0x8b, 0xb3, 0xa2, 0x9f, 0x04, 0x49, 0x96, 0x22, 0x31, 0x59, 0xa8, 0xb6, 0x78, 0xe6, 0xe6, 0x95, 0x62, 0xce, 0x50, 0xea, 0x19, 0xf4, 0x04, 0x60, 0x36, 0x35, 0xa8, 0xba, 0x70, 0x9c, 0x84, 0xc7, 0xd3, 0xc6, 0x4d, 0xcf, 0xa0, 0xaf, 0xa0, 0x98, 0x5c, 0x1a, 0x68, 0x61, 0x12, 0xd1, 0xc0, 0x57, 0xae, 0x9e, 0x80, 0x90, 0xce, 0x1e, 0x6d, 0x04, 0xb4, 0x28, 0x11, 0x7f, 0xe1, 0xd9, 0xe5, 0x65, 0xa2, 0x67, 0x1e, 0x1c, 0xbe, 0x7e, 0x5b, 0xcd, 0xfc, 0xf9, 0xb6, 0x9a, 0xf9, 0x61, 0x5a, 0x55, 0x5e, 0x4f, 0xab, 0xca, 0x1f, 0xd3, 0xaa, 0xf2, 0xd7, 0xb4, 0xaa, 0x3c, 0xfb, 0xf8, 0x3f, 0xfe, 0x2b, 0xf0, 0xab, 0xa2, 0x3c, 0xcf, 0xf3, 0xbf, 0x01, 0x6e, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x94, 0x54, 0x89, 0x5a, 0x10, 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 // NetworkConfigProxyClient is the client API for NetworkConfigProxy service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type NetworkConfigProxyClient interface { AddNIC(ctx context.Context, in *AddNICRequest, opts ...grpc.CallOption) (*AddNICResponse, error) ModifyNIC(ctx context.Context, in *ModifyNICRequest, opts ...grpc.CallOption) (*ModifyNICResponse, error) DeleteNIC(ctx context.Context, in *DeleteNICRequest, opts ...grpc.CallOption) (*DeleteNICResponse, error) CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) CreateEndpoint(ctx context.Context, in *CreateEndpointRequest, opts ...grpc.CallOption) (*CreateEndpointResponse, error) AddEndpoint(ctx context.Context, in *AddEndpointRequest, opts ...grpc.CallOption) (*AddEndpointResponse, error) DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*DeleteEndpointResponse, error) DeleteNetwork(ctx context.Context, in *DeleteNetworkRequest, opts ...grpc.CallOption) (*DeleteNetworkResponse, error) GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*GetEndpointResponse, error) GetNetwork(ctx context.Context, in *GetNetworkRequest, opts ...grpc.CallOption) (*GetNetworkResponse, error) GetEndpoints(ctx context.Context, in *GetEndpointsRequest, opts ...grpc.CallOption) (*GetEndpointsResponse, error) GetNetworks(ctx context.Context, in *GetNetworksRequest, opts ...grpc.CallOption) (*GetNetworksResponse, error) } type networkConfigProxyClient struct { cc *grpc.ClientConn } func NewNetworkConfigProxyClient(cc *grpc.ClientConn) NetworkConfigProxyClient { return &networkConfigProxyClient{cc} } func (c *networkConfigProxyClient) AddNIC(ctx context.Context, in *AddNICRequest, opts ...grpc.CallOption) (*AddNICResponse, error) { out := new(AddNICResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/AddNIC", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) ModifyNIC(ctx context.Context, in *ModifyNICRequest, opts ...grpc.CallOption) (*ModifyNICResponse, error) { out := new(ModifyNICResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/ModifyNIC", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) DeleteNIC(ctx context.Context, in *DeleteNICRequest, opts ...grpc.CallOption) (*DeleteNICResponse, error) { out := new(DeleteNICResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/DeleteNIC", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) { out := new(CreateNetworkResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/CreateNetwork", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) CreateEndpoint(ctx context.Context, in *CreateEndpointRequest, opts ...grpc.CallOption) (*CreateEndpointResponse, error) { out := new(CreateEndpointResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/CreateEndpoint", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) AddEndpoint(ctx context.Context, in *AddEndpointRequest, opts ...grpc.CallOption) (*AddEndpointResponse, error) { out := new(AddEndpointResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/AddEndpoint", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*DeleteEndpointResponse, error) { out := new(DeleteEndpointResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/DeleteEndpoint", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) DeleteNetwork(ctx context.Context, in *DeleteNetworkRequest, opts ...grpc.CallOption) (*DeleteNetworkResponse, error) { out := new(DeleteNetworkResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/DeleteNetwork", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*GetEndpointResponse, error) { out := new(GetEndpointResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/GetEndpoint", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) GetNetwork(ctx context.Context, in *GetNetworkRequest, opts ...grpc.CallOption) (*GetNetworkResponse, error) { out := new(GetNetworkResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/GetNetwork", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) GetEndpoints(ctx context.Context, in *GetEndpointsRequest, opts ...grpc.CallOption) (*GetEndpointsResponse, error) { out := new(GetEndpointsResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/GetEndpoints", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *networkConfigProxyClient) GetNetworks(ctx context.Context, in *GetNetworksRequest, opts ...grpc.CallOption) (*GetNetworksResponse, error) { out := new(GetNetworksResponse) err := c.cc.Invoke(ctx, "/ncproxygrpc.NetworkConfigProxy/GetNetworks", in, out, opts...) if err != nil { return nil, err } return out, nil } // NetworkConfigProxyServer is the server API for NetworkConfigProxy service. type NetworkConfigProxyServer interface { AddNIC(context.Context, *AddNICRequest) (*AddNICResponse, error) ModifyNIC(context.Context, *ModifyNICRequest) (*ModifyNICResponse, error) DeleteNIC(context.Context, *DeleteNICRequest) (*DeleteNICResponse, error) CreateNetwork(context.Context, *CreateNetworkRequest) (*CreateNetworkResponse, error) CreateEndpoint(context.Context, *CreateEndpointRequest) (*CreateEndpointResponse, error) AddEndpoint(context.Context, *AddEndpointRequest) (*AddEndpointResponse, error) DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*DeleteEndpointResponse, error) DeleteNetwork(context.Context, *DeleteNetworkRequest) (*DeleteNetworkResponse, error) GetEndpoint(context.Context, *GetEndpointRequest) (*GetEndpointResponse, error) GetNetwork(context.Context, *GetNetworkRequest) (*GetNetworkResponse, error) GetEndpoints(context.Context, *GetEndpointsRequest) (*GetEndpointsResponse, error) GetNetworks(context.Context, *GetNetworksRequest) (*GetNetworksResponse, error) } // UnimplementedNetworkConfigProxyServer can be embedded to have forward compatible implementations. type UnimplementedNetworkConfigProxyServer struct { } func (*UnimplementedNetworkConfigProxyServer) AddNIC(ctx context.Context, req *AddNICRequest) (*AddNICResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddNIC not implemented") } func (*UnimplementedNetworkConfigProxyServer) ModifyNIC(ctx context.Context, req *ModifyNICRequest) (*ModifyNICResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ModifyNIC not implemented") } func (*UnimplementedNetworkConfigProxyServer) DeleteNIC(ctx context.Context, req *DeleteNICRequest) (*DeleteNICResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNIC not implemented") } func (*UnimplementedNetworkConfigProxyServer) CreateNetwork(ctx context.Context, req *CreateNetworkRequest) (*CreateNetworkResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNetwork not implemented") } func (*UnimplementedNetworkConfigProxyServer) CreateEndpoint(ctx context.Context, req *CreateEndpointRequest) (*CreateEndpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateEndpoint not implemented") } func (*UnimplementedNetworkConfigProxyServer) AddEndpoint(ctx context.Context, req *AddEndpointRequest) (*AddEndpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddEndpoint not implemented") } func (*UnimplementedNetworkConfigProxyServer) DeleteEndpoint(ctx context.Context, req *DeleteEndpointRequest) (*DeleteEndpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteEndpoint not implemented") } func (*UnimplementedNetworkConfigProxyServer) DeleteNetwork(ctx context.Context, req *DeleteNetworkRequest) (*DeleteNetworkResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNetwork not implemented") } func (*UnimplementedNetworkConfigProxyServer) GetEndpoint(ctx context.Context, req *GetEndpointRequest) (*GetEndpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEndpoint not implemented") } func (*UnimplementedNetworkConfigProxyServer) GetNetwork(ctx context.Context, req *GetNetworkRequest) (*GetNetworkResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNetwork not implemented") } func (*UnimplementedNetworkConfigProxyServer) GetEndpoints(ctx context.Context, req *GetEndpointsRequest) (*GetEndpointsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEndpoints not implemented") } func (*UnimplementedNetworkConfigProxyServer) GetNetworks(ctx context.Context, req *GetNetworksRequest) (*GetNetworksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNetworks not implemented") } func RegisterNetworkConfigProxyServer(s *grpc.Server, srv NetworkConfigProxyServer) { s.RegisterService(&_NetworkConfigProxy_serviceDesc, srv) } func _NetworkConfigProxy_AddNIC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddNICRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).AddNIC(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/AddNIC", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).AddNIC(ctx, req.(*AddNICRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_ModifyNIC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ModifyNICRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).ModifyNIC(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/ModifyNIC", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).ModifyNIC(ctx, req.(*ModifyNICRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_DeleteNIC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteNICRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).DeleteNIC(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/DeleteNIC", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).DeleteNIC(ctx, req.(*DeleteNICRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_CreateNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateNetworkRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).CreateNetwork(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/CreateNetwork", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).CreateNetwork(ctx, req.(*CreateNetworkRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_CreateEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateEndpointRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).CreateEndpoint(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/CreateEndpoint", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).CreateEndpoint(ctx, req.(*CreateEndpointRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_AddEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddEndpointRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).AddEndpoint(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/AddEndpoint", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).AddEndpoint(ctx, req.(*AddEndpointRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_DeleteEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteEndpointRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).DeleteEndpoint(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/DeleteEndpoint", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).DeleteEndpoint(ctx, req.(*DeleteEndpointRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_DeleteNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteNetworkRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).DeleteNetwork(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/DeleteNetwork", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).DeleteNetwork(ctx, req.(*DeleteNetworkRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_GetEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetEndpointRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).GetEndpoint(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/GetEndpoint", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).GetEndpoint(ctx, req.(*GetEndpointRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_GetNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetNetworkRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).GetNetwork(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/GetNetwork", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).GetNetwork(ctx, req.(*GetNetworkRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_GetEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetEndpointsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).GetEndpoints(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/GetEndpoints", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).GetEndpoints(ctx, req.(*GetEndpointsRequest)) } return interceptor(ctx, in, info, handler) } func _NetworkConfigProxy_GetNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetNetworksRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NetworkConfigProxyServer).GetNetworks(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ncproxygrpc.NetworkConfigProxy/GetNetworks", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkConfigProxyServer).GetNetworks(ctx, req.(*GetNetworksRequest)) } return interceptor(ctx, in, info, handler) } var _NetworkConfigProxy_serviceDesc = grpc.ServiceDesc{ ServiceName: "ncproxygrpc.NetworkConfigProxy", HandlerType: (*NetworkConfigProxyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddNIC", Handler: _NetworkConfigProxy_AddNIC_Handler, }, { MethodName: "ModifyNIC", Handler: _NetworkConfigProxy_ModifyNIC_Handler, }, { MethodName: "DeleteNIC", Handler: _NetworkConfigProxy_DeleteNIC_Handler, }, { MethodName: "CreateNetwork", Handler: _NetworkConfigProxy_CreateNetwork_Handler, }, { MethodName: "CreateEndpoint", Handler: _NetworkConfigProxy_CreateEndpoint_Handler, }, { MethodName: "AddEndpoint", Handler: _NetworkConfigProxy_AddEndpoint_Handler, }, { MethodName: "DeleteEndpoint", Handler: _NetworkConfigProxy_DeleteEndpoint_Handler, }, { MethodName: "DeleteNetwork", Handler: _NetworkConfigProxy_DeleteNetwork_Handler, }, { MethodName: "GetEndpoint", Handler: _NetworkConfigProxy_GetEndpoint_Handler, }, { MethodName: "GetNetwork", Handler: _NetworkConfigProxy_GetNetwork_Handler, }, { MethodName: "GetEndpoints", Handler: _NetworkConfigProxy_GetEndpoints_Handler, }, { MethodName: "GetNetworks", Handler: _NetworkConfigProxy_GetNetworks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v0/networkconfigproxy.proto", } func (m *AddNICRequest) 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 *AddNICRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AddNICRequest) 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.EndpointName) > 0 { i -= len(m.EndpointName) copy(dAtA[i:], m.EndpointName) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.EndpointName))) i-- dAtA[i] = 0x1a } if len(m.NicID) > 0 { i -= len(m.NicID) copy(dAtA[i:], m.NicID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.NicID))) i-- dAtA[i] = 0x12 } if len(m.ContainerID) > 0 { i -= len(m.ContainerID) copy(dAtA[i:], m.ContainerID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ContainerID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *AddNICResponse) 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 *AddNICResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AddNICResponse) 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 *ModifyNICRequest) 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 *ModifyNICRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ModifyNICRequest) 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.IovPolicySettings != nil { { size, err := m.IovPolicySettings.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if len(m.EndpointName) > 0 { i -= len(m.EndpointName) copy(dAtA[i:], m.EndpointName) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.EndpointName))) i-- dAtA[i] = 0x1a } if len(m.NicID) > 0 { i -= len(m.NicID) copy(dAtA[i:], m.NicID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.NicID))) i-- dAtA[i] = 0x12 } if len(m.ContainerID) > 0 { i -= len(m.ContainerID) copy(dAtA[i:], m.ContainerID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ContainerID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ModifyNICResponse) 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 *ModifyNICResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ModifyNICResponse) 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 *DeleteNICRequest) 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 *DeleteNICRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DeleteNICRequest) 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.EndpointName) > 0 { i -= len(m.EndpointName) copy(dAtA[i:], m.EndpointName) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.EndpointName))) i-- dAtA[i] = 0x1a } if len(m.NicID) > 0 { i -= len(m.NicID) copy(dAtA[i:], m.NicID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.NicID))) i-- dAtA[i] = 0x12 } if len(m.ContainerID) > 0 { i -= len(m.ContainerID) copy(dAtA[i:], m.ContainerID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ContainerID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeleteNICResponse) 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 *DeleteNICResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DeleteNICResponse) 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 *CreateNetworkRequest) 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 *CreateNetworkRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CreateNetworkRequest) 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 = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.DefaultGateway))) i-- dAtA[i] = 0x32 } if len(m.SubnetIpaddressPrefix) > 0 { for iNdEx := len(m.SubnetIpaddressPrefix) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.SubnetIpaddressPrefix[iNdEx]) copy(dAtA[i:], m.SubnetIpaddressPrefix[iNdEx]) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.SubnetIpaddressPrefix[iNdEx]))) i-- dAtA[i] = 0x2a } } if m.IpamType != 0 { i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(m.IpamType)) i-- dAtA[i] = 0x20 } if len(m.SwitchName) > 0 { i -= len(m.SwitchName) copy(dAtA[i:], m.SwitchName) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.SwitchName))) i-- dAtA[i] = 0x1a } if m.Mode != 0 { i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(m.Mode)) i-- dAtA[i] = 0x10 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *CreateNetworkResponse) 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 *CreateNetworkResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CreateNetworkResponse) 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.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *PortNameEndpointPolicySetting) 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 *PortNameEndpointPolicySetting) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PortNameEndpointPolicySetting) 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.PortName) > 0 { i -= len(m.PortName) copy(dAtA[i:], m.PortName) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.PortName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *IovEndpointPolicySetting) 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 *IovEndpointPolicySetting) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IovEndpointPolicySetting) 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.InterruptModeration != 0 { i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(m.InterruptModeration)) i-- dAtA[i] = 0x18 } if m.QueuePairsRequested != 0 { i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(m.QueuePairsRequested)) i-- dAtA[i] = 0x10 } if m.IovOffloadWeight != 0 { i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(m.IovOffloadWeight)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *DnsSetting) 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 *DnsSetting) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DnsSetting) 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.Search) > 0 { for iNdEx := len(m.Search) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Search[iNdEx]) copy(dAtA[i:], m.Search[iNdEx]) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Search[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(m.Domain) > 0 { i -= len(m.Domain) copy(dAtA[i:], m.Domain) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Domain))) i-- dAtA[i] = 0x12 } if len(m.ServerIpAddrs) > 0 { for iNdEx := len(m.ServerIpAddrs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ServerIpAddrs[iNdEx]) copy(dAtA[i:], m.ServerIpAddrs[iNdEx]) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ServerIpAddrs[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *CreateEndpointRequest) 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 *CreateEndpointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CreateEndpointRequest) 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.DnsSetting != nil { { size, err := m.DnsSetting.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x82 } if m.IovPolicySettings != nil { { size, err := m.IovPolicySettings.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } if m.PortnamePolicySetting != nil { { size, err := m.PortnamePolicySetting.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } if len(m.NetworkName) > 0 { i -= len(m.NetworkName) copy(dAtA[i:], m.NetworkName) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.NetworkName))) i-- dAtA[i] = 0x2a } if len(m.IpaddressPrefixlength) > 0 { i -= len(m.IpaddressPrefixlength) copy(dAtA[i:], m.IpaddressPrefixlength) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.IpaddressPrefixlength))) i-- dAtA[i] = 0x22 } if len(m.Ipaddress) > 0 { i -= len(m.Ipaddress) copy(dAtA[i:], m.Ipaddress) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Ipaddress))) i-- dAtA[i] = 0x1a } if len(m.Macaddress) > 0 { i -= len(m.Macaddress) copy(dAtA[i:], m.Macaddress) i = encodeVarintNetworkconfigproxy(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 = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *CreateEndpointResponse) 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 *CreateEndpointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CreateEndpointResponse) 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.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *AddEndpointRequest) 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 *AddEndpointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AddEndpointRequest) 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.NamespaceID) > 0 { i -= len(m.NamespaceID) copy(dAtA[i:], m.NamespaceID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.NamespaceID))) i-- dAtA[i] = 0x12 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *AddEndpointResponse) 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 *AddEndpointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AddEndpointResponse) 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 *DeleteEndpointRequest) 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 *DeleteEndpointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DeleteEndpointRequest) 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.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeleteEndpointResponse) 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 *DeleteEndpointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DeleteEndpointResponse) 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 *DeleteNetworkRequest) 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 *DeleteNetworkRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DeleteNetworkRequest) 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.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeleteNetworkResponse) 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 *DeleteNetworkResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DeleteNetworkResponse) 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 *GetEndpointRequest) 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 *GetEndpointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetEndpointRequest) 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.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *GetEndpointResponse) 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 *GetEndpointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetEndpointResponse) 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.DnsSetting != nil { { size, err := m.DnsSetting.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } if len(m.Namespace) > 0 { i -= len(m.Namespace) copy(dAtA[i:], m.Namespace) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0x22 } if len(m.Network) > 0 { i -= len(m.Network) copy(dAtA[i:], m.Network) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Network))) i-- dAtA[i] = 0x1a } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } if len(m.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *GetNetworkRequest) 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 *GetNetworkRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetNetworkRequest) 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.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *GetNetworkResponse) 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 *GetNetworkResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetNetworkResponse) 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.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } if len(m.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *GetEndpointsRequest) 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 *GetEndpointsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetEndpointsRequest) 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 *GetEndpointsResponse) 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 *GetEndpointsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetEndpointsResponse) 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.Endpoints) > 0 { for iNdEx := len(m.Endpoints) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Endpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *GetNetworksRequest) 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 *GetNetworksRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetNetworksRequest) 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 *GetNetworksResponse) 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 *GetNetworksResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GetNetworksResponse) 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.Networks) > 0 { for iNdEx := len(m.Networks) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Networks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func encodeVarintNetworkconfigproxy(dAtA []byte, offset int, v uint64) int { offset -= sovNetworkconfigproxy(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *AddNICRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ContainerID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.NicID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.EndpointName) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *AddNICResponse) 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 *ModifyNICRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ContainerID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.NicID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.EndpointName) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.IovPolicySettings != nil { l = m.IovPolicySettings.Size() n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ModifyNICResponse) 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 *DeleteNICRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ContainerID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.NicID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.EndpointName) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *DeleteNICResponse) 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 *CreateNetworkRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.Mode != 0 { n += 1 + sovNetworkconfigproxy(uint64(m.Mode)) } l = len(m.SwitchName) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.IpamType != 0 { n += 1 + sovNetworkconfigproxy(uint64(m.IpamType)) } if len(m.SubnetIpaddressPrefix) > 0 { for _, s := range m.SubnetIpaddressPrefix { l = len(s) n += 1 + l + sovNetworkconfigproxy(uint64(l)) } } l = len(m.DefaultGateway) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *CreateNetworkResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *PortNameEndpointPolicySetting) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortName) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *IovEndpointPolicySetting) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.IovOffloadWeight != 0 { n += 1 + sovNetworkconfigproxy(uint64(m.IovOffloadWeight)) } if m.QueuePairsRequested != 0 { n += 1 + sovNetworkconfigproxy(uint64(m.QueuePairsRequested)) } if m.InterruptModeration != 0 { n += 1 + sovNetworkconfigproxy(uint64(m.InterruptModeration)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *DnsSetting) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ServerIpAddrs) > 0 { for _, s := range m.ServerIpAddrs { l = len(s) n += 1 + l + sovNetworkconfigproxy(uint64(l)) } } l = len(m.Domain) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if len(m.Search) > 0 { for _, s := range m.Search { l = len(s) n += 1 + l + sovNetworkconfigproxy(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *CreateEndpointRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.Macaddress) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.Ipaddress) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.IpaddressPrefixlength) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.NetworkName) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.PortnamePolicySetting != nil { l = m.PortnamePolicySetting.Size() n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.IovPolicySettings != nil { l = m.IovPolicySettings.Size() n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.DnsSetting != nil { l = m.DnsSetting.Size() n += 2 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *CreateEndpointResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *AddEndpointRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.NamespaceID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *AddEndpointResponse) 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 *DeleteEndpointRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *DeleteEndpointResponse) 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 *DeleteNetworkRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *DeleteNetworkResponse) 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 *GetEndpointRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetEndpointResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.Network) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.Namespace) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.DnsSetting != nil { l = m.DnsSetting.Size() n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetNetworkRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetNetworkResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ID) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } l = len(m.Name) if l > 0 { n += 1 + l + sovNetworkconfigproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetEndpointsRequest) 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 *GetEndpointsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Endpoints) > 0 { for _, e := range m.Endpoints { l = e.Size() n += 1 + l + sovNetworkconfigproxy(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *GetNetworksRequest) 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 *GetNetworksResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Networks) > 0 { for _, e := range m.Networks { l = e.Size() n += 1 + l + sovNetworkconfigproxy(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovNetworkconfigproxy(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozNetworkconfigproxy(x uint64) (n int) { return sovNetworkconfigproxy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *AddNICRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AddNICRequest{`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, `EndpointName:` + fmt.Sprintf("%v", this.EndpointName) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *AddNICResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AddNICResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ModifyNICRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ModifyNICRequest{`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, `EndpointName:` + fmt.Sprintf("%v", this.EndpointName) + `,`, `IovPolicySettings:` + strings.Replace(this.IovPolicySettings.String(), "IovEndpointPolicySetting", "IovEndpointPolicySetting", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *ModifyNICResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ModifyNICResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DeleteNICRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DeleteNICRequest{`, `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, `EndpointName:` + fmt.Sprintf("%v", this.EndpointName) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DeleteNICResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DeleteNICResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *CreateNetworkRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CreateNetworkRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`, `SwitchName:` + fmt.Sprintf("%v", this.SwitchName) + `,`, `IpamType:` + fmt.Sprintf("%v", this.IpamType) + `,`, `SubnetIpaddressPrefix:` + fmt.Sprintf("%v", this.SubnetIpaddressPrefix) + `,`, `DefaultGateway:` + fmt.Sprintf("%v", this.DefaultGateway) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *CreateNetworkResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CreateNetworkResponse{`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *PortNameEndpointPolicySetting) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PortNameEndpointPolicySetting{`, `PortName:` + fmt.Sprintf("%v", this.PortName) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *IovEndpointPolicySetting) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IovEndpointPolicySetting{`, `IovOffloadWeight:` + fmt.Sprintf("%v", this.IovOffloadWeight) + `,`, `QueuePairsRequested:` + fmt.Sprintf("%v", this.QueuePairsRequested) + `,`, `InterruptModeration:` + fmt.Sprintf("%v", this.InterruptModeration) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DnsSetting) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DnsSetting{`, `ServerIpAddrs:` + fmt.Sprintf("%v", this.ServerIpAddrs) + `,`, `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, `Search:` + fmt.Sprintf("%v", this.Search) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *CreateEndpointRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CreateEndpointRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Macaddress:` + fmt.Sprintf("%v", this.Macaddress) + `,`, `Ipaddress:` + fmt.Sprintf("%v", this.Ipaddress) + `,`, `IpaddressPrefixlength:` + fmt.Sprintf("%v", this.IpaddressPrefixlength) + `,`, `NetworkName:` + fmt.Sprintf("%v", this.NetworkName) + `,`, `PortnamePolicySetting:` + strings.Replace(this.PortnamePolicySetting.String(), "PortNameEndpointPolicySetting", "PortNameEndpointPolicySetting", 1) + `,`, `IovPolicySettings:` + strings.Replace(this.IovPolicySettings.String(), "IovEndpointPolicySetting", "IovEndpointPolicySetting", 1) + `,`, `DnsSetting:` + strings.Replace(this.DnsSetting.String(), "DnsSetting", "DnsSetting", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *CreateEndpointResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CreateEndpointResponse{`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *AddEndpointRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AddEndpointRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `NamespaceID:` + fmt.Sprintf("%v", this.NamespaceID) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *AddEndpointResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AddEndpointResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DeleteEndpointRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DeleteEndpointRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DeleteEndpointResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DeleteEndpointResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DeleteNetworkRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DeleteNetworkRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *DeleteNetworkResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DeleteNetworkResponse{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetEndpointRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetEndpointRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetEndpointResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetEndpointResponse{`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Network:` + fmt.Sprintf("%v", this.Network) + `,`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `DnsSetting:` + strings.Replace(this.DnsSetting.String(), "DnsSetting", "DnsSetting", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetNetworkRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetNetworkRequest{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetNetworkResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetNetworkResponse{`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetEndpointsRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetEndpointsRequest{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetEndpointsResponse) String() string { if this == nil { return "nil" } repeatedStringForEndpoints := "[]*GetEndpointResponse{" for _, f := range this.Endpoints { repeatedStringForEndpoints += strings.Replace(f.String(), "GetEndpointResponse", "GetEndpointResponse", 1) + "," } repeatedStringForEndpoints += "}" s := strings.Join([]string{`&GetEndpointsResponse{`, `Endpoints:` + repeatedStringForEndpoints + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetNetworksRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GetNetworksRequest{`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *GetNetworksResponse) String() string { if this == nil { return "nil" } repeatedStringForNetworks := "[]*GetNetworkResponse{" for _, f := range this.Networks { repeatedStringForNetworks += strings.Replace(f.String(), "GetNetworkResponse", "GetNetworkResponse", 1) + "," } repeatedStringForNetworks += "}" s := strings.Join([]string{`&GetNetworksResponse{`, `Networks:` + repeatedStringForNetworks + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func valueToStringNetworkconfigproxy(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } func (m *AddNICRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: AddNICRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AddNICRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ContainerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.NicID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndpointName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.EndpointName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *AddNICResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: AddNICResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AddNICResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *ModifyNICRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: ModifyNICRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ModifyNICRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ContainerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.NicID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndpointName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.EndpointName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IovPolicySettings", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } if m.IovPolicySettings == nil { m.IovPolicySettings = &IovEndpointPolicySetting{} } if err := m.IovPolicySettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *ModifyNICResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: ModifyNICResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ModifyNICResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DeleteNICRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: DeleteNICRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeleteNICRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ContainerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.NicID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndpointName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.EndpointName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DeleteNICResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: DeleteNICResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeleteNICResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *CreateNetworkRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: CreateNetworkRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CreateNetworkRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) } m.Mode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Mode |= CreateNetworkRequest_NetworkMode(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SwitchName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.SwitchName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IpamType", wireType) } m.IpamType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.IpamType |= CreateNetworkRequest_IpamType(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SubnetIpaddressPrefix", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.SubnetIpaddressPrefix = append(m.SubnetIpaddressPrefix, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 6: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.DefaultGateway = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *CreateNetworkResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: CreateNetworkResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CreateNetworkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *PortNameEndpointPolicySetting) 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 ErrIntOverflowNetworkconfigproxy } 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: PortNameEndpointPolicySetting: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PortNameEndpointPolicySetting: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.PortName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *IovEndpointPolicySetting) 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 ErrIntOverflowNetworkconfigproxy } 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: IovEndpointPolicySetting: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IovEndpointPolicySetting: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IovOffloadWeight", wireType) } m.IovOffloadWeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.IovOffloadWeight |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field QueuePairsRequested", wireType) } m.QueuePairsRequested = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.QueuePairsRequested |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field InterruptModeration", wireType) } m.InterruptModeration = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.InterruptModeration |= uint32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DnsSetting) 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 ErrIntOverflowNetworkconfigproxy } 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: DnsSetting: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DnsSetting: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServerIpAddrs", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ServerIpAddrs = append(m.ServerIpAddrs, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Domain = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Search", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Search = append(m.Search, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *CreateEndpointRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: CreateEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CreateEndpointRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 Ipaddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Ipaddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IpaddressPrefixlength", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.IpaddressPrefixlength = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NetworkName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.NetworkName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortnamePolicySetting", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } if m.PortnamePolicySetting == nil { m.PortnamePolicySetting = &PortNameEndpointPolicySetting{} } if err := m.PortnamePolicySetting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IovPolicySettings", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } if m.IovPolicySettings == nil { m.IovPolicySettings = &IovEndpointPolicySetting{} } if err := m.IovPolicySettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 16: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DnsSetting", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } if m.DnsSetting == nil { m.DnsSetting = &DnsSetting{} } if err := m.DnsSetting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *CreateEndpointResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: CreateEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CreateEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *AddEndpointRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: AddEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AddEndpointRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 NamespaceID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.NamespaceID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *AddEndpointResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: AddEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AddEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DeleteEndpointRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: DeleteEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeleteEndpointRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DeleteEndpointResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: DeleteEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeleteEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DeleteNetworkRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: DeleteNetworkRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeleteNetworkRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *DeleteNetworkResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: DeleteNetworkResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeleteNetworkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetEndpointRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: GetEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetEndpointRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetEndpointResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: GetEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Network = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DnsSetting", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } if m.DnsSetting == nil { m.DnsSetting = &DnsSetting{} } if err := m.DnsSetting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetNetworkRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: GetNetworkRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetNetworkRequest: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetNetworkResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: GetNetworkResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetNetworkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 ErrIntOverflowNetworkconfigproxy } 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 ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetEndpointsRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: GetEndpointsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetEndpointsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetEndpointsResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: GetEndpointsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetEndpointsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Endpoints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Endpoints = append(m.Endpoints, &GetEndpointResponse{}) if err := m.Endpoints[len(m.Endpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetNetworksRequest) 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 ErrIntOverflowNetworkconfigproxy } 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: GetNetworksRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetNetworksRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 *GetNetworksResponse) 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 ErrIntOverflowNetworkconfigproxy } 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: GetNetworksResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GetNetworksResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowNetworkconfigproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthNetworkconfigproxy } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthNetworkconfigproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.Networks = append(m.Networks, &GetNetworkResponse{}) if err := m.Networks[len(m.Networks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthNetworkconfigproxy } 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 skipNetworkconfigproxy(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, ErrIntOverflowNetworkconfigproxy } 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, ErrIntOverflowNetworkconfigproxy } 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, ErrIntOverflowNetworkconfigproxy } 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, ErrInvalidLengthNetworkconfigproxy } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupNetworkconfigproxy } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthNetworkconfigproxy } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthNetworkconfigproxy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNetworkconfigproxy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNetworkconfigproxy = fmt.Errorf("proto: unexpected end of group") )