1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/backend.proto
3
4package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9
10// Reference imports to suppress errors if they are not otherwise used.
11var _ = proto.Marshal
12var _ = fmt.Errorf
13var _ = math.Inf
14
15// This is a compile-time assertion to ensure that this generated file
16// is compatible with the proto package it is being compiled against.
17// A compilation error at this line likely means your copy of the
18// proto package needs to be updated.
19const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
20
21// `Backend` defines the backend configuration for a service.
22type Backend struct {
23	// A list of API backend rules that apply to individual API methods.
24	//
25	// **NOTE:** All service configuration rules follow "last one wins" order.
26	Rules                []*BackendRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
27	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
28	XXX_unrecognized     []byte         `json:"-"`
29	XXX_sizecache        int32          `json:"-"`
30}
31
32func (m *Backend) Reset()         { *m = Backend{} }
33func (m *Backend) String() string { return proto.CompactTextString(m) }
34func (*Backend) ProtoMessage()    {}
35func (*Backend) Descriptor() ([]byte, []int) {
36	return fileDescriptor_backend_98db65a00dbdbb78, []int{0}
37}
38func (m *Backend) XXX_Unmarshal(b []byte) error {
39	return xxx_messageInfo_Backend.Unmarshal(m, b)
40}
41func (m *Backend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
42	return xxx_messageInfo_Backend.Marshal(b, m, deterministic)
43}
44func (dst *Backend) XXX_Merge(src proto.Message) {
45	xxx_messageInfo_Backend.Merge(dst, src)
46}
47func (m *Backend) XXX_Size() int {
48	return xxx_messageInfo_Backend.Size(m)
49}
50func (m *Backend) XXX_DiscardUnknown() {
51	xxx_messageInfo_Backend.DiscardUnknown(m)
52}
53
54var xxx_messageInfo_Backend proto.InternalMessageInfo
55
56func (m *Backend) GetRules() []*BackendRule {
57	if m != nil {
58		return m.Rules
59	}
60	return nil
61}
62
63// A backend rule provides configuration for an individual API element.
64type BackendRule struct {
65	// Selects the methods to which this rule applies.
66	//
67	// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
68	Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
69	// The address of the API backend.
70	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
71	// The number of seconds to wait for a response from a request.  The default
72	// deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
73	Deadline float64 `protobuf:"fixed64,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
74	// Minimum deadline in seconds needed for this method. Calls having deadline
75	// value lower than this will be rejected.
76	MinDeadline          float64  `protobuf:"fixed64,4,opt,name=min_deadline,json=minDeadline,proto3" json:"min_deadline,omitempty"`
77	XXX_NoUnkeyedLiteral struct{} `json:"-"`
78	XXX_unrecognized     []byte   `json:"-"`
79	XXX_sizecache        int32    `json:"-"`
80}
81
82func (m *BackendRule) Reset()         { *m = BackendRule{} }
83func (m *BackendRule) String() string { return proto.CompactTextString(m) }
84func (*BackendRule) ProtoMessage()    {}
85func (*BackendRule) Descriptor() ([]byte, []int) {
86	return fileDescriptor_backend_98db65a00dbdbb78, []int{1}
87}
88func (m *BackendRule) XXX_Unmarshal(b []byte) error {
89	return xxx_messageInfo_BackendRule.Unmarshal(m, b)
90}
91func (m *BackendRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
92	return xxx_messageInfo_BackendRule.Marshal(b, m, deterministic)
93}
94func (dst *BackendRule) XXX_Merge(src proto.Message) {
95	xxx_messageInfo_BackendRule.Merge(dst, src)
96}
97func (m *BackendRule) XXX_Size() int {
98	return xxx_messageInfo_BackendRule.Size(m)
99}
100func (m *BackendRule) XXX_DiscardUnknown() {
101	xxx_messageInfo_BackendRule.DiscardUnknown(m)
102}
103
104var xxx_messageInfo_BackendRule proto.InternalMessageInfo
105
106func (m *BackendRule) GetSelector() string {
107	if m != nil {
108		return m.Selector
109	}
110	return ""
111}
112
113func (m *BackendRule) GetAddress() string {
114	if m != nil {
115		return m.Address
116	}
117	return ""
118}
119
120func (m *BackendRule) GetDeadline() float64 {
121	if m != nil {
122		return m.Deadline
123	}
124	return 0
125}
126
127func (m *BackendRule) GetMinDeadline() float64 {
128	if m != nil {
129		return m.MinDeadline
130	}
131	return 0
132}
133
134func init() {
135	proto.RegisterType((*Backend)(nil), "google.api.Backend")
136	proto.RegisterType((*BackendRule)(nil), "google.api.BackendRule")
137}
138
139func init() { proto.RegisterFile("google/api/backend.proto", fileDescriptor_backend_98db65a00dbdbb78) }
140
141var fileDescriptor_backend_98db65a00dbdbb78 = []byte{
142	// 246 bytes of a gzipped FileDescriptorProto
143	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
144	0x10, 0x86, 0xe5, 0xb6, 0x50, 0xb8, 0x54, 0x0c, 0x59, 0xb0, 0x98, 0x42, 0xa7, 0x2c, 0x38, 0x12,
145	0x2c, 0x48, 0x4c, 0x44, 0x20, 0xc4, 0x16, 0x65, 0x64, 0x41, 0xae, 0x7d, 0x58, 0x16, 0x8e, 0x2f,
146	0xb2, 0x5b, 0x1e, 0x80, 0x47, 0xe1, 0x49, 0x51, 0x9d, 0x10, 0xda, 0xf1, 0xbb, 0xef, 0x3f, 0xe9,
147	0xee, 0x07, 0x6e, 0x88, 0x8c, 0xc3, 0x4a, 0xf6, 0xb6, 0xda, 0x48, 0xf5, 0x89, 0x5e, 0x8b, 0x3e,
148	0xd0, 0x96, 0x72, 0x18, 0x8c, 0x90, 0xbd, 0x5d, 0xdf, 0xc3, 0xb2, 0x1e, 0x64, 0x7e, 0x03, 0x27,
149	0x61, 0xe7, 0x30, 0x72, 0x56, 0xcc, 0xcb, 0xec, 0xf6, 0x52, 0xfc, 0xc7, 0xc4, 0x98, 0x69, 0x77,
150	0x0e, 0xdb, 0x21, 0xb5, 0xfe, 0x66, 0x90, 0x1d, 0x8c, 0xf3, 0x2b, 0x38, 0x8b, 0xe8, 0x50, 0x6d,
151	0x29, 0x70, 0x56, 0xb0, 0xf2, 0xbc, 0x9d, 0x38, 0xe7, 0xb0, 0x94, 0x5a, 0x07, 0x8c, 0x91, 0xcf,
152	0x92, 0xfa, 0xc3, 0xfd, 0x96, 0x46, 0xa9, 0x9d, 0xf5, 0xc8, 0xe7, 0x05, 0x2b, 0x59, 0x3b, 0x71,
153	0x7e, 0x0d, 0xab, 0xce, 0xfa, 0xf7, 0xc9, 0x2f, 0x92, 0xcf, 0x3a, 0xeb, 0x9f, 0xc6, 0x51, 0xed,
154	0xe1, 0x42, 0x51, 0x77, 0x70, 0x69, 0xbd, 0x1a, 0x6f, 0x6a, 0xf6, 0xaf, 0x36, 0xec, 0xed, 0x79,
155	0x74, 0x86, 0x9c, 0xf4, 0x46, 0x50, 0x30, 0x95, 0x41, 0x9f, 0x8a, 0xa8, 0x06, 0x25, 0x7b, 0x1b,
156	0x53, 0x4b, 0x11, 0xc3, 0x97, 0x55, 0xa8, 0xc8, 0x7f, 0x58, 0xf3, 0x70, 0x44, 0x3f, 0xb3, 0xc5,
157	0xcb, 0x63, 0xf3, 0xba, 0x39, 0x4d, 0x8b, 0x77, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xc3,
158	0xd8, 0x52, 0x5d, 0x01, 0x00, 0x00,
159}
160