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.
 
 
 

251 lines
11 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/servicecontrol/v1/operation.proto
  3. package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  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. // Defines the importance of the data contained in the operation.
  19. type Operation_Importance int32
  20. const (
  21. // The API implementation may cache and aggregate the data.
  22. // The data may be lost when rare and unexpected system failures occur.
  23. Operation_LOW Operation_Importance = 0
  24. // The API implementation doesn't cache and aggregate the data.
  25. // If the method returns successfully, it's guaranteed that the data has
  26. // been persisted in durable storage.
  27. Operation_HIGH Operation_Importance = 1
  28. )
  29. var Operation_Importance_name = map[int32]string{
  30. 0: "LOW",
  31. 1: "HIGH",
  32. }
  33. var Operation_Importance_value = map[string]int32{
  34. "LOW": 0,
  35. "HIGH": 1,
  36. }
  37. func (x Operation_Importance) String() string {
  38. return proto.EnumName(Operation_Importance_name, int32(x))
  39. }
  40. func (Operation_Importance) EnumDescriptor() ([]byte, []int) {
  41. return fileDescriptor_operation_5be704dac89bb9b9, []int{0, 0}
  42. }
  43. // Represents information regarding an operation.
  44. type Operation struct {
  45. // Identity of the operation. This must be unique within the scope of the
  46. // service that generated the operation. If the service calls
  47. // Check() and Report() on the same operation, the two calls should carry
  48. // the same id.
  49. //
  50. // UUID version 4 is recommended, though not required.
  51. // In scenarios where an operation is computed from existing information
  52. // and an idempotent id is desirable for deduplication purpose, UUID version 5
  53. // is recommended. See RFC 4122 for details.
  54. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
  55. // Fully qualified name of the operation. Reserved for future use.
  56. OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
  57. // Identity of the consumer who is using the service.
  58. // This field should be filled in for the operations initiated by a
  59. // consumer, but not for service-initiated operations that are
  60. // not related to a specific consumer.
  61. //
  62. // This can be in one of the following formats:
  63. // project:<project_id>,
  64. // project_number:<project_number>,
  65. // api_key:<api_key>.
  66. ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
  67. // Required. Start time of the operation.
  68. StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  69. // End time of the operation.
  70. // Required when the operation is used in
  71. // [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
  72. // but optional when the operation is used in
  73. // [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
  74. EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  75. // Labels describing the operation. Only the following labels are allowed:
  76. //
  77. // - Labels describing monitored resources as defined in
  78. // the service configuration.
  79. // - Default labels of metric values. When specified, labels defined in the
  80. // metric value override these default.
  81. // - The following labels defined by Google Cloud Platform:
  82. // - `cloud.googleapis.com/location` describing the location where the
  83. // operation happened,
  84. // - `servicecontrol.googleapis.com/user_agent` describing the user agent
  85. // of the API request,
  86. // - `servicecontrol.googleapis.com/service_agent` describing the service
  87. // used to handle the API request (e.g. ESP),
  88. // - `servicecontrol.googleapis.com/platform` describing the platform
  89. // where the API is served (e.g. GAE, GCE, GKE).
  90. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  91. // Represents information about this operation. Each MetricValueSet
  92. // corresponds to a metric defined in the service configuration.
  93. // The data type used in the MetricValueSet must agree with
  94. // the data type specified in the metric definition.
  95. //
  96. // Within a single operation, it is not allowed to have more than one
  97. // MetricValue instances that have the same metric names and identical
  98. // label value combinations. If a request has such duplicated MetricValue
  99. // instances, the entire request is rejected with
  100. // an invalid argument error.
  101. MetricValueSets []*MetricValueSet `protobuf:"bytes,7,rep,name=metric_value_sets,json=metricValueSets,proto3" json:"metric_value_sets,omitempty"`
  102. // Represents information to be logged.
  103. LogEntries []*LogEntry `protobuf:"bytes,8,rep,name=log_entries,json=logEntries,proto3" json:"log_entries,omitempty"`
  104. // DO NOT USE. This is an experimental field.
  105. Importance Operation_Importance `protobuf:"varint,11,opt,name=importance,proto3,enum=google.api.servicecontrol.v1.Operation_Importance" json:"importance,omitempty"`
  106. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  107. XXX_unrecognized []byte `json:"-"`
  108. XXX_sizecache int32 `json:"-"`
  109. }
  110. func (m *Operation) Reset() { *m = Operation{} }
  111. func (m *Operation) String() string { return proto.CompactTextString(m) }
  112. func (*Operation) ProtoMessage() {}
  113. func (*Operation) Descriptor() ([]byte, []int) {
  114. return fileDescriptor_operation_5be704dac89bb9b9, []int{0}
  115. }
  116. func (m *Operation) XXX_Unmarshal(b []byte) error {
  117. return xxx_messageInfo_Operation.Unmarshal(m, b)
  118. }
  119. func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  120. return xxx_messageInfo_Operation.Marshal(b, m, deterministic)
  121. }
  122. func (dst *Operation) XXX_Merge(src proto.Message) {
  123. xxx_messageInfo_Operation.Merge(dst, src)
  124. }
  125. func (m *Operation) XXX_Size() int {
  126. return xxx_messageInfo_Operation.Size(m)
  127. }
  128. func (m *Operation) XXX_DiscardUnknown() {
  129. xxx_messageInfo_Operation.DiscardUnknown(m)
  130. }
  131. var xxx_messageInfo_Operation proto.InternalMessageInfo
  132. func (m *Operation) GetOperationId() string {
  133. if m != nil {
  134. return m.OperationId
  135. }
  136. return ""
  137. }
  138. func (m *Operation) GetOperationName() string {
  139. if m != nil {
  140. return m.OperationName
  141. }
  142. return ""
  143. }
  144. func (m *Operation) GetConsumerId() string {
  145. if m != nil {
  146. return m.ConsumerId
  147. }
  148. return ""
  149. }
  150. func (m *Operation) GetStartTime() *timestamp.Timestamp {
  151. if m != nil {
  152. return m.StartTime
  153. }
  154. return nil
  155. }
  156. func (m *Operation) GetEndTime() *timestamp.Timestamp {
  157. if m != nil {
  158. return m.EndTime
  159. }
  160. return nil
  161. }
  162. func (m *Operation) GetLabels() map[string]string {
  163. if m != nil {
  164. return m.Labels
  165. }
  166. return nil
  167. }
  168. func (m *Operation) GetMetricValueSets() []*MetricValueSet {
  169. if m != nil {
  170. return m.MetricValueSets
  171. }
  172. return nil
  173. }
  174. func (m *Operation) GetLogEntries() []*LogEntry {
  175. if m != nil {
  176. return m.LogEntries
  177. }
  178. return nil
  179. }
  180. func (m *Operation) GetImportance() Operation_Importance {
  181. if m != nil {
  182. return m.Importance
  183. }
  184. return Operation_LOW
  185. }
  186. func init() {
  187. proto.RegisterType((*Operation)(nil), "google.api.servicecontrol.v1.Operation")
  188. proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.Operation.LabelsEntry")
  189. proto.RegisterEnum("google.api.servicecontrol.v1.Operation_Importance", Operation_Importance_name, Operation_Importance_value)
  190. }
  191. func init() {
  192. proto.RegisterFile("google/api/servicecontrol/v1/operation.proto", fileDescriptor_operation_5be704dac89bb9b9)
  193. }
  194. var fileDescriptor_operation_5be704dac89bb9b9 = []byte{
  195. // 483 bytes of a gzipped FileDescriptorProto
  196. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6b, 0x13, 0x41,
  197. 0x14, 0xc7, 0x9d, 0xa6, 0xf9, 0xf5, 0x56, 0x63, 0x1c, 0x3c, 0x2c, 0xa1, 0x90, 0x58, 0x50, 0x72,
  198. 0x28, 0xb3, 0x34, 0x45, 0xb0, 0x7a, 0x2b, 0x48, 0x1b, 0x8d, 0xb6, 0xac, 0xa2, 0xe2, 0x25, 0x4c,
  199. 0x36, 0xcf, 0x65, 0x70, 0x77, 0x66, 0x99, 0x99, 0x04, 0x7a, 0xf6, 0xe2, 0x9f, 0xec, 0x51, 0x76,
  200. 0xf6, 0x47, 0x13, 0x90, 0xb5, 0xb7, 0x7d, 0x8f, 0xef, 0xe7, 0xbb, 0xdf, 0x79, 0x6f, 0x06, 0x4e,
  201. 0x62, 0xa5, 0xe2, 0x04, 0x03, 0x9e, 0x89, 0xc0, 0xa0, 0xde, 0x8a, 0x08, 0x23, 0x25, 0xad, 0x56,
  202. 0x49, 0xb0, 0x3d, 0x0d, 0x54, 0x86, 0x9a, 0x5b, 0xa1, 0x24, 0xcb, 0xb4, 0xb2, 0x8a, 0x1e, 0x15,
  203. 0x6a, 0xc6, 0x33, 0xc1, 0xf6, 0xd5, 0x6c, 0x7b, 0x3a, 0x3a, 0xda, 0xf1, 0xe2, 0x52, 0x2a, 0xeb,
  204. 0x50, 0x53, 0xb0, 0xa3, 0xe6, 0x3f, 0x25, 0x2a, 0x5e, 0xa2, 0xb4, 0xfa, 0xb6, 0x54, 0x07, 0x8d,
  205. 0xea, 0x14, 0xad, 0x16, 0xd1, 0x72, 0xcb, 0x93, 0x0d, 0x96, 0xc0, 0xb8, 0x04, 0x5c, 0xb5, 0xda,
  206. 0xfc, 0x08, 0xac, 0x48, 0xd1, 0x58, 0x9e, 0x66, 0x85, 0xe0, 0xf8, 0x77, 0x1b, 0xfa, 0xd7, 0xd5,
  207. 0x79, 0xe8, 0x33, 0x78, 0x58, 0x1f, 0x6e, 0x29, 0xd6, 0x3e, 0x99, 0x90, 0x69, 0x3f, 0xf4, 0xea,
  208. 0xde, 0x7c, 0x4d, 0x9f, 0xc3, 0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0xe8, 0x1c, 0xbc, 0x9d, 0x69, 0xd0, 0x21, 0xb4, 0x7e, 0xe2, 0x6d, 0x79, 0x4d, 0xf2,
  220. 0x4f, 0xfa, 0x14, 0xda, 0x6e, 0x20, 0xe5, 0xad, 0x28, 0x8a, 0xd7, 0x07, 0xaf, 0xc8, 0xf1, 0x18,
  221. 0xe0, 0xce, 0x94, 0x76, 0xa1, 0xb5, 0xb8, 0xfe, 0x3a, 0x7c, 0x40, 0x7b, 0x70, 0x78, 0x35, 0xbf,
  222. 0xbc, 0x1a, 0x92, 0x8b, 0x5f, 0x04, 0x26, 0x91, 0x4a, 0x1b, 0x13, 0x5e, 0x0c, 0xea, 0x88, 0x37,
  223. 0xf9, 0xaa, 0x6f, 0xc8, 0xf7, 0x77, 0xa5, 0x3e, 0x56, 0x09, 0x97, 0x31, 0x53, 0x3a, 0x0e, 0x62,
  224. 0x94, 0xee, 0x22, 0x94, 0xcf, 0x85, 0x67, 0xc2, 0xfc, 0xfb, 0xc9, 0xbc, 0xd9, 0xef, 0xfc, 0x21,
  225. 0x64, 0xd5, 0x71, 0xe4, 0xd9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x9c, 0xc2, 0x5d, 0x03,
  226. 0x04, 0x00, 0x00,
  227. }