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