You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

152 lines
6.2 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/endpoint.proto
  3. package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // `Endpoint` describes a network endpoint that serves a set of APIs.
  18. // A service may expose any number of endpoints, and all endpoints share the
  19. // same service configuration, such as quota configuration and monitoring
  20. // configuration.
  21. //
  22. // Example service configuration:
  23. //
  24. // name: library-example.googleapis.com
  25. // endpoints:
  26. // # Below entry makes 'google.example.library.v1.Library'
  27. // # API be served from endpoint address library-example.googleapis.com.
  28. // # It also allows HTTP OPTIONS calls to be passed to the backend, for
  29. // # it to decide whether the subsequent cross-origin request is
  30. // # allowed to proceed.
  31. // - name: library-example.googleapis.com
  32. // allow_cors: true
  33. type Endpoint struct {
  34. // The canonical name of this endpoint.
  35. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  36. // DEPRECATED: This field is no longer supported. Instead of using aliases,
  37. // please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
  38. // of the intended aliases.
  39. //
  40. // Additional names that this endpoint will be hosted on.
  41. Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"` // Deprecated: Do not use.
  42. // The list of features enabled on this endpoint.
  43. Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
  44. // The specification of an Internet routable address of API frontend that will
  45. // handle requests to this [API
  46. // Endpoint](https://cloud.google.com/apis/design/glossary). It should be
  47. // either a valid IPv4 address or a fully-qualified domain name. For example,
  48. // "8.8.8.8" or "myservice.appspot.com".
  49. Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
  50. // Allowing
  51. // [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
  52. // cross-domain traffic, would allow the backends served from this endpoint to
  53. // receive and respond to HTTP OPTIONS requests. The response will be used by
  54. // the browser to determine whether the subsequent cross-origin request is
  55. // allowed to proceed.
  56. AllowCors bool `protobuf:"varint,5,opt,name=allow_cors,json=allowCors,proto3" json:"allow_cors,omitempty"`
  57. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  58. XXX_unrecognized []byte `json:"-"`
  59. XXX_sizecache int32 `json:"-"`
  60. }
  61. func (m *Endpoint) Reset() { *m = Endpoint{} }
  62. func (m *Endpoint) String() string { return proto.CompactTextString(m) }
  63. func (*Endpoint) ProtoMessage() {}
  64. func (*Endpoint) Descriptor() ([]byte, []int) {
  65. return fileDescriptor_endpoint_c85a41e377429c8c, []int{0}
  66. }
  67. func (m *Endpoint) XXX_Unmarshal(b []byte) error {
  68. return xxx_messageInfo_Endpoint.Unmarshal(m, b)
  69. }
  70. func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  71. return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
  72. }
  73. func (dst *Endpoint) XXX_Merge(src proto.Message) {
  74. xxx_messageInfo_Endpoint.Merge(dst, src)
  75. }
  76. func (m *Endpoint) XXX_Size() int {
  77. return xxx_messageInfo_Endpoint.Size(m)
  78. }
  79. func (m *Endpoint) XXX_DiscardUnknown() {
  80. xxx_messageInfo_Endpoint.DiscardUnknown(m)
  81. }
  82. var xxx_messageInfo_Endpoint proto.InternalMessageInfo
  83. func (m *Endpoint) GetName() string {
  84. if m != nil {
  85. return m.Name
  86. }
  87. return ""
  88. }
  89. // Deprecated: Do not use.
  90. func (m *Endpoint) GetAliases() []string {
  91. if m != nil {
  92. return m.Aliases
  93. }
  94. return nil
  95. }
  96. func (m *Endpoint) GetFeatures() []string {
  97. if m != nil {
  98. return m.Features
  99. }
  100. return nil
  101. }
  102. func (m *Endpoint) GetTarget() string {
  103. if m != nil {
  104. return m.Target
  105. }
  106. return ""
  107. }
  108. func (m *Endpoint) GetAllowCors() bool {
  109. if m != nil {
  110. return m.AllowCors
  111. }
  112. return false
  113. }
  114. func init() {
  115. proto.RegisterType((*Endpoint)(nil), "google.api.Endpoint")
  116. }
  117. func init() { proto.RegisterFile("google/api/endpoint.proto", fileDescriptor_endpoint_c85a41e377429c8c) }
  118. var fileDescriptor_endpoint_c85a41e377429c8c = []byte{
  119. // 251 bytes of a gzipped FileDescriptorProto
  120. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xbf, 0x4e, 0xf4, 0x30,
  121. 0x10, 0xc4, 0xe5, 0x7c, 0xf9, 0x8e, 0x64, 0x25, 0x28, 0x5c, 0x20, 0x73, 0x3a, 0xa4, 0x88, 0x2a,
  122. 0x55, 0x52, 0x50, 0x52, 0x11, 0x74, 0x42, 0x74, 0x51, 0x4a, 0x1a, 0xb4, 0x84, 0x3d, 0xcb, 0x52,
  123. 0xce, 0x6b, 0xd9, 0x06, 0x1e, 0x83, 0x77, 0xe0, 0x49, 0xd1, 0x39, 0x39, 0xfe, 0x74, 0x9e, 0xfd,
  124. 0xcd, 0x58, 0x33, 0x70, 0xa1, 0x99, 0xf5, 0x44, 0x2d, 0x3a, 0xd3, 0x92, 0x7d, 0x71, 0x6c, 0x6c,
  125. 0x6c, 0x9c, 0xe7, 0xc8, 0x12, 0x66, 0xd4, 0xa0, 0x33, 0xeb, 0xcd, 0x2f, 0x1b, 0x5a, 0xcb, 0x11,
  126. 0xa3, 0x61, 0x1b, 0x66, 0xe7, 0xd5, 0x87, 0x80, 0x62, 0xbb, 0x84, 0xa5, 0x84, 0xdc, 0xe2, 0x9e,
  127. 0x94, 0xa8, 0x44, 0x5d, 0x0e, 0xe9, 0x2d, 0x37, 0x70, 0x82, 0x93, 0xc1, 0x40, 0x41, 0x65, 0xd5,
  128. 0xbf, 0xba, 0xec, 0x32, 0x25, 0x86, 0xe3, 0x49, 0xae, 0xa1, 0xd8, 0x11, 0xc6, 0x57, 0x4f, 0x41,
  129. 0xe5, 0x07, 0x3c, 0x7c, 0x6b, 0x79, 0x0e, 0xab, 0x88, 0x5e, 0x53, 0x54, 0x94, 0xfe, 0x5b, 0x94,
  130. 0xbc, 0x04, 0xc0, 0x69, 0xe2, 0xf7, 0xa7, 0x91, 0x7d, 0x50, 0xff, 0x2b, 0x51, 0x17, 0x43, 0x99,
  131. 0x2e, 0x77, 0xec, 0x43, 0xc7, 0x70, 0x36, 0xf2, 0xbe, 0xf9, 0x59, 0xd0, 0x9d, 0x1e, 0x0b, 0xf6,
  132. 0x87, 0xca, 0xbd, 0x78, 0xdc, 0x2e, 0x50, 0xf3, 0x84, 0x56, 0x37, 0xec, 0x75, 0xab, 0xc9, 0xa6,
  133. 0x41, 0xed, 0x8c, 0xd0, 0x99, 0x90, 0x16, 0x07, 0xf2, 0x6f, 0x66, 0xa4, 0x91, 0xed, 0xce, 0xe8,
  134. 0x9b, 0x3f, 0xea, 0x33, 0xcb, 0xef, 0x6f, 0xfb, 0x87, 0xe7, 0x55, 0x0a, 0x5e, 0x7f, 0x05, 0x00,
  135. 0x00, 0xff, 0xff, 0xec, 0x55, 0x37, 0x26, 0x50, 0x01, 0x00, 0x00,
  136. }