1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/endpoint.proto
3
4package serviceconfig
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11)
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
23
24// `Endpoint` describes a network endpoint that serves a set of APIs.
25// A service may expose any number of endpoints, and all endpoints share the
26// same service configuration, such as quota configuration and monitoring
27// configuration.
28//
29// Example service configuration:
30//
31//     name: library-example.googleapis.com
32//     endpoints:
33//       # Below entry makes 'google.example.library.v1.Library'
34//       # API be served from endpoint address library-example.googleapis.com.
35//       # It also allows HTTP OPTIONS calls to be passed to the backend, for
36//       # it to decide whether the subsequent cross-origin request is
37//       # allowed to proceed.
38//     - name: library-example.googleapis.com
39//       allow_cors: true
40type Endpoint struct {
41	// The canonical name of this endpoint.
42	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
43	// DEPRECATED: This field is no longer supported. Instead of using aliases,
44	// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
45	// aliases.
46	//
47	// Additional names that this endpoint will be hosted on.
48	Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"` // Deprecated: Do not use.
49	// The list of features enabled on this endpoint.
50	Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
51	// The specification of an Internet routable address of API frontend that will
52	// handle requests to this [API
53	// Endpoint](https://cloud.google.com/apis/design/glossary). It should be
54	// either a valid IPv4 address or a fully-qualified domain name. For example,
55	// "8.8.8.8" or "myservice.appspot.com".
56	Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
57	// Allowing
58	// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
59	// cross-domain traffic, would allow the backends served from this endpoint to
60	// receive and respond to HTTP OPTIONS requests. The response will be used by
61	// the browser to determine whether the subsequent cross-origin request is
62	// allowed to proceed.
63	AllowCors            bool     `protobuf:"varint,5,opt,name=allow_cors,json=allowCors,proto3" json:"allow_cors,omitempty"`
64	XXX_NoUnkeyedLiteral struct{} `json:"-"`
65	XXX_unrecognized     []byte   `json:"-"`
66	XXX_sizecache        int32    `json:"-"`
67}
68
69func (m *Endpoint) Reset()         { *m = Endpoint{} }
70func (m *Endpoint) String() string { return proto.CompactTextString(m) }
71func (*Endpoint) ProtoMessage()    {}
72func (*Endpoint) Descriptor() ([]byte, []int) {
73	return fileDescriptor_ee48cbc4cc013456, []int{0}
74}
75
76func (m *Endpoint) XXX_Unmarshal(b []byte) error {
77	return xxx_messageInfo_Endpoint.Unmarshal(m, b)
78}
79func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
80	return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
81}
82func (m *Endpoint) XXX_Merge(src proto.Message) {
83	xxx_messageInfo_Endpoint.Merge(m, src)
84}
85func (m *Endpoint) XXX_Size() int {
86	return xxx_messageInfo_Endpoint.Size(m)
87}
88func (m *Endpoint) XXX_DiscardUnknown() {
89	xxx_messageInfo_Endpoint.DiscardUnknown(m)
90}
91
92var xxx_messageInfo_Endpoint proto.InternalMessageInfo
93
94func (m *Endpoint) GetName() string {
95	if m != nil {
96		return m.Name
97	}
98	return ""
99}
100
101// Deprecated: Do not use.
102func (m *Endpoint) GetAliases() []string {
103	if m != nil {
104		return m.Aliases
105	}
106	return nil
107}
108
109func (m *Endpoint) GetFeatures() []string {
110	if m != nil {
111		return m.Features
112	}
113	return nil
114}
115
116func (m *Endpoint) GetTarget() string {
117	if m != nil {
118		return m.Target
119	}
120	return ""
121}
122
123func (m *Endpoint) GetAllowCors() bool {
124	if m != nil {
125		return m.AllowCors
126	}
127	return false
128}
129
130func init() {
131	proto.RegisterType((*Endpoint)(nil), "google.api.Endpoint")
132}
133
134func init() { proto.RegisterFile("google/api/endpoint.proto", fileDescriptor_ee48cbc4cc013456) }
135
136var fileDescriptor_ee48cbc4cc013456 = []byte{
137	// 236 bytes of a gzipped FileDescriptorProto
138	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xc1, 0x4a, 0xc4, 0x30,
139	0x10, 0x86, 0x49, 0xad, 0x6b, 0x3b, 0xa0, 0x87, 0x1c, 0x24, 0x8a, 0x42, 0xf1, 0xd4, 0x53, 0x7b,
140	0xf0, 0xe8, 0xc9, 0xca, 0x22, 0xde, 0x4a, 0x8f, 0x5e, 0x64, 0xac, 0xb3, 0x21, 0x90, 0xcd, 0x84,
141	0x24, 0xea, 0x63, 0xf8, 0x0e, 0x3e, 0xa9, 0x6c, 0xb6, 0xab, 0x78, 0xcb, 0xff, 0x7f, 0x64, 0xf8,
142	0x7e, 0xb8, 0xd0, 0xcc, 0xda, 0x52, 0x8f, 0xde, 0xf4, 0xe4, 0xde, 0x3c, 0x1b, 0x97, 0x3a, 0x1f,
143	0x38, 0xb1, 0x84, 0x3d, 0xea, 0xd0, 0x9b, 0x9b, 0x2f, 0x01, 0xd5, 0x7a, 0xc1, 0x52, 0x42, 0xe9,
144	0x70, 0x4b, 0x4a, 0x34, 0xa2, 0xad, 0xa7, 0xfc, 0x96, 0x57, 0x70, 0x82, 0xd6, 0x60, 0xa4, 0xa8,
145	0x8a, 0xe6, 0xa8, 0xad, 0x87, 0x42, 0x89, 0xe9, 0x50, 0xc9, 0x4b, 0xa8, 0x36, 0x84, 0xe9, 0x3d,
146	0x50, 0x54, 0xe5, 0x0e, 0x4f, 0xbf, 0x59, 0x9e, 0xc3, 0x2a, 0x61, 0xd0, 0x94, 0x14, 0xe5, 0x7b,
147	0x4b, 0x92, 0xd7, 0x00, 0x68, 0x2d, 0x7f, 0xbe, 0xcc, 0x1c, 0xa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