OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / api / serviceconfig / consumer.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/consumer.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 // Supported data type of the property values
16 type Property_PropertyType int32
17
18 const (
19         // The type is unspecified, and will result in an error.
20         Property_UNSPECIFIED Property_PropertyType = 0
21         // The type is `int64`.
22         Property_INT64 Property_PropertyType = 1
23         // The type is `bool`.
24         Property_BOOL Property_PropertyType = 2
25         // The type is `string`.
26         Property_STRING Property_PropertyType = 3
27         // The type is 'double'.
28         Property_DOUBLE Property_PropertyType = 4
29 )
30
31 var Property_PropertyType_name = map[int32]string{
32         0: "UNSPECIFIED",
33         1: "INT64",
34         2: "BOOL",
35         3: "STRING",
36         4: "DOUBLE",
37 }
38 var Property_PropertyType_value = map[string]int32{
39         "UNSPECIFIED": 0,
40         "INT64":       1,
41         "BOOL":        2,
42         "STRING":      3,
43         "DOUBLE":      4,
44 }
45
46 func (x Property_PropertyType) String() string {
47         return proto.EnumName(Property_PropertyType_name, int32(x))
48 }
49 func (Property_PropertyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{1, 0} }
50
51 // A descriptor for defining project properties for a service. One service may
52 // have many consumer projects, and the service may want to behave differently
53 // depending on some properties on the project. For example, a project may be
54 // associated with a school, or a business, or a government agency, a business
55 // type property on the project may affect how a service responds to the client.
56 // This descriptor defines which properties are allowed to be set on a project.
57 //
58 // Example:
59 //
60 //    project_properties:
61 //      properties:
62 //      - name: NO_WATERMARK
63 //        type: BOOL
64 //        description: Allows usage of the API without watermarks.
65 //      - name: EXTENDED_TILE_CACHE_PERIOD
66 //        type: INT64
67 type ProjectProperties struct {
68         // List of per consumer project-specific properties.
69         Properties []*Property `protobuf:"bytes,1,rep,name=properties" json:"properties,omitempty"`
70 }
71
72 func (m *ProjectProperties) Reset()                    { *m = ProjectProperties{} }
73 func (m *ProjectProperties) String() string            { return proto.CompactTextString(m) }
74 func (*ProjectProperties) ProtoMessage()               {}
75 func (*ProjectProperties) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
76
77 func (m *ProjectProperties) GetProperties() []*Property {
78         if m != nil {
79                 return m.Properties
80         }
81         return nil
82 }
83
84 // Defines project properties.
85 //
86 // API services can define properties that can be assigned to consumer projects
87 // so that backends can perform response customization without having to make
88 // additional calls or maintain additional storage. For example, Maps API
89 // defines properties that controls map tile cache period, or whether to embed a
90 // watermark in a result.
91 //
92 // These values can be set via API producer console. Only API providers can
93 // define and set these properties.
94 type Property struct {
95         // The name of the property (a.k.a key).
96         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
97         // The type of this property.
98         Type Property_PropertyType `protobuf:"varint,2,opt,name=type,enum=google.api.Property_PropertyType" json:"type,omitempty"`
99         // The description of the property
100         Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
101 }
102
103 func (m *Property) Reset()                    { *m = Property{} }
104 func (m *Property) String() string            { return proto.CompactTextString(m) }
105 func (*Property) ProtoMessage()               {}
106 func (*Property) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
107
108 func (m *Property) GetName() string {
109         if m != nil {
110                 return m.Name
111         }
112         return ""
113 }
114
115 func (m *Property) GetType() Property_PropertyType {
116         if m != nil {
117                 return m.Type
118         }
119         return Property_UNSPECIFIED
120 }
121
122 func (m *Property) GetDescription() string {
123         if m != nil {
124                 return m.Description
125         }
126         return ""
127 }
128
129 func init() {
130         proto.RegisterType((*ProjectProperties)(nil), "google.api.ProjectProperties")
131         proto.RegisterType((*Property)(nil), "google.api.Property")
132         proto.RegisterEnum("google.api.Property_PropertyType", Property_PropertyType_name, Property_PropertyType_value)
133 }
134
135 func init() { proto.RegisterFile("google/api/consumer.proto", fileDescriptor3) }
136
137 var fileDescriptor3 = []byte{
138         // 299 bytes of a gzipped FileDescriptorProto
139         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x4f, 0xf2, 0x40,
140         0x10, 0xc6, 0xdf, 0x85, 0xbe, 0x04, 0x06, 0xc5, 0xba, 0xf1, 0x50, 0x6f, 0x95, 0x13, 0xa7, 0x36,
141         0x41, 0xf4, 0xe2, 0xad, 0x50, 0x4d, 0x13, 0x02, 0x4d, 0x81, 0x8b, 0xb7, 0x5a, 0xc7, 0x75, 0x0d,
142         0xec, 0x6c, 0xb6, 0xd5, 0x84, 0x0f, 0xe8, 0xf7, 0x32, 0x2c, 0x88, 0x35, 0xf1, 0xf6, 0xcc, 0x3e,
143         0x7f, 0xb2, 0xf9, 0xc1, 0xa5, 0x20, 0x12, 0x6b, 0x0c, 0x73, 0x2d, 0xc3, 0x82, 0x54, 0xf9, 0xbe,
144         0x41, 0x13, 0x68, 0x43, 0x15, 0x71, 0xd8, 0x5b, 0x41, 0xae, 0x65, 0x3f, 0x81, 0xf3, 0xd4, 0xd0,
145         0x1b, 0x16, 0x55, 0x6a, 0x48, 0xa3, 0xa9, 0x24, 0x96, 0x7c, 0x04, 0xa0, 0x8f, 0x97, 0xc7, 0xfc,
146         0xe6, 0xa0, 0x3b, 0xbc, 0x08, 0x7e, 0x5a, 0xc1, 0x21, 0xbb, 0xcd, 0x6a, 0xb9, 0xfe, 0x27, 0x83,
147         0xf6, 0xb7, 0xc1, 0x39, 0x38, 0x2a, 0xdf, 0xa0, 0xc7, 0x7c, 0x36, 0xe8, 0x64, 0x56, 0xf3, 0x1b,
148         0x70, 0xaa, 0xad, 0x46, 0xaf, 0xe1, 0xb3, 0x41, 0x6f, 0x78, 0xf5, 0xd7, 0xe0, 0x51, 0x2c, 0xb7,
149         0x1a, 0x33, 0x1b, 0xe7, 0x3e, 0x74, 0x9f, 0xb1, 0x2c, 0x8c, 0xd4, 0x95, 0x24, 0xe5, 0x35, 0xed,
150         0x62, 0xfd, 0xa9, 0x3f, 0x85, 0x93, 0x7a, 0x8f, 0x9f, 0x41, 0x77, 0x35, 0x5b, 0xa4, 0xf1, 0x38,
151         0xb9, 0x4f, 0xe2, 0x89, 0xfb, 0x8f, 0x77, 0xe0, 0x7f, 0x32, 0x5b, 0xde, 0x8e, 0x5c, 0xc6, 0xdb,
152         0xe0, 0x44, 0xf3, 0xf9, 0xd4, 0x6d, 0x70, 0x80, 0xd6, 0x62, 0x99, 0x25, 0xb3, 0x07, 0xb7, 0xb9,
153         0xd3, 0x93, 0xf9, 0x2a, 0x9a, 0xc6, 0xae, 0x13, 0xbd, 0x42, 0xaf, 0xa0, 0x4d, 0xed, 0x77, 0xd1,
154         0xe9, 0xf8, 0x00, 0x30, 0xdd, 0xf1, 0x4b, 0xd9, 0x63, 0x7c, 0x30, 0x05, 0xad, 0x73, 0x25, 0x02,
155         0x32, 0x22, 0x14, 0xa8, 0x2c, 0xdd, 0x70, 0x6f, 0xe5, 0x5a, 0x96, 0x96, 0x7d, 0x89, 0xe6, 0x43,
156         0x16, 0x58, 0x90, 0x7a, 0x91, 0xe2, 0xee, 0xd7, 0xf5, 0xd4, 0xb2, 0x8d, 0xeb, 0xaf, 0x00, 0x00,
157         0x00, 0xff, 0xff, 0xb7, 0xa4, 0x04, 0x2c, 0xac, 0x01, 0x00, 0x00,
158 }