99 lines
3.8 KiB
Go
99 lines
3.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: google/api/backend.proto
|
|
|
|
package serviceconfig
|
|
|
|
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 API backend rules that apply to individual API methods.
|
|
//
|
|
// **NOTE:** All service configuration rules follow "last one wins" order.
|
|
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 fileDescriptor1, []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 fileDescriptor1, []int{1} }
|
|
|
|
func (m *BackendRule) GetSelector() string {
|
|
if m != nil {
|
|
return m.Selector
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BackendRule) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BackendRule) GetDeadline() float64 {
|
|
if m != nil {
|
|
return m.Deadline
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Backend)(nil), "google.api.Backend")
|
|
proto.RegisterType((*BackendRule)(nil), "google.api.BackendRule")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("google/api/backend.proto", fileDescriptor1) }
|
|
|
|
var fileDescriptor1 = []byte{
|
|
// 227 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x31, 0x4f, 0x03, 0x21,
|
|
0x18, 0x86, 0x43, 0xab, 0x56, 0xbf, 0x1a, 0x87, 0x5b, 0x24, 0x4e, 0x97, 0x4e, 0xb7, 0xc8, 0x25,
|
|
0xba, 0x98, 0x38, 0x79, 0x89, 0x31, 0x6e, 0x17, 0x46, 0x17, 0x43, 0xe1, 0x93, 0x10, 0x91, 0x8f,
|
|
0x40, 0xeb, 0x0f, 0xf2, 0x97, 0x9a, 0xc2, 0x59, 0xdb, 0xf1, 0xe1, 0x79, 0xdf, 0xc0, 0x0b, 0x70,
|
|
0x4b, 0x64, 0x3d, 0xf6, 0x2a, 0xba, 0x7e, 0xad, 0xf4, 0x27, 0x06, 0x23, 0x62, 0xa2, 0x0d, 0x35,
|
|
0x50, 0x8d, 0x50, 0xd1, 0xad, 0x1e, 0x60, 0x31, 0x54, 0xd9, 0xdc, 0xc2, 0x69, 0xda, 0x7a, 0xcc,
|
|
0x9c, 0xb5, 0xf3, 0x6e, 0x79, 0x77, 0x2d, 0xfe, 0x63, 0x62, 0xca, 0xc8, 0xad, 0x47, 0x59, 0x53,
|
|
0xab, 0x77, 0x58, 0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