1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/endpoint.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"
9import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11// Reference imports to suppress errors if they are not otherwise used.
12var _ = proto.Marshal
13var _ = fmt.Errorf
14var _ = math.Inf
15
16// This is a compile-time assertion to ensure that this generated file
17// is compatible with the proto package it is being compiled against.
18// A compilation error at this line likely means your copy of the
19// proto package needs to be updated.
20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
21
22// `Endpoint` describes a network endpoint that serves a set of APIs.
23// A service may expose any number of endpoints, and all endpoints share the
24// same service configuration, such as quota configuration and monitoring
25// configuration.
26//
27// Example service configuration:
28//
29//     name: library-example.googleapis.com
30//     endpoints:
31//       # Below entry makes 'google.example.library.v1.Library'
32//       # API be served from endpoint address library-example.googleapis.com.
33//       # It also allows HTTP OPTIONS calls to be passed to the backend, for
34//       # it to decide whether the subsequent cross-origin request is
35//       # allowed to proceed.
36//     - name: library-example.googleapis.com
37//       allow_cors: true
38type Endpoint struct {
39	// The canonical name of this endpoint.
40	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
41	// DEPRECATED: This field is no longer supported. Instead of using aliases,
42	// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
43	// aliases.
44	//
45	// Additional names that this endpoint will be hosted on.
46	Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
47	// The list of features enabled on this endpoint.
48	Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
49	// The specification of an Internet routable address of API frontend that will
50	// handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary).
51	// It should be either a valid IPv4 address or a fully-qualified domain name.
52	// For example, "8.8.8.8" or "myservice.appspot.com".
53	Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
54	// Allowing
55	// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
56	// cross-domain traffic, would allow the backends served from this endpoint to
57	// receive and respond to HTTP OPTIONS requests. The response will be used by
58	// the browser to determine whether the subsequent cross-origin request is
59	// allowed to proceed.
60	AllowCors            bool     `protobuf:"varint,5,opt,name=allow_cors,json=allowCors,proto3" json:"allow_cors,omitempty"`
61	XXX_NoUnkeyedLiteral struct{} `json:"-"`
62	XXX_unrecognized     []byte   `json:"-"`
63	XXX_sizecache        int32    `json:"-"`
64}
65
66func (m *Endpoint) Reset()         { *m = Endpoint{} }
67func (m *Endpoint) String() string { return proto.CompactTextString(m) }
68func (*Endpoint) ProtoMessage()    {}
69func (*Endpoint) Descriptor() ([]byte, []int) {
70	return fileDescriptor_endpoint_d87650ae3428bec5, []int{0}
71}
72func (m *Endpoint) XXX_Unmarshal(b []byte) error {
73	return xxx_messageInfo_Endpoint.Unmarshal(m, b)
74}
75func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
76	return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
77}
78func (dst *Endpoint) XXX_Merge(src proto.Message) {
79	xxx_messageInfo_Endpoint.Merge(dst, src)
80}
81func (m *Endpoint) XXX_Size() int {
82	return xxx_messageInfo_Endpoint.Size(m)
83}
84func (m *Endpoint) XXX_DiscardUnknown() {
85	xxx_messageInfo_Endpoint.DiscardUnknown(m)
86}
87
88var xxx_messageInfo_Endpoint proto.InternalMessageInfo
89
90func (m *Endpoint) GetName() string {
91	if m != nil {
92		return m.Name
93	}
94	return ""
95}
96
97func (m *Endpoint) GetAliases() []string {
98	if m != nil {
99		return m.Aliases
100	}
101	return nil
102}
103
104func (m *Endpoint) GetFeatures() []string {
105	if m != nil {
106		return m.Features
107	}
108	return nil
109}
110
111func (m *Endpoint) GetTarget() string {
112	if m != nil {
113		return m.Target
114	}
115	return ""
116}
117
118func (m *Endpoint) GetAllowCors() bool {
119	if m != nil {
120		return m.AllowCors
121	}
122	return false
123}
124
125func init() {
126	proto.RegisterType((*Endpoint)(nil), "google.api.Endpoint")
127}
128
129func init() { proto.RegisterFile("google/api/endpoint.proto", fileDescriptor_endpoint_d87650ae3428bec5) }
130
131var fileDescriptor_endpoint_d87650ae3428bec5 = []byte{
132	// 245 bytes of a gzipped FileDescriptorProto
133	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xb1, 0x4e, 0xc3, 0x30,
134	0x10, 0x86, 0xe5, 0x12, 0x4a, 0x72, 0x12, 0x0c, 0x1e, 0x90, 0xa9, 0x40, 0x8a, 0x98, 0x32, 0x25,
135	0x03, 0x23, 0x13, 0x45, 0x15, 0x62, 0x8b, 0x32, 0xb2, 0xa0, 0x23, 0x5c, 0x2d, 0x4b, 0xae, 0xcf,
136	0xb2, 0x0d, 0x3c, 0x04, 0x6f, 0xc1, 0x93, 0x22, 0x9c, 0x14, 0xe8, 0xe6, 0xcf, 0xdf, 0xdd, 0xe9,
137	0xff, 0xe1, 0x42, 0x33, 0x6b, 0x4b, 0x1d, 0x7a, 0xd3, 0x91, 0x7b, 0xf5, 0x6c, 0x5c, 0x6a, 0x7d,
138	0xe0, 0xc4, 0x12, 0x26, 0xd5, 0xa2, 0x37, 0xab, 0xcb, 0x7f, 0x63, 0xe8, 0x1c, 0x27, 0x4c, 0x86,
139	0x5d, 0x9c, 0x26, 0xaf, 0x3f, 0x05, 0x94, 0x9b, 0x79, 0x59, 0x4a, 0x28, 0x1c, 0xee, 0x48, 0x89,
140	0x5a, 0x34, 0xd5, 0x90, 0xdf, 0x52, 0xc1, 0x09, 0x5a, 0x83, 0x91, 0xa2, 0x5a, 0xd4, 0x47, 0x4d,
141	0x35, 0xec, 0x51, 0xae, 0xa0, 0xdc, 0x12, 0xa6, 0xb7, 0x40, 0x51, 0x15, 0x59, 0xfd, 0xb2, 0x3c,
142	0x87, 0x65, 0xc2, 0xa0, 0x29, 0x29, 0xca, 0xb7, 0x66, 0x92, 0x57, 0x00, 0x68, 0x2d, 0x7f, 0x3c,
143	0x8f, 0x1c, 0xa2, 0x3a, 0xae, 0x45, 0x53, 0x0e, 0x55, 0xfe, 0xb9, 0xe7, 0x10, 0xd7, 0x0c, 0x67,
144	0x23, 0xef, 0xda, 0xbf, 0xf4, 0xeb, 0xd3, 0x7d, 0xb8, 0xfe, 0x27, 0x6e, 0x2f, 0x9e, 0x36, 0xb3,
145	0xd4, 0x6c, 0xd1, 0xe9, 0x96, 0x83, 0xee, 0x34, 0xb9, 0x5c, 0xa6, 0x9b, 0x14, 0x7a, 0x13, 0x73,
146	0xdb, 0x48, 0xe1, 0xdd, 0x8c, 0x34, 0xb2, 0xdb, 0x1a, 0x7d, 0x7b, 0x40, 0x5f, 0x8b, 0xe2, 0xe1,
147	0xae, 0x7f, 0x7c, 0x59, 0xe6, 0xc5, 0x9b, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x32, 0xa4,
148	0x36, 0x4c, 0x01, 0x00, 0x00,
149}
150