OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / api / serviceconfig / system_parameter.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/system_parameter.proto
3
4 package serviceconfig
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9
10 // Reference imports to suppress errors if they are not otherwise used.
11 var _ = proto.Marshal
12 var _ = fmt.Errorf
13 var _ = math.Inf
14
15 // ### System parameter configuration
16 //
17 // A system parameter is a special kind of parameter defined by the API
18 // system, not by an individual API. It is typically mapped to an HTTP header
19 // and/or a URL query parameter. This configuration specifies which methods
20 // change the names of the system parameters.
21 type SystemParameters struct {
22         // Define system parameters.
23         //
24         // The parameters defined here will override the default parameters
25         // implemented by the system. If this field is missing from the service
26         // config, default system parameters will be used. Default system parameters
27         // and names is implementation-dependent.
28         //
29         // Example: define api key for all methods
30         //
31         //     system_parameters
32         //       rules:
33         //         - selector: "*"
34         //           parameters:
35         //             - name: api_key
36         //               url_query_parameter: api_key
37         //
38         //
39         // Example: define 2 api key names for a specific method.
40         //
41         //     system_parameters
42         //       rules:
43         //         - selector: "/ListShelves"
44         //           parameters:
45         //             - name: api_key
46         //               http_header: Api-Key1
47         //             - name: api_key
48         //               http_header: Api-Key2
49         //
50         // **NOTE:** All service configuration rules follow "last one wins" order.
51         Rules []*SystemParameterRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"`
52 }
53
54 func (m *SystemParameters) Reset()                    { *m = SystemParameters{} }
55 func (m *SystemParameters) String() string            { return proto.CompactTextString(m) }
56 func (*SystemParameters) ProtoMessage()               {}
57 func (*SystemParameters) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{0} }
58
59 func (m *SystemParameters) GetRules() []*SystemParameterRule {
60         if m != nil {
61                 return m.Rules
62         }
63         return nil
64 }
65
66 // Define a system parameter rule mapping system parameter definitions to
67 // methods.
68 type SystemParameterRule struct {
69         // Selects the methods to which this rule applies. Use '*' to indicate all
70         // methods in all APIs.
71         //
72         // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
73         Selector string `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"`
74         // Define parameters. Multiple names may be defined for a parameter.
75         // For a given method call, only one of them should be used. If multiple
76         // names are used the behavior is implementation-dependent.
77         // If none of the specified names are present the behavior is
78         // parameter-dependent.
79         Parameters []*SystemParameter `protobuf:"bytes,2,rep,name=parameters" json:"parameters,omitempty"`
80 }
81
82 func (m *SystemParameterRule) Reset()                    { *m = SystemParameterRule{} }
83 func (m *SystemParameterRule) String() string            { return proto.CompactTextString(m) }
84 func (*SystemParameterRule) ProtoMessage()               {}
85 func (*SystemParameterRule) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{1} }
86
87 func (m *SystemParameterRule) GetSelector() string {
88         if m != nil {
89                 return m.Selector
90         }
91         return ""
92 }
93
94 func (m *SystemParameterRule) GetParameters() []*SystemParameter {
95         if m != nil {
96                 return m.Parameters
97         }
98         return nil
99 }
100
101 // Define a parameter's name and location. The parameter may be passed as either
102 // an HTTP header or a URL query parameter, and if both are passed the behavior
103 // is implementation-dependent.
104 type SystemParameter struct {
105         // Define the name of the parameter, such as "api_key" . It is case sensitive.
106         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
107         // Define the HTTP header name to use for the parameter. It is case
108         // insensitive.
109         HttpHeader string `protobuf:"bytes,2,opt,name=http_header,json=httpHeader" json:"http_header,omitempty"`
110         // Define the URL query parameter name to use for the parameter. It is case
111         // sensitive.
112         UrlQueryParameter string `protobuf:"bytes,3,opt,name=url_query_parameter,json=urlQueryParameter" json:"url_query_parameter,omitempty"`
113 }
114
115 func (m *SystemParameter) Reset()                    { *m = SystemParameter{} }
116 func (m *SystemParameter) String() string            { return proto.CompactTextString(m) }
117 func (*SystemParameter) ProtoMessage()               {}
118 func (*SystemParameter) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{2} }
119
120 func (m *SystemParameter) GetName() string {
121         if m != nil {
122                 return m.Name
123         }
124         return ""
125 }
126
127 func (m *SystemParameter) GetHttpHeader() string {
128         if m != nil {
129                 return m.HttpHeader
130         }
131         return ""
132 }
133
134 func (m *SystemParameter) GetUrlQueryParameter() string {
135         if m != nil {
136                 return m.UrlQueryParameter
137         }
138         return ""
139 }
140
141 func init() {
142         proto.RegisterType((*SystemParameters)(nil), "google.api.SystemParameters")
143         proto.RegisterType((*SystemParameterRule)(nil), "google.api.SystemParameterRule")
144         proto.RegisterType((*SystemParameter)(nil), "google.api.SystemParameter")
145 }
146
147 func init() { proto.RegisterFile("google/api/system_parameter.proto", fileDescriptor14) }
148
149 var fileDescriptor14 = []byte{
150         // 286 bytes of a gzipped FileDescriptorProto
151         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xbf, 0x4e, 0xc3, 0x30,
152         0x10, 0x87, 0x95, 0xb6, 0x20, 0xb8, 0x4a, 0xfc, 0x71, 0x19, 0x22, 0x18, 0x5a, 0x3a, 0x75, 0x72,
153         0x24, 0x10, 0x53, 0x27, 0x2a, 0x21, 0xe8, 0x16, 0xca, 0xc6, 0x12, 0x99, 0x70, 0xb8, 0x91, 0x9c,
154         0xd8, 0x9c, 0x9d, 0x48, 0x7d, 0x1d, 0x9e, 0x14, 0xc5, 0x29, 0x69, 0x89, 0x10, 0x9b, 0xef, 0xbe,
155         0xcf, 0xfa, 0x9d, 0xee, 0xe0, 0x5a, 0x6a, 0x2d, 0x15, 0x46, 0xc2, 0x64, 0x91, 0xdd, 0x58, 0x87,
156         0x79, 0x62, 0x04, 0x89, 0x1c, 0x1d, 0x12, 0x37, 0xa4, 0x9d, 0x66, 0xd0, 0x28, 0x5c, 0x98, 0x6c,
157         0xba, 0x84, 0xb3, 0x17, 0x6f, 0xc5, 0x3f, 0x92, 0x65, 0x77, 0x70, 0x40, 0xa5, 0x42, 0x1b, 0x06,
158         0x93, 0xfe, 0x6c, 0x78, 0x33, 0xe6, 0x3b, 0x9f, 0x77, 0xe4, 0x55, 0xa9, 0x70, 0xd5, 0xd8, 0xd3,
159         0x02, 0x46, 0x7f, 0x50, 0x76, 0x09, 0x47, 0x16, 0x15, 0xa6, 0x4e, 0x53, 0x18, 0x4c, 0x82, 0xd9,
160         0xf1, 0xaa, 0xad, 0xd9, 0x1c, 0xa0, 0x1d, 0xce, 0x86, 0x3d, 0x1f, 0x77, 0xf5, 0x5f, 0xdc, 0x9e,
161         0x3e, 0xad, 0xe0, 0xb4, 0x83, 0x19, 0x83, 0x41, 0x21, 0x72, 0xdc, 0xe6, 0xf8, 0x37, 0x1b, 0xc3,
162         0x70, 0xed, 0x9c, 0x49, 0xd6, 0x28, 0xde, 0x91, 0xc2, 0x9e, 0x47, 0x50, 0xb7, 0x9e, 0x7c, 0x87,
163         0x71, 0x18, 0x95, 0xa4, 0x92, 0xcf, 0x12, 0x69, 0xb3, 0xdb, 0x55, 0xd8, 0xf7, 0xe2, 0x79, 0x49,
164         0xea, 0xb9, 0x26, 0x6d, 0xc8, 0xa2, 0x82, 0x93, 0x54, 0xe7, 0x7b, 0x53, 0x2e, 0x2e, 0x3a, 0x73,
165         0xc4, 0xf5, 0x9a, 0xe3, 0xe0, 0xf5, 0x61, 0xeb, 0x48, 0xad, 0x44, 0x21, 0xb9, 0x26, 0x19, 0x49,
166         0x2c, 0xfc, 0x11, 0xa2, 0x06, 0x09, 0x93, 0xd9, 0xe6, 0x54, 0x48, 0x55, 0x96, 0x62, 0xaa, 0x8b,
167         0x8f, 0x4c, 0xce, 0x7f, 0x55, 0x5f, 0xbd, 0xc1, 0xe3, 0x7d, 0xbc, 0x7c, 0x3b, 0xf4, 0x1f, 0x6f,
168         0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xdf, 0x2e, 0x09, 0xe2, 0x01, 0x00, 0x00,
169 }