// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api.proto

package podresources

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"

	context "golang.org/x/net/context"

	grpc "google.golang.org/grpc"
)

var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

const _ = proto.ProtoPackageIsVersion2

type ListPodResourcesRequest struct {
}

func (m *ListPodResourcesRequest) Reset()         { *m = ListPodResourcesRequest{} }
func (m *ListPodResourcesRequest) String() string { return proto.CompactTextString(m) }
func (*ListPodResourcesRequest) ProtoMessage()    {}

type ListPodResourcesResponse struct {
	PodResources []*PodResources `protobuf:"bytes,1,rep,name=pod_resources,json=podResources" json:"pod_resources,omitempty"`
}

func (m *ListPodResourcesResponse) Reset()         { *m = ListPodResourcesResponse{} }
func (m *ListPodResourcesResponse) String() string { return proto.CompactTextString(m) }
func (*ListPodResourcesResponse) ProtoMessage()    {}

func (m *ListPodResourcesResponse) GetPodResources() []*PodResources {
	if m != nil {
		return m.PodResources
	}
	return nil
}

type PodResources struct {
	Name       string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace  string                `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Containers []*ContainerResources `protobuf:"bytes,3,rep,name=containers" json:"containers,omitempty"`
}

func (m *PodResources) Reset()         { *m = PodResources{} }
func (m *PodResources) String() string { return proto.CompactTextString(m) }
func (*PodResources) ProtoMessage()    {}

func (m *PodResources) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *PodResources) GetNamespace() string {
	if m != nil {
		return m.Namespace
	}
	return ""
}

func (m *PodResources) GetContainers() []*ContainerResources {
	if m != nil {
		return m.Containers
	}
	return nil
}

type ContainerResources struct {
	Name    string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Devices []*ContainerDevices `protobuf:"bytes,2,rep,name=devices" json:"devices,omitempty"`
}

func (m *ContainerResources) Reset()         { *m = ContainerResources{} }
func (m *ContainerResources) String() string { return proto.CompactTextString(m) }
func (*ContainerResources) ProtoMessage()    {}

func (m *ContainerResources) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *ContainerResources) GetDevices() []*ContainerDevices {
	if m != nil {
		return m.Devices
	}
	return nil
}

type ContainerDevices struct {
	ResourceName string   `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	DeviceIds    []string `protobuf:"bytes,2,rep,name=device_ids,json=deviceIds" json:"device_ids,omitempty"`
}

func (m *ContainerDevices) Reset()         { *m = ContainerDevices{} }
func (m *ContainerDevices) String() string { return proto.CompactTextString(m) }
func (*ContainerDevices) ProtoMessage()    {}

func (m *ContainerDevices) GetResourceName() string {
	if m != nil {
		return m.ResourceName
	}
	return ""
}

func (m *ContainerDevices) GetDeviceIds() []string {
	if m != nil {
		return m.DeviceIds
	}
	return nil
}

var _ context.Context
var _ grpc.ClientConn

const _ = grpc.SupportPackageIsVersion4

type PodResourcesListerClient interface {
	List(ctx context.Context, in *ListPodResourcesRequest, opts ...grpc.CallOption) (*ListPodResourcesResponse, error)
}

type podResourcesListerClient struct {
	cc *grpc.ClientConn
}

func NewPodResourcesListerClient(cc *grpc.ClientConn) PodResourcesListerClient {
	return &podResourcesListerClient{cc}
}

func (c *podResourcesListerClient) List(ctx context.Context, in *ListPodResourcesRequest, opts ...grpc.CallOption) (*ListPodResourcesResponse, error) {
	out := new(ListPodResourcesResponse)
	err := grpc.Invoke(ctx, "/v1.PodResourcesLister/List", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}
