You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

167 lines
7.2 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/billing.proto
  3. package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import _ "google.golang.org/genproto/googleapis/api/metric"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Billing related configuration of the service.
  19. //
  20. // The following example shows how to configure monitored resources and metrics
  21. // for billing:
  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. // metrics:
  31. // - name: library.googleapis.com/book/borrowed_count
  32. // metric_kind: DELTA
  33. // value_type: INT64
  34. // billing:
  35. // consumer_destinations:
  36. // - monitored_resource: library.googleapis.com/branch
  37. // metrics:
  38. // - library.googleapis.com/book/borrowed_count
  39. type Billing struct {
  40. // Billing configurations for sending metrics to the consumer project.
  41. // There can be multiple consumer destinations per service, each one must have
  42. // a different monitored resource type. A metric can be used in at most
  43. // one consumer destination.
  44. ConsumerDestinations []*Billing_BillingDestination `protobuf:"bytes,8,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
  45. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  46. XXX_unrecognized []byte `json:"-"`
  47. XXX_sizecache int32 `json:"-"`
  48. }
  49. func (m *Billing) Reset() { *m = Billing{} }
  50. func (m *Billing) String() string { return proto.CompactTextString(m) }
  51. func (*Billing) ProtoMessage() {}
  52. func (*Billing) Descriptor() ([]byte, []int) {
  53. return fileDescriptor_billing_6cb9ad7d84588d76, []int{0}
  54. }
  55. func (m *Billing) XXX_Unmarshal(b []byte) error {
  56. return xxx_messageInfo_Billing.Unmarshal(m, b)
  57. }
  58. func (m *Billing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  59. return xxx_messageInfo_Billing.Marshal(b, m, deterministic)
  60. }
  61. func (dst *Billing) XXX_Merge(src proto.Message) {
  62. xxx_messageInfo_Billing.Merge(dst, src)
  63. }
  64. func (m *Billing) XXX_Size() int {
  65. return xxx_messageInfo_Billing.Size(m)
  66. }
  67. func (m *Billing) XXX_DiscardUnknown() {
  68. xxx_messageInfo_Billing.DiscardUnknown(m)
  69. }
  70. var xxx_messageInfo_Billing proto.InternalMessageInfo
  71. func (m *Billing) GetConsumerDestinations() []*Billing_BillingDestination {
  72. if m != nil {
  73. return m.ConsumerDestinations
  74. }
  75. return nil
  76. }
  77. // Configuration of a specific billing destination (Currently only support
  78. // bill against consumer project).
  79. type Billing_BillingDestination struct {
  80. // The monitored resource type. The type must be defined in
  81. // [Service.monitored_resources][google.api.Service.monitored_resources]
  82. // section.
  83. MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
  84. // Names of the metrics to report to this billing destination.
  85. // Each name must be defined in
  86. // [Service.metrics][google.api.Service.metrics] section.
  87. Metrics []string `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
  88. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  89. XXX_unrecognized []byte `json:"-"`
  90. XXX_sizecache int32 `json:"-"`
  91. }
  92. func (m *Billing_BillingDestination) Reset() { *m = Billing_BillingDestination{} }
  93. func (m *Billing_BillingDestination) String() string { return proto.CompactTextString(m) }
  94. func (*Billing_BillingDestination) ProtoMessage() {}
  95. func (*Billing_BillingDestination) Descriptor() ([]byte, []int) {
  96. return fileDescriptor_billing_6cb9ad7d84588d76, []int{0, 0}
  97. }
  98. func (m *Billing_BillingDestination) XXX_Unmarshal(b []byte) error {
  99. return xxx_messageInfo_Billing_BillingDestination.Unmarshal(m, b)
  100. }
  101. func (m *Billing_BillingDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  102. return xxx_messageInfo_Billing_BillingDestination.Marshal(b, m, deterministic)
  103. }
  104. func (dst *Billing_BillingDestination) XXX_Merge(src proto.Message) {
  105. xxx_messageInfo_Billing_BillingDestination.Merge(dst, src)
  106. }
  107. func (m *Billing_BillingDestination) XXX_Size() int {
  108. return xxx_messageInfo_Billing_BillingDestination.Size(m)
  109. }
  110. func (m *Billing_BillingDestination) XXX_DiscardUnknown() {
  111. xxx_messageInfo_Billing_BillingDestination.DiscardUnknown(m)
  112. }
  113. var xxx_messageInfo_Billing_BillingDestination proto.InternalMessageInfo
  114. func (m *Billing_BillingDestination) GetMonitoredResource() string {
  115. if m != nil {
  116. return m.MonitoredResource
  117. }
  118. return ""
  119. }
  120. func (m *Billing_BillingDestination) GetMetrics() []string {
  121. if m != nil {
  122. return m.Metrics
  123. }
  124. return nil
  125. }
  126. func init() {
  127. proto.RegisterType((*Billing)(nil), "google.api.Billing")
  128. proto.RegisterType((*Billing_BillingDestination)(nil), "google.api.Billing.BillingDestination")
  129. }
  130. func init() { proto.RegisterFile("google/api/billing.proto", fileDescriptor_billing_6cb9ad7d84588d76) }
  131. var fileDescriptor_billing_6cb9ad7d84588d76 = []byte{
  132. // 265 bytes of a gzipped FileDescriptorProto
  133. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xc1, 0x4a, 0xc4, 0x30,
  134. 0x10, 0x86, 0xe9, 0xae, 0xb8, 0x6e, 0x14, 0xc1, 0xa0, 0x58, 0x8a, 0x87, 0xe2, 0x41, 0x7a, 0xb1,
  135. 0x05, 0x3d, 0x7a, 0xb2, 0x28, 0xe2, 0xad, 0xf4, 0xa8, 0xc8, 0x92, 0xcd, 0x8e, 0x61, 0xa0, 0x9d,
  136. 0x29, 0x49, 0xd6, 0x07, 0xf2, 0x5d, 0x7c, 0x2f, 0xb1, 0x69, 0xdd, 0x8a, 0xa7, 0x30, 0xf9, 0xfe,
  137. 0xf9, 0x67, 0xe6, 0x17, 0xb1, 0x61, 0x36, 0x0d, 0x14, 0xaa, 0xc3, 0x62, 0x8d, 0x4d, 0x83, 0x64,
  138. 0xf2, 0xce, 0xb2, 0x67, 0x29, 0x02, 0xc9, 0x55, 0x87, 0xc9, 0xc5, 0x44, 0xa5, 0x88, 0xd8, 0x2b,
  139. 0x8f, 0x4c, 0x2e, 0x28, 0x93, 0xf3, 0x09, 0x6d, 0xc1, 0x5b, 0xd4, 0x01, 0x5c, 0x7e, 0x45, 0x62,
  140. 0x51, 0x06, 0x53, 0xf9, 0x2a, 0xce, 0x34, 0x93, 0xdb, 0xb6, 0x60, 0x57, 0x1b, 0x70, 0x1e, 0x29,
  141. 0x78, 0xc4, 0x07, 0xe9, 0x3c, 0x3b, 0xbc, 0xb9, 0xca, 0x77, 0xe3, 0xf2, 0xa1, 0x67, 0x7c, 0x1f,
  142. 0x76, 0xf2, 0xfa, 0x74, 0x34, 0x99, 0x7c, 0xba, 0xe4, 0x4d, 0xc8, 0xff, 0x5a, 0x79, 0x2d, 0x64,
  143. 0xcb, 0x84, 0x9e, 0x2d, 0x6c, 0x56, 0x16, 0x1c, 0x6f, 0xad, 0x86, 0x38, 0x4a, 0xa3, 0x6c, 0x59,
  144. 0x9f, 0xfc, 0x92, 0x7a, 0x00, 0x32, 0x16, 0x8b, 0xb0, 0xbd, 0x8b, 0x67, 0xe9, 0x3c, 0x5b, 0xd6,
  145. 0x63, 0x59, 0x92, 0x38, 0xd6, 0xdc, 0x4e, 0x36, 0x2c, 0x8f, 0x86, 0x71, 0xd5, 0xcf, 0x9d, 0x55,
  146. 0xf4, 0xf2, 0x38, 0x30, 0xc3, 0x8d, 0x22, 0x93, 0xb3, 0x35, 0x85, 0x01, 0xea, 0x53, 0x28, 0x02,
  147. 0x52, 0x1d, 0xba, 0x3e, 0x21, 0x07, 0xf6, 0x03, 0x35, 0x68, 0xa6, 0x77, 0x34, 0x77, 0x7f, 0xaa,
  148. 0xcf, 0xd9, 0xde, 0xd3, 0x7d, 0xf5, 0xbc, 0xde, 0xef, 0x1b, 0x6f, 0xbf, 0x03, 0x00, 0x00, 0xff,
  149. 0xff, 0xca, 0x8b, 0xb4, 0x63, 0x9d, 0x01, 0x00, 0x00,
  150. }