OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / api / serviceconfig / logging.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/logging.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 // Logging configuration of the service.
17 //
18 // The following example shows how to configure logs to be sent to the
19 // producer and consumer projects. In the example, the `activity_history`
20 // log is sent to both the producer and consumer projects, whereas the
21 // `purchase_history` log is only sent to the producer project.
22 //
23 //     monitored_resources:
24 //     - type: library.googleapis.com/branch
25 //       labels:
26 //       - key: /city
27 //         description: The city where the library branch is located in.
28 //       - key: /name
29 //         description: The name of the branch.
30 //     logs:
31 //     - name: activity_history
32 //       labels:
33 //       - key: /customer_id
34 //     - name: purchase_history
35 //     logging:
36 //       producer_destinations:
37 //       - monitored_resource: library.googleapis.com/branch
38 //         logs:
39 //         - activity_history
40 //         - purchase_history
41 //       consumer_destinations:
42 //       - monitored_resource: library.googleapis.com/branch
43 //         logs:
44 //         - activity_history
45 type Logging struct {
46         // Logging configurations for sending logs to the producer project.
47         // There can be multiple producer destinations, each one must have a
48         // different monitored resource type. A log can be used in at most
49         // one producer destination.
50         ProducerDestinations []*Logging_LoggingDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations" json:"producer_destinations,omitempty"`
51         // Logging configurations for sending logs to the consumer project.
52         // There can be multiple consumer destinations, each one must have a
53         // different monitored resource type. A log can be used in at most
54         // one consumer destination.
55         ConsumerDestinations []*Logging_LoggingDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations" json:"consumer_destinations,omitempty"`
56 }
57
58 func (m *Logging) Reset()                    { *m = Logging{} }
59 func (m *Logging) String() string            { return proto.CompactTextString(m) }
60 func (*Logging) ProtoMessage()               {}
61 func (*Logging) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0} }
62
63 func (m *Logging) GetProducerDestinations() []*Logging_LoggingDestination {
64         if m != nil {
65                 return m.ProducerDestinations
66         }
67         return nil
68 }
69
70 func (m *Logging) GetConsumerDestinations() []*Logging_LoggingDestination {
71         if m != nil {
72                 return m.ConsumerDestinations
73         }
74         return nil
75 }
76
77 // Configuration of a specific logging destination (the producer project
78 // or the consumer project).
79 type Logging_LoggingDestination struct {
80         // The monitored resource type. The type must be defined in the
81         // [Service.monitored_resources][google.api.Service.monitored_resources] section.
82         MonitoredResource string `protobuf:"bytes,3,opt,name=monitored_resource,json=monitoredResource" json:"monitored_resource,omitempty"`
83         // Names of the logs to be sent to this destination. Each name must
84         // be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
85         // not a domain scoped name, it will be automatically prefixed with
86         // the service name followed by "/".
87         Logs []string `protobuf:"bytes,1,rep,name=logs" json:"logs,omitempty"`
88 }
89
90 func (m *Logging_LoggingDestination) Reset()                    { *m = Logging_LoggingDestination{} }
91 func (m *Logging_LoggingDestination) String() string            { return proto.CompactTextString(m) }
92 func (*Logging_LoggingDestination) ProtoMessage()               {}
93 func (*Logging_LoggingDestination) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0, 0} }
94
95 func (m *Logging_LoggingDestination) GetMonitoredResource() string {
96         if m != nil {
97                 return m.MonitoredResource
98         }
99         return ""
100 }
101
102 func (m *Logging_LoggingDestination) GetLogs() []string {
103         if m != nil {
104                 return m.Logs
105         }
106         return nil
107 }
108
109 func init() {
110         proto.RegisterType((*Logging)(nil), "google.api.Logging")
111         proto.RegisterType((*Logging_LoggingDestination)(nil), "google.api.Logging.LoggingDestination")
112 }
113
114 func init() { proto.RegisterFile("google/api/logging.proto", fileDescriptor9) }
115
116 var fileDescriptor9 = []byte{
117         // 270 bytes of a gzipped FileDescriptorProto
118         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x4f, 0x4b, 0xc4, 0x30,
119         0x10, 0xc5, 0x69, 0x77, 0x51, 0x36, 0x8a, 0x60, 0x50, 0x28, 0x8b, 0x87, 0xc5, 0x83, 0xec, 0xc5,
120         0x14, 0xf4, 0xe8, 0xc9, 0x45, 0x11, 0xc1, 0x43, 0xe9, 0x45, 0xd0, 0xc3, 0x12, 0xd3, 0x38, 0x04,
121         0xda, 0x99, 0x90, 0xa4, 0x7e, 0x1a, 0x4f, 0x7e, 0x52, 0xd9, 0xa6, 0x75, 0xab, 0x9e, 0xf6, 0x94,
122         0x3f, 0xef, 0xbd, 0x5f, 0x32, 0x8f, 0x65, 0x40, 0x04, 0xb5, 0xce, 0xa5, 0x35, 0x79, 0x4d, 0x00,
123         0x06, 0x41, 0x58, 0x47, 0x81, 0x38, 0x8b, 0x8a, 0x90, 0xd6, 0xcc, 0xcf, 0x46, 0x2e, 0x89, 0x48,
124         0x41, 0x06, 0x43, 0xe8, 0xa3, 0xf3, 0xfc, 0x33, 0x65, 0xfb, 0x4f, 0x31, 0xcb, 0x5f, 0xd9, 0xa9,
125         0x75, 0x54, 0xb5, 0x4a, 0xbb, 0x75, 0xa5, 0x7d, 0x30, 0x18, 0xad, 0x59, 0xb2, 0x98, 0x2c, 0x0f,
126         0xae, 0x2e, 0xc4, 0x96, 0x2a, 0xfa, 0xcc, 0xb0, 0xde, 0x6d, 0xed, 0xe5, 0xc9, 0x00, 0x19, 0x5d,
127         0xfa, 0x0d, 0x5c, 0x11, 0xfa, 0xb6, 0xf9, 0x0b, 0x4f, 0x77, 0x83, 0x0f, 0x90, 0x31, 0x7c, 0xfe,
128         0xcc, 0xf8, 0x7f, 0x2f, 0xbf, 0x64, 0xbc, 0x21, 0x34, 0x81, 0x9c, 0xae, 0xd6, 0x4e, 0x7b, 0x6a,
129         0x9d, 0xd2, 0xd9, 0x64, 0x91, 0x2c, 0x67, 0xe5, 0xf1, 0x8f, 0x52, 0xf6, 0x02, 0xe7, 0x6c, 0x5a,
130         0x13, 0xc4, 0x69, 0x67, 0x65, 0xb7, 0x5f, 0x21, 0x3b, 0x52, 0xd4, 0x8c, 0xfe, 0xb6, 0x3a, 0xec,
131         0x1f, 0x2a, 0x36, 0xf5, 0x15, 0xc9, 0xcb, 0x7d, 0xaf, 0x01, 0xd5, 0x12, 0x41, 0x90, 0x83, 0x1c,
132         0x34, 0x76, 0xe5, 0xe6, 0x51, 0x92, 0xd6, 0xf8, 0xae, 0x7d, 0xaf, 0xdd, 0x87, 0x51, 0x5a, 0x11,
133         0xbe, 0x1b, 0xb8, 0xf9, 0x75, 0xfa, 0x4a, 0xa7, 0x0f, 0xb7, 0xc5, 0xe3, 0xdb, 0x5e, 0x17, 0xbc,
134         0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x73, 0x4f, 0x86, 0x6e, 0xdb, 0x01, 0x00, 0x00,
135 }