1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/api/logging.proto 3 4package serviceconfig 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11) 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24// Logging configuration of the service. 25// 26// The following example shows how to configure logs to be sent to the 27// producer and consumer projects. In the example, the `activity_history` 28// log is sent to both the producer and consumer projects, whereas the 29// `purchase_history` log is only sent to the producer project. 30// 31// monitored_resources: 32// - type: library.googleapis.com/branch 33// labels: 34// - key: /city 35// description: The city where the library branch is located in. 36// - key: /name 37// description: The name of the branch. 38// logs: 39// - name: activity_history 40// labels: 41// - key: /customer_id 42// - name: purchase_history 43// logging: 44// producer_destinations: 45// - monitored_resource: library.googleapis.com/branch 46// logs: 47// - activity_history 48// - purchase_history 49// consumer_destinations: 50// - monitored_resource: library.googleapis.com/branch 51// logs: 52// - activity_history 53type Logging struct { 54 // Logging configurations for sending logs to the producer project. 55 // There can be multiple producer destinations, each one must have a 56 // different monitored resource type. A log can be used in at most 57 // one producer destination. 58 ProducerDestinations []*Logging_LoggingDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"` 59 // Logging configurations for sending logs to the consumer project. 60 // There can be multiple consumer destinations, each one must have a 61 // different monitored resource type. A log can be used in at most 62 // one consumer destination. 63 ConsumerDestinations []*Logging_LoggingDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"` 64 XXX_NoUnkeyedLiteral struct{} `json:"-"` 65 XXX_unrecognized []byte `json:"-"` 66 XXX_sizecache int32 `json:"-"` 67} 68 69func (m *Logging) Reset() { *m = Logging{} } 70func (m *Logging) String() string { return proto.CompactTextString(m) } 71func (*Logging) ProtoMessage() {} 72func (*Logging) Descriptor() ([]byte, []int) { 73 return fileDescriptor_9505b080db6dcefe, []int{0} 74} 75 76func (m *Logging) XXX_Unmarshal(b []byte) error { 77 return xxx_messageInfo_Logging.Unmarshal(m, b) 78} 79func (m *Logging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 80 return xxx_messageInfo_Logging.Marshal(b, m, deterministic) 81} 82func (m *Logging) XXX_Merge(src proto.Message) { 83 xxx_messageInfo_Logging.Merge(m, src) 84} 85func (m *Logging) XXX_Size() int { 86 return xxx_messageInfo_Logging.Size(m) 87} 88func (m *Logging) XXX_DiscardUnknown() { 89 xxx_messageInfo_Logging.DiscardUnknown(m) 90} 91 92var xxx_messageInfo_Logging proto.InternalMessageInfo 93 94func (m *Logging) GetProducerDestinations() []*Logging_LoggingDestination { 95 if m != nil { 96 return m.ProducerDestinations 97 } 98 return nil 99} 100 101func (m *Logging) GetConsumerDestinations() []*Logging_LoggingDestination { 102 if m != nil { 103 return m.ConsumerDestinations 104 } 105 return nil 106} 107 108// Configuration of a specific logging destination (the producer project 109// or the consumer project). 110type Logging_LoggingDestination struct { 111 // The monitored resource type. The type must be defined in the 112 // [Service.monitored_resources][google.api.Service.monitored_resources] section. 113 MonitoredResource string `protobuf:"bytes,3,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"` 114 // Names of the logs to be sent to this destination. Each name must 115 // be defined in the [Service.logs][google.api.Service.logs] section. If the log name is 116 // not a domain scoped name, it will be automatically prefixed with 117 // the service name followed by "/". 118 Logs []string `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` 119 XXX_NoUnkeyedLiteral struct{} `json:"-"` 120 XXX_unrecognized []byte `json:"-"` 121 XXX_sizecache int32 `json:"-"` 122} 123 124func (m *Logging_LoggingDestination) Reset() { *m = Logging_LoggingDestination{} } 125func (m *Logging_LoggingDestination) String() string { return proto.CompactTextString(m) } 126func (*Logging_LoggingDestination) ProtoMessage() {} 127func (*Logging_LoggingDestination) Descriptor() ([]byte, []int) { 128 return fileDescriptor_9505b080db6dcefe, []int{0, 0} 129} 130 131func (m *Logging_LoggingDestination) XXX_Unmarshal(b []byte) error { 132 return xxx_messageInfo_Logging_LoggingDestination.Unmarshal(m, b) 133} 134func (m *Logging_LoggingDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 135 return xxx_messageInfo_Logging_LoggingDestination.Marshal(b, m, deterministic) 136} 137func (m *Logging_LoggingDestination) XXX_Merge(src proto.Message) { 138 xxx_messageInfo_Logging_LoggingDestination.Merge(m, src) 139} 140func (m *Logging_LoggingDestination) XXX_Size() int { 141 return xxx_messageInfo_Logging_LoggingDestination.Size(m) 142} 143func (m *Logging_LoggingDestination) XXX_DiscardUnknown() { 144 xxx_messageInfo_Logging_LoggingDestination.DiscardUnknown(m) 145} 146 147var xxx_messageInfo_Logging_LoggingDestination proto.InternalMessageInfo 148 149func (m *Logging_LoggingDestination) GetMonitoredResource() string { 150 if m != nil { 151 return m.MonitoredResource 152 } 153 return "" 154} 155 156func (m *Logging_LoggingDestination) GetLogs() []string { 157 if m != nil { 158 return m.Logs 159 } 160 return nil 161} 162 163func init() { 164 proto.RegisterType((*Logging)(nil), "google.api.Logging") 165 proto.RegisterType((*Logging_LoggingDestination)(nil), "google.api.Logging.LoggingDestination") 166} 167 168func init() { proto.RegisterFile("google/api/logging.proto", fileDescriptor_9505b080db6dcefe) } 169 170var fileDescriptor_9505b080db6dcefe = []byte{ 171 // 260 bytes of a gzipped FileDescriptorProto 172 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x4d, 0x4b, 0xc4, 0x30, 173 0x10, 0x86, 0x69, 0x77, 0x51, 0x36, 0x8a, 0x60, 0x50, 0x28, 0x9e, 0x16, 0x0f, 0xb2, 0x17, 0x53, 174 0xd0, 0xa3, 0x27, 0x17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db, 0xe8, 0xb4, 0x43, 0xda, 0x61, 0x68, 0x7f, 0x21, 186 0x58, 0xff, 0x81, 0xc6, 0x1a, 0xa6, 0x77, 0x84, 0x9b, 0x5f, 0xab, 0xaf, 0x78, 0xfe, 0x70, 0x9b, 187 0x3d, 0xbe, 0xed, 0xb5, 0xc1, 0xeb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x84, 0x9b, 0x80, 188 0xbd, 0x01, 0x00, 0x00, 189} 190