OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / api / serviceconfig / usage.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/usage.proto
3
4 package serviceconfig
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11 // Reference imports to suppress errors if they are not otherwise used.
12 var _ = proto.Marshal
13 var _ = fmt.Errorf
14 var _ = math.Inf
15
16 // Configuration controlling usage of a service.
17 type Usage struct {
18         // Requirements that must be satisfied before a consumer project can use the
19         // service. Each requirement is of the form <service.name>/<requirement-id>;
20         // for example 'serviceusage.googleapis.com/billing-enabled'.
21         Requirements []string `protobuf:"bytes,1,rep,name=requirements" json:"requirements,omitempty"`
22         // A list of usage rules that apply to individual API methods.
23         //
24         // **NOTE:** All service configuration rules follow "last one wins" order.
25         Rules []*UsageRule `protobuf:"bytes,6,rep,name=rules" json:"rules,omitempty"`
26         // The full resource name of a channel used for sending notifications to the
27         // service producer.
28         //
29         // Google Service Management currently only supports
30         // [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
31         // channel. To use Google Cloud Pub/Sub as the channel, this must be the name
32         // of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
33         // documented in https://cloud.google.com/pubsub/docs/overview.
34         ProducerNotificationChannel string `protobuf:"bytes,7,opt,name=producer_notification_channel,json=producerNotificationChannel" json:"producer_notification_channel,omitempty"`
35 }
36
37 func (m *Usage) Reset()                    { *m = Usage{} }
38 func (m *Usage) String() string            { return proto.CompactTextString(m) }
39 func (*Usage) ProtoMessage()               {}
40 func (*Usage) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{0} }
41
42 func (m *Usage) GetRequirements() []string {
43         if m != nil {
44                 return m.Requirements
45         }
46         return nil
47 }
48
49 func (m *Usage) GetRules() []*UsageRule {
50         if m != nil {
51                 return m.Rules
52         }
53         return nil
54 }
55
56 func (m *Usage) GetProducerNotificationChannel() string {
57         if m != nil {
58                 return m.ProducerNotificationChannel
59         }
60         return ""
61 }
62
63 // Usage configuration rules for the service.
64 //
65 // NOTE: Under development.
66 //
67 //
68 // Use this rule to configure unregistered calls for the service. Unregistered
69 // calls are calls that do not contain consumer project identity.
70 // (Example: calls that do not contain an API key).
71 // By default, API methods do not allow unregistered calls, and each method call
72 // must be identified by a consumer project identity. Use this rule to
73 // allow/disallow unregistered calls.
74 //
75 // Example of an API that wants to allow unregistered calls for entire service.
76 //
77 //     usage:
78 //       rules:
79 //       - selector: "*"
80 //         allow_unregistered_calls: true
81 //
82 // Example of a method that wants to allow unregistered calls.
83 //
84 //     usage:
85 //       rules:
86 //       - selector: "google.example.library.v1.LibraryService.CreateBook"
87 //         allow_unregistered_calls: true
88 type UsageRule struct {
89         // Selects the methods to which this rule applies. Use '*' to indicate all
90         // methods in all APIs.
91         //
92         // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
93         Selector string `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"`
94         // True, if the method allows unregistered calls; false otherwise.
95         AllowUnregisteredCalls bool `protobuf:"varint,2,opt,name=allow_unregistered_calls,json=allowUnregisteredCalls" json:"allow_unregistered_calls,omitempty"`
96         // True, if the method should skip service control. If so, no control plane
97         // feature (like quota and billing) will be enabled.
98         SkipServiceControl bool `protobuf:"varint,3,opt,name=skip_service_control,json=skipServiceControl" json:"skip_service_control,omitempty"`
99 }
100
101 func (m *UsageRule) Reset()                    { *m = UsageRule{} }
102 func (m *UsageRule) String() string            { return proto.CompactTextString(m) }
103 func (*UsageRule) ProtoMessage()               {}
104 func (*UsageRule) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{1} }
105
106 func (m *UsageRule) GetSelector() string {
107         if m != nil {
108                 return m.Selector
109         }
110         return ""
111 }
112
113 func (m *UsageRule) GetAllowUnregisteredCalls() bool {
114         if m != nil {
115                 return m.AllowUnregisteredCalls
116         }
117         return false
118 }
119
120 func (m *UsageRule) GetSkipServiceControl() bool {
121         if m != nil {
122                 return m.SkipServiceControl
123         }
124         return false
125 }
126
127 func init() {
128         proto.RegisterType((*Usage)(nil), "google.api.Usage")
129         proto.RegisterType((*UsageRule)(nil), "google.api.UsageRule")
130 }
131
132 func init() { proto.RegisterFile("google/api/usage.proto", fileDescriptor15) }
133
134 var fileDescriptor15 = []byte{
135         // 331 bytes of a gzipped FileDescriptorProto
136         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x4b, 0xfb, 0x30,
137         0x14, 0xc7, 0xe9, 0xf6, 0xdb, 0x7e, 0x5b, 0x14, 0x0f, 0x41, 0x47, 0x99, 0x0a, 0x65, 0xa7, 0x82,
138         0xd0, 0x8a, 0x5e, 0x04, 0x4f, 0x6e, 0x88, 0x78, 0x91, 0x51, 0xd9, 0xc5, 0x4b, 0x89, 0xd9, 0x5b,
139         0x0c, 0x66, 0x79, 0x35, 0x49, 0xf5, 0x0f, 0xf1, 0xea, 0xc9, 0xbf, 0x54, 0x9a, 0xcc, 0xd9, 0x1d,
140         0xdf, 0xfb, 0x7c, 0xbe, 0xef, 0xb5, 0x2f, 0x64, 0x24, 0x10, 0x85, 0x82, 0x9c, 0x55, 0x32, 0xaf,
141         0x2d, 0x13, 0x90, 0x55, 0x06, 0x1d, 0x52, 0x12, 0xfa, 0x19, 0xab, 0xe4, 0xf8, 0xa4, 0xe5, 0x30,
142         0xad, 0xd1, 0x31, 0x27, 0x51, 0xdb, 0x60, 0x4e, 0xbe, 0x22, 0xd2, 0x5b, 0x34, 0x49, 0x3a, 0x21,
143         0xfb, 0x06, 0xde, 0x6a, 0x69, 0x60, 0x0d, 0xda, 0xd9, 0x38, 0x4a, 0xba, 0xe9, 0xb0, 0xd8, 0xe9,
144         0xd1, 0x33, 0xd2, 0x33, 0xb5, 0x02, 0x1b, 0xf7, 0x93, 0x6e, 0xba, 0x77, 0x71, 0x94, 0xfd, 0xed,
145         0xc9, 0xfc, 0x94, 0xa2, 0x56, 0x50, 0x04, 0x87, 0x4e, 0xc9, 0x69, 0x65, 0x70, 0x59, 0x73, 0x30,
146         0xa5, 0x46, 0x27, 0x57, 0x92, 0xfb, 0xd5, 0x25, 0x7f, 0x61, 0x5a, 0x83, 0x8a, 0xff, 0x27, 0x51,
147         0x3a, 0x2c, 0x8e, 0x7f, 0xa5, 0x87, 0x96, 0x33, 0x0b, 0xca, 0xe4, 0x33, 0x22, 0xc3, 0xed, 0x60,
148         0x3a, 0x26, 0x03, 0x0b, 0x0a, 0xb8, 0x43, 0x13, 0x47, 0x3e, 0xbc, 0xad, 0xe9, 0x15, 0x89, 0x99,
149         0x52, 0xf8, 0x51, 0xd6, 0xda, 0x80, 0x90, 0xd6, 0x81, 0x81, 0x65, 0xc9, 0x99, 0x52, 0x36, 0xee,
150         0x24, 0x51, 0x3a, 0x28, 0x46, 0x9e, 0x2f, 0x5a, 0x78, 0xd6, 0x50, 0x7a, 0x4e, 0x0e, 0xed, 0xab,
151         0xac, 0x4a, 0x0b, 0xe6, 0x5d, 0x72, 0x28, 0x39, 0x6a, 0x67, 0x50, 0xc5, 0x5d, 0x9f, 0xa2, 0x0d,
152         0x7b, 0x0c, 0x68, 0x16, 0xc8, 0x54, 0x91, 0x03, 0x8e, 0xeb, 0xd6, 0xcf, 0x4f, 0x89, 0xff, 0xc8,
153         0x79, 0x73, 0xd2, 0x79, 0xf4, 0x74, 0xbb, 0x21, 0x02, 0x15, 0xd3, 0x22, 0x43, 0x23, 0x72, 0x01,
154         0xda, 0x1f, 0x3c, 0x0f, 0x88, 0x55, 0xd2, 0xfa, 0x17, 0xd9, 0x2c, 0xe5, 0xa8, 0x57, 0x52, 0x5c,
155         0xef, 0x54, 0xdf, 0x9d, 0x7f, 0x77, 0x37, 0xf3, 0xfb, 0xe7, 0xbe, 0x0f, 0x5e, 0xfe, 0x04, 0x00,
156         0x00, 0xff, 0xff, 0x9c, 0x4b, 0x8c, 0x57, 0xed, 0x01, 0x00, 0x00,
157 }