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

package api

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// `Backend` defines the backend configuration for a service.
type Backend struct {
	// A list of backend rules providing configuration for individual API
	// elements.
	Rules []*BackendRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"`
}

func (m *Backend) Reset()                    { *m = Backend{} }
func (m *Backend) String() string            { return proto.CompactTextString(m) }
func (*Backend) ProtoMessage()               {}
func (*Backend) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }

func (m *Backend) GetRules() []*BackendRule {
	if m != nil {
		return m.Rules
	}
	return nil
}

// A backend rule provides configuration for an individual API element.
type BackendRule struct {
	// Selects the methods to which this rule applies.
	//
	// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
	Selector string `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"`
	// The address of the API backend.
	//
	Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	// The number of seconds to wait for a response from a request.  The
	// default depends on the deployment context.
	Deadline float64 `protobuf:"fixed64,3,opt,name=deadline" json:"deadline,omitempty"`
}

func (m *BackendRule) Reset()                    { *m = BackendRule{} }
func (m *BackendRule) String() string            { return proto.CompactTextString(m) }
func (*BackendRule) ProtoMessage()               {}
func (*BackendRule) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }

func init() {
	proto.RegisterType((*Backend)(nil), "google.api.Backend")
	proto.RegisterType((*BackendRule)(nil), "google.api.BackendRule")
}

func init() { proto.RegisterFile("google/api/backend.proto", fileDescriptor2) }

var fileDescriptor2 = []byte{
	// 180 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0x8f, 0xc1, 0xae, 0x82, 0x30,
	0x10, 0x45, 0xd3, 0x47, 0x9e, 0xe8, 0x60, 0x5c, 0x74, 0x63, 0xe3, 0xaa, 0x61, 0xc5, 0xc6, 0x92,
	0xe8, 0xc6, 0x35, 0x5f, 0x40, 0xfa, 0x03, 0xa6, 0xd0, 0x09, 0x21, 0x56, 0x4a, 0x5a, 0xf8, 0x7f,
	0x03, 0x45, 0x64, 0x79, 0xe7, 0x9c, 0xc9, 0xcc, 0x05, 0xd6, 0x58, 0xdb, 0x18, 0xcc, 0x55, 0xdf,
	0xe6, 0x95, 0xaa, 0x5f, 0xd8, 0x69, 0xd1, 0x3b, 0x3b, 0x58, 0x0a, 0x81, 0x08, 0xd5, 0xb7, 0xe9,
	0x03, 0xe2, 0x22, 0x40, 0x7a, 0x85, 0x7f, 0x37, 0x1a, 0xf4, 0x8c, 0xf0, 0x28, 0x4b, 0x6e, 0x67,
	0xf1, 0xd3, 0xc4, 0xe2, 0xc8, 0xd1, 0xa0, 0x0c, 0x56, 0xfa, 0x84, 0x64, 0x33, 0xa5, 0x17, 0xd8,
	0x7b, 0x34, 0x58, 0x0f, 0xd6, 0x31, 0xc2, 0x49, 0x76, 0x90, 0x6b, 0xa6, 0x0c, 0x62, 0xa5, 0xb5,
	0x43, 0xef, 0xd9, 0xdf, 0x8c, 0xbe, 0x71, 0xda, 0xd2, 0xa8, 0xb4, 0x69, 0x3b, 0x64, 0x11, 0x27,
	0x19, 0x91, 0x6b, 0x2e, 0x38, 0x9c, 0x6a, 0xfb, 0xde, 0x7c, 0x51, 0x1c, 0x97, 0x83, 0xe5, 0x54,
	0xa3, 0x24, 0xd5, 0x6e, 0xee, 0x73, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x02, 0xf8, 0x16, 0xb6,
	0xeb, 0x00, 0x00, 0x00,
}
