+++ /dev/null
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// source: google/api/logging.proto
-
-package serviceconfig
-
-import proto "github.com/golang/protobuf/proto"
-import fmt "fmt"
-import math "math"
-import _ "google.golang.org/genproto/googleapis/api/annotations"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = proto.Marshal
-var _ = fmt.Errorf
-var _ = math.Inf
-
-// Logging configuration of the service.
-//
-// The following example shows how to configure logs to be sent to the
-// producer and consumer projects. In the example, the `activity_history`
-// log is sent to both the producer and consumer projects, whereas the
-// `purchase_history` log is only sent to the producer project.
-//
-// monitored_resources:
-// - type: library.googleapis.com/branch
-// labels:
-// - key: /city
-// description: The city where the library branch is located in.
-// - key: /name
-// description: The name of the branch.
-// logs:
-// - name: activity_history
-// labels:
-// - key: /customer_id
-// - name: purchase_history
-// logging:
-// producer_destinations:
-// - monitored_resource: library.googleapis.com/branch
-// logs:
-// - activity_history
-// - purchase_history
-// consumer_destinations:
-// - monitored_resource: library.googleapis.com/branch
-// logs:
-// - activity_history
-type Logging struct {
- // Logging configurations for sending logs to the producer project.
- // There can be multiple producer destinations, each one must have a
- // different monitored resource type. A log can be used in at most
- // one producer destination.
- ProducerDestinations []*Logging_LoggingDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations" json:"producer_destinations,omitempty"`
- // Logging configurations for sending logs to the consumer project.
- // There can be multiple consumer destinations, each one must have a
- // different monitored resource type. A log can be used in at most
- // one consumer destination.
- ConsumerDestinations []*Logging_LoggingDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations" json:"consumer_destinations,omitempty"`
-}
-
-func (m *Logging) Reset() { *m = Logging{} }
-func (m *Logging) String() string { return proto.CompactTextString(m) }
-func (*Logging) ProtoMessage() {}
-func (*Logging) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0} }
-
-func (m *Logging) GetProducerDestinations() []*Logging_LoggingDestination {
- if m != nil {
- return m.ProducerDestinations
- }
- return nil
-}
-
-func (m *Logging) GetConsumerDestinations() []*Logging_LoggingDestination {
- if m != nil {
- return m.ConsumerDestinations
- }
- return nil
-}
-
-// Configuration of a specific logging destination (the producer project
-// or the consumer project).
-type Logging_LoggingDestination struct {
- // The monitored resource type. The type must be defined in the
- // [Service.monitored_resources][google.api.Service.monitored_resources] section.
- MonitoredResource string `protobuf:"bytes,3,opt,name=monitored_resource,json=monitoredResource" json:"monitored_resource,omitempty"`
- // Names of the logs to be sent to this destination. Each name must
- // be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
- // not a domain scoped name, it will be automatically prefixed with
- // the service name followed by "/".
- Logs []string `protobuf:"bytes,1,rep,name=logs" json:"logs,omitempty"`
-}
-
-func (m *Logging_LoggingDestination) Reset() { *m = Logging_LoggingDestination{} }
-func (m *Logging_LoggingDestination) String() string { return proto.CompactTextString(m) }
-func (*Logging_LoggingDestination) ProtoMessage() {}
-func (*Logging_LoggingDestination) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0, 0} }
-
-func (m *Logging_LoggingDestination) GetMonitoredResource() string {
- if m != nil {
- return m.MonitoredResource
- }
- return ""
-}
-
-func (m *Logging_LoggingDestination) GetLogs() []string {
- if m != nil {
- return m.Logs
- }
- return nil
-}
-
-func init() {
- proto.RegisterType((*Logging)(nil), "google.api.Logging")
- proto.RegisterType((*Logging_LoggingDestination)(nil), "google.api.Logging.LoggingDestination")
-}
-
-func init() { proto.RegisterFile("google/api/logging.proto", fileDescriptor9) }
-
-var fileDescriptor9 = []byte{
- // 270 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x4f, 0x4b, 0xc4, 0x30,
- 0x10, 0xc5, 0x69, 0x77, 0x51, 0x36, 0x8a, 0x60, 0x50, 0x28, 0x8b, 0x87, 0xc5, 0x83, 0xec, 0xc5,
- 0x14, 0xf4, 0xe8, 0xc9, 0x45, 0x11, 0xc1, 0x43, 0xe9, 0x45, 0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