| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/api/servicecontrol/v1/operation.proto |
| |
| package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| 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 |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| // Defines the importance of the data contained in the operation. |
| type Operation_Importance int32 |
| |
| const ( |
| // The API implementation may cache and aggregate the data. |
| // The data may be lost when rare and unexpected system failures occur. |
| Operation_LOW Operation_Importance = 0 |
| // The API implementation doesn't cache and aggregate the data. |
| // If the method returns successfully, it's guaranteed that the data has |
| // been persisted in durable storage. |
| Operation_HIGH Operation_Importance = 1 |
| ) |
| |
| var Operation_Importance_name = map[int32]string{ |
| 0: "LOW", |
| 1: "HIGH", |
| } |
| var Operation_Importance_value = map[string]int32{ |
| "LOW": 0, |
| "HIGH": 1, |
| } |
| |
| func (x Operation_Importance) String() string { |
| return proto.EnumName(Operation_Importance_name, int32(x)) |
| } |
| func (Operation_Importance) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_operation_b9b924901f6a3776, []int{0, 0} |
| } |
| |
| // Represents information regarding an operation. |
| type Operation struct { |
| // Identity of the operation. This must be unique within the scope of the |
| // service that generated the operation. If the service calls |
| // Check() and Report() on the same operation, the two calls should carry |
| // the same id. |
| // |
| // UUID version 4 is recommended, though not required. |
| // In scenarios where an operation is computed from existing information |
| // and an idempotent id is desirable for deduplication purpose, UUID version 5 |
| // is recommended. See RFC 4122 for details. |
| OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` |
| // Fully qualified name of the operation. Reserved for future use. |
| OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"` |
| // Identity of the consumer who is using the service. |
| // This field should be filled in for the operations initiated by a |
| // consumer, but not for service-initiated operations that are |
| // not related to a specific consumer. |
| // |
| // This can be in one of the following formats: |
| // project:<project_id>, |
| // project_number:<project_number>, |
| // api_key:<api_key>. |
| ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"` |
| // Required. Start time of the operation. |
| StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` |
| // End time of the operation. |
| // Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], |
| // but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check]. |
| EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` |
| // Labels describing the operation. Only the following labels are allowed: |
| // |
| // - Labels describing monitored resources as defined in |
| // the service configuration. |
| // - Default labels of metric values. When specified, labels defined in the |
| // metric value override these default. |
| // - The following labels defined by Google Cloud Platform: |
| // - `cloud.googleapis.com/location` describing the location where the |
| // operation happened, |
| // - `servicecontrol.googleapis.com/user_agent` describing the user agent |
| // of the API request, |
| // - `servicecontrol.googleapis.com/service_agent` describing the service |
| // used to handle the API request (e.g. ESP), |
| // - `servicecontrol.googleapis.com/platform` describing the platform |
| // where the API is served (e.g. GAE, GCE, GKE). |
| 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"` |
| // Represents information about this operation. Each MetricValueSet |
| // corresponds to a metric defined in the service configuration. |
| // The data type used in the MetricValueSet must agree with |
| // the data type specified in the metric definition. |
| // |
| // Within a single operation, it is not allowed to have more than one |
| // MetricValue instances that have the same metric names and identical |
| // label value combinations. If a request has such duplicated MetricValue |
| // instances, the entire request is rejected with |
| // an invalid argument error. |
| MetricValueSets []*MetricValueSet `protobuf:"bytes,7,rep,name=metric_value_sets,json=metricValueSets,proto3" json:"metric_value_sets,omitempty"` |
| // Represents information to be logged. |
| LogEntries []*LogEntry `protobuf:"bytes,8,rep,name=log_entries,json=logEntries,proto3" json:"log_entries,omitempty"` |
| // DO NOT USE. This is an experimental field. |
| Importance Operation_Importance `protobuf:"varint,11,opt,name=importance,proto3,enum=google.api.servicecontrol.v1.Operation_Importance" json:"importance,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Operation) Reset() { *m = Operation{} } |
| func (m *Operation) String() string { return proto.CompactTextString(m) } |
| func (*Operation) ProtoMessage() {} |
| func (*Operation) Descriptor() ([]byte, []int) { |
| return fileDescriptor_operation_b9b924901f6a3776, []int{0} |
| } |
| func (m *Operation) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Operation.Unmarshal(m, b) |
| } |
| func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Operation.Marshal(b, m, deterministic) |
| } |
| func (dst *Operation) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Operation.Merge(dst, src) |
| } |
| func (m *Operation) XXX_Size() int { |
| return xxx_messageInfo_Operation.Size(m) |
| } |
| func (m *Operation) XXX_DiscardUnknown() { |
| xxx_messageInfo_Operation.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Operation proto.InternalMessageInfo |
| |
| func (m *Operation) GetOperationId() string { |
| if m != nil { |
| return m.OperationId |
| } |
| return "" |
| } |
| |
| func (m *Operation) GetOperationName() string { |
| if m != nil { |
| return m.OperationName |
| } |
| return "" |
| } |
| |
| func (m *Operation) GetConsumerId() string { |
| if m != nil { |
| return m.ConsumerId |
| } |
| return "" |
| } |
| |
| func (m *Operation) GetStartTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.StartTime |
| } |
| return nil |
| } |
| |
| func (m *Operation) GetEndTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.EndTime |
| } |
| return nil |
| } |
| |
| func (m *Operation) GetLabels() map[string]string { |
| if m != nil { |
| return m.Labels |
| } |
| return nil |
| } |
| |
| func (m *Operation) GetMetricValueSets() []*MetricValueSet { |
| if m != nil { |
| return m.MetricValueSets |
| } |
| return nil |
| } |
| |
| func (m *Operation) GetLogEntries() []*LogEntry { |
| if m != nil { |
| return m.LogEntries |
| } |
| return nil |
| } |
| |
| func (m *Operation) GetImportance() Operation_Importance { |
| if m != nil { |
| return m.Importance |
| } |
| return Operation_LOW |
| } |
| |
| func init() { |
| proto.RegisterType((*Operation)(nil), "google.api.servicecontrol.v1.Operation") |
| proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.Operation.LabelsEntry") |
| proto.RegisterEnum("google.api.servicecontrol.v1.Operation_Importance", Operation_Importance_name, Operation_Importance_value) |
| } |
| |
| func init() { |
| proto.RegisterFile("google/api/servicecontrol/v1/operation.proto", fileDescriptor_operation_b9b924901f6a3776) |
| } |
| |
| var fileDescriptor_operation_b9b924901f6a3776 = []byte{ |
| // 483 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6b, 0x13, 0x41, |
| 0x14, 0xc7, 0x9d, 0xa6, 0xf9, 0xf5, 0x56, 0x63, 0x1c, 0x3c, 0x2c, 0xa1, 0x90, 0x58, 0x50, 0x72, |
| 0x28, 0xb3, 0x34, 0x45, 0xb0, 0x7a, 0x2b, 0x48, 0x1b, 0x8d, 0xb6, 0xac, 0xa2, 0xe2, 0x25, 0x4c, |
| 0x36, 0xcf, 0x65, 0x70, 0x77, 0x66, 0x99,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