1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/servicecontrol/v1/operation.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10 import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
12 // Reference imports to suppress errors if they are not otherwise used.
17 // Defines the importance of the data contained in the operation.
18 type Operation_Importance int32
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
30 var Operation_Importance_name = map[int32]string{
34 var Operation_Importance_value = map[string]int32{
39 func (x Operation_Importance) String() string {
40 return proto.EnumName(Operation_Importance_name, int32(x))
42 func (Operation_Importance) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 0} }
44 // Represents information regarding an operation.
45 type Operation struct {
46 // Identity of the operation. This must be unique within the scope of the
47 // service that generated the operation. If the service calls
48 // Check() and Report() on the same operation, the two calls should carry
51 // UUID version 4 is recommended, though not required.
52 // In scenarios where an operation is computed from existing information
53 // and an idempotent id is desirable for deduplication purpose, UUID version 5
54 // is recommended. See RFC 4122 for details.
55 OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId" json:"operation_id,omitempty"`
56 // Fully qualified name of the operation. Reserved for future use.
57 OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName" json:"operation_name,omitempty"`
58 // Identity of the consumer who is using the service.
59 // This field should be filled in for the operations initiated by a
60 // consumer, but not for service-initiated operations that are
61 // not related to a specific consumer.
63 // This can be in one of the following formats:
64 // project:<project_id>,
65 // project_number:<project_number>,
67 ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId" json:"consumer_id,omitempty"`
68 // Required. Start time of the operation.
69 StartTime *google_protobuf3.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
70 // End time of the operation.
71 // Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
72 // but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
73 EndTime *google_protobuf3.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
74 // Labels describing the operation. Only the following labels are allowed:
76 // - Labels describing monitored resources as defined in
77 // the service configuration.
78 // - Default labels of metric values. When specified, labels defined in the
79 // metric value override these default.
80 // - The following labels defined by Google Cloud Platform:
81 // - `cloud.googleapis.com/location` describing the location where the
82 // operation happened,
83 // - `servicecontrol.googleapis.com/user_agent` describing the user agent
84 // of the API request,
85 // - `servicecontrol.googleapis.com/service_agent` describing the service
86 // used to handle the API request (e.g. ESP),
87 // - `servicecontrol.googleapis.com/platform` describing the platform
88 // where the API is served (e.g. GAE, GCE, GKE).
89 Labels map[string]string `protobuf:"bytes,6,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
90 // Represents information about this operation. Each MetricValueSet
91 // corresponds to a metric defined in the service configuration.
92 // The data type used in the MetricValueSet must agree with
93 // the data type specified in the metric definition.
95 // Within a single operation, it is not allowed to have more than one
96 // MetricValue instances that have the same metric names and identical
97 // label value combinations. If a request has such duplicated MetricValue
98 // instances, the entire request is rejected with
99 // an invalid argument error.
100 MetricValueSets []*MetricValueSet `protobuf:"bytes,7,rep,name=metric_value_sets,json=metricValueSets" json:"metric_value_sets,omitempty"`
101 // Represents information to be logged.
102 LogEntries []*LogEntry `protobuf:"bytes,8,rep,name=log_entries,json=logEntries" json:"log_entries,omitempty"`
103 // DO NOT USE. This is an experimental field.
104 Importance Operation_Importance `protobuf:"varint,11,opt,name=importance,enum=google.api.servicecontrol.v1.Operation_Importance" json:"importance,omitempty"`
107 func (m *Operation) Reset() { *m = Operation{} }
108 func (m *Operation) String() string { return proto.CompactTextString(m) }
109 func (*Operation) ProtoMessage() {}
110 func (*Operation) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
112 func (m *Operation) GetOperationId() string {
119 func (m *Operation) GetOperationName() string {
121 return m.OperationName
126 func (m *Operation) GetConsumerId() string {
133 func (m *Operation) GetStartTime() *google_protobuf3.Timestamp {
140 func (m *Operation) GetEndTime() *google_protobuf3.Timestamp {
147 func (m *Operation) GetLabels() map[string]string {
154 func (m *Operation) GetMetricValueSets() []*MetricValueSet {
156 return m.MetricValueSets
161 func (m *Operation) GetLogEntries() []*LogEntry {
168 func (m *Operation) GetImportance() Operation_Importance {
176 proto.RegisterType((*Operation)(nil), "google.api.servicecontrol.v1.Operation")
177 proto.RegisterEnum("google.api.servicecontrol.v1.Operation_Importance", Operation_Importance_name, Operation_Importance_value)
180 func init() { proto.RegisterFile("google/api/servicecontrol/v1/operation.proto", fileDescriptor4) }
182 var fileDescriptor4 = []byte{
183 // 483 bytes of a gzipped FileDescriptorProto
184 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6b, 0x13, 0x41,
185 0x14, 0xc7, 0x9d, 0xa6, 0xf9, 0xf5, 0x56, 0x63, 0x1c, 0x3c, 0x2c, 0xa1, 0x90, 0x58, 0x50, 0x72,
186 0x28, 0xb3, 0x34, 0x45, 0xb0, 0x7a, 0x2b, 0x48, 0x1b, 0x8d, 0xb6, 0xac, 0xa2, 0xe2, 0x25, 0x4c,
187 0x36, 0xcf, 0x65, 0x70, 0x77, 0x66, 0x99, 0x99, 0x04, 0x7a, 0xf6, 0xe2, 0x9f, 0xec, 0x51, 0x76,
188 0xf6, 0x47, 0x13, 0x90, 0xb5, 0xb7, 0x7d, 0x8f, 0xef, 0xe7, 0xbb, 0xdf, 0x79, 0x6f, 0x06, 0x4e,
189 0x62, 0xa5, 0xe2, 0x04, 0x03, 0x9e, 0x89, 0xc0, 0xa0, 0xde, 0x8a, 0x08, 0x23, 0x25, 0xad, 0x56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