From b0ff5173a1973871c4b6b8171925d6505929f2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krasnoborski?= Date: Fri, 4 Nov 2022 14:08:47 +0100 Subject: [PATCH 1/5] Speed up ser/deserialization of CheckResponse in envoy authz (#881) Now CheckResponse is binary-encoded in protobuf wire format and stored in DynamicMetadata as base64 string. This speeds up serialization, but also deserialization (in metrics processor). No changes in envoyfilter defition were needed as envoy's access logger passes StringValue from dynamic meatadata as-is (previously, it was JSON-encoding a StructValue into string) Note: metrics processor still accepts JSON-encoding, so other SDKs should continue working without changes. --- pkg/otelcollector/helpers.go | 26 +++++++++++-- pkg/policies/flowcontrol/api/envoy/authz.go | 39 +++++++------------ .../fluxninja/aperture/sdk/TrafficFlow.java | 19 ++++++--- 3 files changed, 49 insertions(+), 35 deletions(-) diff --git a/pkg/otelcollector/helpers.go b/pkg/otelcollector/helpers.go index e0faa93595..4bcfb74352 100644 --- a/pkg/otelcollector/helpers.go +++ b/pkg/otelcollector/helpers.go @@ -1,13 +1,16 @@ package otelcollector import ( + "encoding/base64" "encoding/json" "strconv" + "strings" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/plog" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/pdata/ptrace" + "google.golang.org/protobuf/proto" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/utils" @@ -129,11 +132,16 @@ func IterateDataPoints(metric pmetric.Metric, fn func(pcommon.Map) error) error } // GetStruct is a helper for decoding complex structs encoded into an attribute -// as a json-encoded string. +// as string. +// +// The attribute can be encoded as either: +// * JSON. +// * base64'd protobuf wire format, if `output` is `proto.Message`. +// // Takes: // attributes to read from // label key to read in attributes -// output interface that is filled via json unmarshal +// output interface that is filled via json/proto unmarshal // treatAsMissing is a list of values that are treated as attribute missing from source // // Returns true is label was decoded successfully, false otherwise. @@ -157,9 +165,21 @@ func GetStruct(attributes pcommon.Map, label string, output interface{}, treatAs } } + if msg, isProto := output.(proto.Message); isProto && !strings.HasPrefix(stringVal, "{") { + wireMsg, err := base64.StdEncoding.DecodeString(stringVal) + if err != nil { + log.Sample(zerolog.Sometimes).Error().Err(err).Str("label", label).Msg("Failed to unmarshal as base64") + } + err = proto.Unmarshal(wireMsg, msg) + if err != nil { + log.Sample(zerolog.Sometimes).Error().Err(err).Str("label", label).Msg("Failed to unmarshal as protobuf") + } + return true + } + err := json.Unmarshal([]byte(stringVal), output) if err != nil { - log.Sample(zerolog.Sometimes).Error().Err(err).Str("label", label).Msg("Failed to unmarshal") + log.Sample(zerolog.Sometimes).Error().Err(err).Str("label", label).Msg("Failed to unmarshal as json") } return true diff --git a/pkg/policies/flowcontrol/api/envoy/authz.go b/pkg/policies/flowcontrol/api/envoy/authz.go index 3f0a3d1886..ffea168b7b 100644 --- a/pkg/policies/flowcontrol/api/envoy/authz.go +++ b/pkg/policies/flowcontrol/api/envoy/authz.go @@ -2,6 +2,7 @@ package envoy import ( "context" + "encoding/base64" "errors" "fmt" "regexp" @@ -18,8 +19,7 @@ import ( "google.golang.org/genproto/googleapis/rpc/status" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" @@ -87,11 +87,20 @@ func (h *Handler) Check(ctx context.Context, req *ext_authz.CheckRequest) (*ext_ start := time.Now() createExtAuthzResponse := func(checkResponse *flowcontrolv1.CheckResponse) *ext_authz.CheckResponse { - marshalledCheckResponse, err := protoMessageAsPbValue(checkResponse) + // We don't care about the particular format we send the CheckResponse, + // Envoy can treat is as black-box. The only thing we care about is for + // it to be deserializable by logs processing pipeline. + // Using protobuf wire format as it's faster to serialize/deserialize + // than using protojson or roundtripping through structpb.Struct. + // Additional base64 encoding step is used, as there's no way to push + // binary data through dynamic metadata and envoy's access log + // formatter. Overhead of this base64 encoding is small though. + marshalledCheckResponse, err := proto.Marshal(checkResponse) if err != nil { log.Sample(zerolog.Sometimes).Error().Err(err).Msg("Failed to marshal check response") return nil } + checkResponseBase64 := base64.StdEncoding.EncodeToString(marshalledCheckResponse) // record the end time of the request end := time.Now() @@ -101,7 +110,7 @@ func (h *Handler) Check(ctx context.Context, req *ext_authz.CheckRequest) (*ext_ return &ext_authz.CheckResponse{ DynamicMetadata: &structpb.Struct{ Fields: map[string]*structpb.Value{ - otelcollector.ApertureCheckResponseLabel: marshalledCheckResponse, + otelcollector.ApertureCheckResponseLabel: structpb.NewStringValue(checkResponseBase64), }, }, } @@ -259,28 +268,6 @@ func (h *Handler) Check(ctx context.Context, req *ext_authz.CheckRequest) (*ext_ return resp, nil } -// Functions below transform our classes/proto to structpb.Value required to be sent -// via DynamicMetadata -// "The External Authorization filter supports emitting dynamic metadata as an opaque google.protobuf.Struct." -// from envoy documentation - -func protoMessageAsPbValue(message protoreflect.ProtoMessage) (*structpb.Value, error) { - mBytes, err := protojson.Marshal(message) - if err != nil { - log.Error().Err(err).Msg("Failed to marshal proto message into JSON") - return nil, err - - } - mStruct := new(structpb.Struct) - err = protojson.Unmarshal(mBytes, mStruct) - if err != nil { - log.Error().Err(err).Msg("Failed to unmarshal JSON bytes into structpb.Struct") - return nil, err - } - - return structpb.NewStructValue(mStruct), nil -} - // merges two flow labels maps. // // If key exists in both, the value from second one will be taken. diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/TrafficFlow.java b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/TrafficFlow.java index 5bc0d2198e..2f078cadc3 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/TrafficFlow.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/TrafficFlow.java @@ -36,19 +36,26 @@ public void end(FlowStatus statusCode) throws ApertureSDKException { } this.ended = true; - String checkResponseJSONBytes = ""; + String serializedFlowcontrolCheckResponse = ""; if (this.checkResponse.hasDynamicMetadata() && this.checkResponse.getDynamicMetadata().getFieldsMap().containsKey("aperture.check_response")) { Value featureResponse = this.checkResponse.getDynamicMetadata().getFieldsMap().get("aperture.check_response"); - try { - checkResponseJSONBytes = JsonFormat.printer().print(featureResponse); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new ApertureSDKException(e); + if (featureResponse.hasStringValue()) { + // If checkResponse comes pre-serialized from envoy, pass it + // through as-is. + serializedFlowcontrolCheckResponse = featureResponse.getStringValue(); + } else { + // Otherwise, serialize it. + try { + serializedFlowcontrolCheckResponse = JsonFormat.printer().print(featureResponse); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new ApertureSDKException(e); + } } } this.span.setAttribute(FEATURE_STATUS_LABEL, statusCode.name()) - .setAttribute(CHECK_RESPONSE_LABEL, checkResponseJSONBytes) + .setAttribute(CHECK_RESPONSE_LABEL, serializedFlowcontrolCheckResponse) .setAttribute(FLOW_STOP_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()); this.span.end(); From e6a7f5236ffda136a4031a2f1d557b546be6a44a Mon Sep 17 00:00:00 2001 From: Hasit Mistry Date: Fri, 4 Nov 2022 12:58:30 -0700 Subject: [PATCH 2/5] Document Prometheus metrics and OLAP Flow events (#878) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description of change Closes: #720 ##### Checklist - [ ] Tested in playground or other setup - [x] Documentation is changed or added - [ ] Tests and/or benchmarks are included - [ ] Breaking changes - - - This change is [Reviewable](https://reviewable.io/reviews/fluxninja/aperture/878) --- README.md | 8 +- .../references/flow-events/_category_.yaml | 8 + .../references/flow-events/flow-events.md | 80 +++++++++ .../references/metrics/_category_.yaml | 8 + docs/content/references/metrics/agent.md | 160 ++++++++++++++++++ docs/content/references/metrics/common.md | 49 ++++++ docs/content/references/metrics/controller.md | 24 +++ pkg/otelcollector/consts.go | 4 +- .../metricsprocessor/processor.go | 2 +- .../rollupprocessor/processor.go | 2 +- 10 files changed, 337 insertions(+), 8 deletions(-) create mode 100644 docs/content/references/flow-events/_category_.yaml create mode 100644 docs/content/references/flow-events/flow-events.md create mode 100644 docs/content/references/metrics/_category_.yaml create mode 100644 docs/content/references/metrics/agent.md create mode 100644 docs/content/references/metrics/common.md create mode 100644 docs/content/references/metrics/controller.md diff --git a/README.md b/README.md index d7a79ecbe6..00b2309676 100644 --- a/README.md +++ b/README.md @@ -69,10 +69,6 @@ analyzing, and actuating, facilitated by agents and a controller. [![Build Indestructible Applications with Aperture Flow Control](https://img.youtube.com/vi/sEl4SMo3KNo/0.jpg)](https://www.youtube.com/watch?v=sEl4SMo3KNo) -## ▶️ Demo Video - -[![Demo Video](https://img.youtube.com/vi/m070bAvrDHM/0.jpg)](https://www.youtube.com/watch?v=m070bAvrDHM) - ## 🏗️ Architecture ![Aperture Architecture Overview](./docs/content/assets/gen/introduction/architecture_simple.mmd.svg) @@ -96,6 +92,10 @@ To install Aperture system, please follow the To learn how to write Aperture policies, please read the [Tutorials](https://docs.fluxninja.com/docs/category/tutorials). +### 🎥 Demo Video + +[![How Concurrency Limits Help Protect Against Cascading Failures](https://img.youtube.com/vi/m070bAvrDHM/0.jpg)](https://youtu.be/m070bAvrDHM) + ## 👷 Contributing [Reporting bugs](https://github.com/fluxninja/aperture/issues/new?assignees=&labels=bug&template=bug_report.md&title=) diff --git a/docs/content/references/flow-events/_category_.yaml b/docs/content/references/flow-events/_category_.yaml new file mode 100644 index 0000000000..fbead4fc3f --- /dev/null +++ b/docs/content/references/flow-events/_category_.yaml @@ -0,0 +1,8 @@ +label: Flow Events +position: 4 +collapsible: true +collapsed: true +link: + type: "generated-index" + title: "Flow Events" + keywords: ["flow", "events", "olap"] diff --git a/docs/content/references/flow-events/flow-events.md b/docs/content/references/flow-events/flow-events.md new file mode 100644 index 0000000000..3bb032f6ef --- /dev/null +++ b/docs/content/references/flow-events/flow-events.md @@ -0,0 +1,80 @@ +--- +title: Flow Events +sidebar_position: 1 +sidebar_label: Flow Events +--- + +## Dimension Columns + +### Common + +| Name | Type | Example Values | Description | Flow Control Integrations | +| -------------------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------- | +| aperture.source | | sdk, envoy | Aperture Flow source | SDKs, Envoy | +| workload_duration_ms | | 52 | Duration of the workload in ms | SDKs, Envoy | +| flow_duration_ms | | 52 | Duration of the flow in ms | SDKs, Envoy | +| aperture_processing_duration_ms | | 52 | Aperture's processing duration in ms | SDKs, Envoy | +| aperture.decision_type | | DECISION_TYPE_ACCEPTED, DECISION_TYPE_REJECTED | Decision type taken by policy | SDKs, Envoy | +| aperture.error | | ERROR_NONE, ERROR_MISSING_TRAFFIC_DIRECTION, ERROR_INVALID_TRAFFIC_DIRECTION, ERROR_CONVERT_TO_MAP_STRUCT, ERROR_CONVERT_TO_REGO_AST, ERROR_CLASSIFY | Error reason of the decision taken by policy | SDKs, Envoy | +| aperture.reject_reason | | REJECT_REASON_NONE, REJECT_REASON_RATE_LIMITED, REJECT_REASON_CONCURRENCY_LIMITED | Reject reason of the decision taken by policy | SDKs, Envoy | +| aperture.rate_limiters | | policy_name:service1-demo-app,component_index:18,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Rate limiters matched to the traffic | SDKs, Envoy | +| aperture.dropping_rate_limiters | | policy_name:service1-demo-app,component_index:18,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Rate limiters dropping the traffic | SDKs, Envoy | +| aperture.concurrency_limiters | | policy_name:service1-demo-app,component_index:13,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Concurrency limiters matched to the traffic | SDKs, Envoy | +| aperture.dropping_concurrency_limiters | | policy_name:service1-demo-app,component_index:13,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Concurrency limiters dropping the traffic | SDKs, Envoy | +| aperture.workloads | | policy_name:service1-demo-app,component_index:13,workload_index:0,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Workloads matched to the traffic | SDKs, Envoy | +| aperture.dropping_workloads | | policy_name:service1-demo-app,component_index:13,workload_index:0,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Workloads dropping the traffic | SDKs, Envoy | +| aperture.flux_meters | | service1-demo-app | Flux Meters matched to the traffic | SDKs, Envoy | +| aperture.flow_label_keys | | http.host, http.method, http.request.header.content_length | Flow labels matched to the traffic | SDKs, Envoy | +| aperture.classifiers | | policy_name:service1-demo-app,classifier_index:0 | Classifiers matched to the traffic | SDKs, Envoy | +| aperture.classifier_errors | | | Encountered classifier errors for specified policy | SDKs, Envoy | +| aperture.services | | service1-demo-app.demoapp.svc.cluster.local, service2-demo-app.demoapp.svc.cluster.local | Services to which metrics refer | SDKs, Envoy | +| aperture.control_point | | type:TYPE_INGRESS, type:TYPE_EGRESS | Control point to which metrics refer | SDKs, Envoy | +| aperture.response_status | | OK, Error | Denotes OK or Error across all protocols | SDKs, Envoy | +| response_received | | true, false | Designates whether a response was received | SDKs, envoy | + +### HTTP + +| Name | Type | Example Values | Description | Flow Control Integrations | +| ---------------------------- | ---- | ---------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------------- | +| http.status_code | | 200, 429, 503 | HTTP status code of the response | Envoy | +| http.request_content_length | | 0, 53 | Length of the HTTP request content in bytes | Envoy | +| http.response_content_length | | 201, 77 | Length of the HTTP response content in bytes | Envoy | +| http.method | | GET, POST | HTTP method of the response | Envoy | +| http.target | | /request | Target endpoint of the response | Envoy | +| http.host | | service1-demo-app.demoapp.svc.cluster.local, service2-demo-app.demoapp.svc.cluster.local | Host address of the response | Envoy | +| http.scheme | | http | HTTP scheme of the response | Envoy | +| http.flavor | | 1.1 | HTTP protocol version | Envoy | + +### SDK + +| Name | Type | Example Values | Description | Flow Control Integrations | +| ----------------------- | ---- | -------------- | --------------------- | ------------------------- | +| aperture.feature.status | | OK, Error | Status of the feature | SDKs | + +## Metric Columns + +| Name | Type | Unit | Description | +| -------------------------------------------- | ----- | ----- | ----------------------------------------------------- | +| workload_duration_ms_sum | float | ms | Sum of duration of the workload | +| workload_duration_ms_min | float | ms | Min of duration of the workload | +| workload_duration_ms_max | float | ms | Max of duration of the workload | +| workload_duration_ms_sumOfSquares | float | ms | Sum of squares of duration of the workload | +| workload_duration_ms_datasketch | float | ms | Datasktech of Duration of the workload | +| flow_duration_ms_sum | float | ms | Sum of duration of the flow | +| flow_duration_ms_min | float | ms | Min of duration of the flow | +| flow_duration_ms_max | float | ms | Max of duration of the flow | +| flow_duration_ms_sumOfSquares | float | ms | Sum of squares of duration of the flow | +| flow_duration_ms_datasketch | float | ms | Datasktech of duration of the flow | +| aperture_processing_duration_ms_sum | float | ms | Sum of Aperture's processing duration | +| aperture_processing_duration_ms_min | float | ms | Min of Aperture's processing duration | +| aperture_processing_duration_ms_max | float | ms | Max of Aperture's processing duration | +| aperture_processing_duration_ms_sumOfSquares | float | ms | Sum of squares of Aperture's processing duration | +| aperture_processing_duration_ms_datasketch | float | ms | Datasktech of Aperture's processing duration | +| http.request_content_length_sum | int | bytes | Sum of length of the HTTP request content | +| http.request_content_length_min | int | bytes | Min of length of the HTTP request content | +| http.request_content_length_max | int | bytes | Max of length of the HTTP request content | +| http.request_content_length_sumOfSquares | int | bytes | Sum of squares of length of the HTTP request content | +| http.response_content_length_sum | int | bytes | Sum of length of the HTTP response content | +| http.response_content_length_min | int | bytes | Min of length of the HTTP response content | +| http.response_content_length_max | int | bytes | Max of length of the HTTP response content | +| http.response_content_length_sumOfSquares | int | bytes | Sum of squares of length of the HTTP response content | diff --git a/docs/content/references/metrics/_category_.yaml b/docs/content/references/metrics/_category_.yaml new file mode 100644 index 0000000000..8726c57442 --- /dev/null +++ b/docs/content/references/metrics/_category_.yaml @@ -0,0 +1,8 @@ +label: Metrics +position: 3 +collapsible: true +collapsed: true +link: + type: "generated-index" + title: "Metrics" + keywords: ["metrics"] diff --git a/docs/content/references/metrics/agent.md b/docs/content/references/metrics/agent.md new file mode 100644 index 0000000000..8af15d17e0 --- /dev/null +++ b/docs/content/references/metrics/agent.md @@ -0,0 +1,160 @@ +--- +title: Agent +sidebar_position: 2 +sidebar_label: Agent +--- + +## FluxMeter + +### Metrics + +| Name | Type | Labels | Unit | Description | +| ---------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---- | ------------------------ | +| flux_meter | Histogram | agent_group, instance, job, process_uuid, flux_meter_name, decision_type, response_status, http_status_code, feature_status, valid | ms | Flow's workload duration | + +### Labels + +| Name | Example | Description | +| ---------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| flux_meter_name | service1-demo-app | Name of the FluxMeter | +| decision_type | DECISION_TYPE_ACCEPTED, DECISION_TYPE_REJECTED | Whether the flow was accepted or not | +| response_status | OK, Error | A common label to denote OK or Error across all protocols | +| http_status_code | 200, 503 | HTTP status code | +| feature_status | OK, Error | Feature status | +| valid | true, false | Label for specifying if metric is valid. A metric may be invalid if attribute is not found in flow telemetry. | + +## ConcurrencyLimiter + +### Metrics + +| Name | Type | Labels | Unit | Description | +| ----------------------- | ------- | --------------------------------------------------------------------------------------------------- | --------------- | --------------------------------------------------------- | +| workload_latency_ms | Summary | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index, workload_index | ms | Latency summary of workload | +| workload_requests_total | Counter | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index, workload_index | count (no unit) | A counter of workload requests | +| incoming_concurrency_ms | Counter | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | ms | A counter measuring incoming concurrency into Scheduler | +| accepted_concurrency_ms | Counter | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | ms | A counter measuring the concurrency admitted by Scheduler | + +### Labels + +| Name | Example | Description | +| --------------- | -------------------------------------------- | --------------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| policy_name | service1-demo-app | Name of the policy. | +| policy_hash | 5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Hash of the policy used for checking integrity of the policy. | +| workload_index | 0, 1, 2, default | Index of the workload in order of specification in the policy. | +| component_index | 13 | Index of the component in order of specification in the policy. | + +## RateLimiter + +### Metrics + +| Name | Type | Labels | Unit | Description | +| -------------------- | ------- | ----------------------------------------------------------------------------------- | --------------- | ------------------------------------------------------------------ | +| rate_limiter_counter | Counter | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | count (no unit) | A counter measuring the number of times Rate Limiter was triggered | + +### Labels + +| Name | Example | Description | +| --------------- | -------------------------------------------- | --------------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| policy_name | service1-demo-app | Name of the policy. | +| policy_hash | 5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Hash of the policy used for checking integrity of the policy. | +| component_index | 13 | Index of the component in order of specification in the policy. | + +## Classifier + +### Metrics + +| Name | Type | Labels | Unit | Description | +| ------------------ | ------- | ------------------------------------------------------------------------------------ | --------------- | ---------------------------------------------------------------- | +| classifier_counter | Counter | agent_group, instance, job, process_uuid, policy_name, policy_hash, classifier_index | count (no unit) | A counter measuring the number of times classifier was triggered | + +### Labels + +| Name | Example | Description | +| ---------------- | -------------------------------------------- | ---------------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| policy_name | service1-demo-app | Name of the policy. | +| policy_hash | 5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Hash of the policy used for checking integrity of the policy. | +| classifier_index | 0, 1 | Index of the classifier in order of specification in the policy. | + +## Dataplane Summary + +### FlowControl Metrics + +| Name | Type | Labels | Unit | Description | +| -------------------------------- | ------- | ------------------------------------------------------- | --------------- | ----------------------------------------------- | +| flowcontrol_requests_total | Counter | agent_group, instance, job, process_uuid | count (no unit) | Total number of aperture check requests handled | +| flowcontrol_decisions_total | Counter | agent_group, instance, job, process_uuid, decision_type | count (no unit) | Number of aperture check decisions | +| flowcontrol_error_reasons_total | Counter | agent_group, instance, job, process_uuid, error_reason | count(no unit) | Number of error reasons other than unspecified | +| flowcontrol_reject_reasons_total | Counter | agent_group, instance, job, process_uuid, reject_reason | count (no unit) | Number of reject reasons other than unspecified | + +### FlowControl Labels + +| Name | Example | Description | +| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| decision_type | DECISION_TYPE_ACCEPTED, DECISION_TYPE_REJECTED | Whether the flow was accepted or not | +| error_reason | ERROR_NONE, ERROR_MISSING_TRAFFIC_DIRECTION, ERROR_INVALID_TRAFFIC_DIRECTION, ERROR_CONVERT_TO_MAP_STRUCT, ERROR_CONVERT_TO_REGO_AST, ERROR_CLASSIFY | Error reason for FlowControl Check response. | +| reject_reason | REJECT_REASON_NONE, REJECT_REASON_RATE_LIMITED, REJECT_REASON_CONCURRENCY_LIMITED | Reason why FlowControl Check response rejected the flow. | + +### Distributed Cache Metrics + +| Name | Type | Labels | Unit | Description | +| ----------------------- | ----- | ------------------------------------------------------------------------------------ | --------------- | ------------------------------------------------------------------------------------- | +| distcache_entries_total | Gauge | agent_group, instance, job, process_uuid, distcache_member_id, distcache_member_name | count (no unit) | Total number of entries in the DMap | +| distcache_delete_hits | Gauge | agent_group, instance, job, process_uuid, distcache_member_id, distcache_member_name | count (no unit) | Number of deletion requests resulting in an item being removed in the DMap | +| distcache_delete_misses | Gauge | agent_group, instance, job, process_uuid, distcache_member_id, distcache_member_name | count (no unit) | Number of deletion requests for missing keys in the DMap | +| distcache_get_misses | Gauge | agent_group, instance, job, process_uuid, distcache_member_id, distcache_member_name | count (no unit) | Number of entries that have been requested and not found in the DMap | +| distcache_get_hits | Gauge | agent_group, instance, job, process_uuid, distcache_member_id, distcache_member_name | count (no unit) | Number of entries that have been requested and found present in the DMap | +| distcache_evicted_total | Gauge | agent_group, instance, job, process_uuid, distcache_member_id, distcache_member_name | count (no unit) | Total number of entries removed from cache to free memory for new entries in the DMap | + +### Distributed Cache Labels + +| Name | Example | Description | +| --------------------- | ------------------------------------ | --------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| distcache_member_id | 384313659919819706 | Internal ID of distributed cache cluster member. | +| distcache_member_name | 10.244.1.20:3320 | Internal unique name of distributed cache cluster member. | + +### Scheduler Metrics + +| Name | Type | Labels | Unit | Description | +| ----------------------------------- | ----- | ----------------------------------------------------------------------------------- | --------------- | --------------------------------------------------------------------- | +| wfq_flows_total | Gauge | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | count (no unit) | A gauge that tracks the number of flows in the WFQScheduler | +| wfq_requests_total | Gauge | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | count (no unit) | A gauge that tracks the number of queued requests in the WFQScheduler | +| token_bucket_lm_ratio | Gauge | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | percentage | A gauge that tracks the load multiplier | +| token_bucket_fill_rate | Gauge | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | tokens/s | A gauge that tracks the fill rate of token bucket | +| token_bucket_capacity_total | Gauge | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | count (no unit) | A gauge that tracks the capacity of token bucket | +| token_bucket_available_tokens_total | Gauge | agent_group, instance, job, process_uuid, policy_name, policy_hash, component_index | count (no unit) | A gauge that tracks the number of tokens available in token bucket | + +### Scheduler Labels + +| Name | Example | Description | +| --------------- | -------------------------------------------- | --------------------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| policy_name | service1-demo-app | Name of the policy. | +| policy_hash | 5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Hash of the policy used for checking integrity of the policy. | +| component_index | 13 | Index of the component in order of specification in the policy. | diff --git a/docs/content/references/metrics/common.md b/docs/content/references/metrics/common.md new file mode 100644 index 0000000000..2c76dad187 --- /dev/null +++ b/docs/content/references/metrics/common.md @@ -0,0 +1,49 @@ +--- +title: System +sidebar_position: 1 +sidebar_label: System +--- + +## Go Metrics + +Go process metrics can be exposed by enabling `enable_go_metrics` flag in +[Agent's MetricsConfig](../configuration/agent.md#metrics-config) and +[Controller's MetricsConfig](../configuration/controller.md#metrics-config). See +[collector.NewGoCollector](https://pkg.go.dev/github.com/prometheus/client_golang@v1.13.0/prometheus/collectors#NewGoCollector) +for more information. + +## Process Metrics + +Process metrics can be exposed by enabling `enable_process_collector` flag in +[Agent's MetricsConfig](../configuration/agent.md#metrics-config) and +[Controller's MetricsConfig](../configuration/controller.md#metrics-config). See +[collector.NewProcessCollector](https://pkg.go.dev/github.com/prometheus/client_golang@v1.13.0/prometheus/collectors#NewProcessCollector) +for more information. + +## HTTP Server Metrics + +### Metrics + +| Name | Type | Labels | Unit | Description | +| ------------------------ | --------- | ------------------------------------------------------------------------------------- | --------------- | ----------------------------------------------- | +| http_requests_total | Counter | agent_group, instance, job, process_uuid, handler_name, http_method, http_status_code | count (no unit) | Total number of requests received | +| http_errors_total | Counter | agent_group, instance, job, process_uuid, handler_name, http_method, http_status_code | count (no unit) | Total number of errors that occurred | +| http_requests_latency_ms | Histogram | agent_group, instance, job, process_uuid, handler_name, http_method, http_status_code | ms | Latency of the requests processed by the server | + +### Labels + +| Name | Example | Description | +| ---------------- | ------------------------------------ | --------------------------------------------------- | +| agent_group | default | Agent Group of the policy that FluxMeter belongs to | +| instance | aperture-agent-cbfnp | Host instance of the Aperture Agent | +| job | aperture-self | The configured job name that the target belongs to | +| process_uuid | dc0e82af-6730-4f70-8228-ee91da53ac5f | Host instance's UUID | +| handler_name | default | HTTP handler name | +| http_method | GET, POST | HTTP method | +| http_status_code | 200, 503 | HTTP status code | + +### GRPC Server Metrics + +GRPC server metrics are exposed by default. See +[grpc-ecosystem/go-grpc-prometheus server_metrics](https://pkg.go.dev/github.com/grpc-ecosystem/go-grpc-prometheus#NewServerMetrics) +for more information. diff --git a/docs/content/references/metrics/controller.md b/docs/content/references/metrics/controller.md new file mode 100644 index 0000000000..3e3e269ce1 --- /dev/null +++ b/docs/content/references/metrics/controller.md @@ -0,0 +1,24 @@ +--- +title: Controller +sidebar_position: 3 +sidebar_label: Controller +--- + +## Signal + +### Metrics + +| Name | Type | Labels | Unit | Description | +| -------------- | ------- | ---------------------------------------------------- | ------- | ------------------------- | +| signal_reading | Summary | instance,job, process_uuid, signal_name, policy_name | various | The reading from a signal | + +### Labels + +| Name | Example | Description | +| ------------ | ------------------------------------ | ---------------------------------------------------------------------------------------------- | +| instance | aperture-controller-58d48d5d8d-6ksl5 | Host instance of the Aperture Agent | +| job | aperture-controller-self | The configured job name that the target belongs to | +| process_uuid | c4f019c8-b1b1-4e52-885b-1c73778994ab | Host instance's UUID | +| signal_name | LATENCY_EMA, IS_OVERLOAD | Name of the signal provided in policy. | +| policy_name | service1-demo-app | Name of the policy. | +| valid | true, false | Label for specifying if metric is valid. A metric may be invalid if signal reading is invalid. | diff --git a/pkg/otelcollector/consts.go b/pkg/otelcollector/consts.go index 8879f40164..34dc090812 100644 --- a/pkg/otelcollector/consts.go +++ b/pkg/otelcollector/consts.go @@ -45,9 +45,9 @@ const ( ApertureRateLimitersLabel = "aperture.rate_limiters" // ApertureDroppingRateLimitersLabel describes rate limiters dropping the traffic. ApertureDroppingRateLimitersLabel = "aperture.dropping_rate_limiters" - // ApertureConcurrencyLimitersLabel describes rate limiters matched to the traffic. + // ApertureConcurrencyLimitersLabel describes concurrency limiters matched to the traffic. ApertureConcurrencyLimitersLabel = "aperture.concurrency_limiters" - // ApertureDroppingConcurrencyLimitersLabel describes rate limiters dropping the traffic. + // ApertureDroppingConcurrencyLimitersLabel describes concurrency limiters dropping the traffic. ApertureDroppingConcurrencyLimitersLabel = "aperture.dropping_concurrency_limiters" // ApertureWorkloadsLabel describes workloads matched to the traffic. ApertureWorkloadsLabel = "aperture.workloads" diff --git a/pkg/otelcollector/metricsprocessor/processor.go b/pkg/otelcollector/metricsprocessor/processor.go index d770152a12..a07a9c84ef 100644 --- a/pkg/otelcollector/metricsprocessor/processor.go +++ b/pkg/otelcollector/metricsprocessor/processor.go @@ -4,6 +4,7 @@ import ( "context" "fmt" + "github.com/rs/zerolog" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/pdata/pcommon" @@ -15,7 +16,6 @@ import ( "github.com/fluxninja/aperture/pkg/otelcollector" "github.com/fluxninja/aperture/pkg/otelcollector/metricsprocessor/internal" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/iface" - "github.com/rs/zerolog" ) type metricsProcessor struct { diff --git a/pkg/otelcollector/rollupprocessor/processor.go b/pkg/otelcollector/rollupprocessor/processor.go index 63c228a67f..3ccc54dea3 100644 --- a/pkg/otelcollector/rollupprocessor/processor.go +++ b/pkg/otelcollector/rollupprocessor/processor.go @@ -7,7 +7,6 @@ import ( "fmt" "time" - "github.com/fluxninja/datasketches-go/sketches" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/pdata/pcommon" @@ -15,6 +14,7 @@ import ( "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/otelcollector" + "github.com/fluxninja/datasketches-go/sketches" ) var rollupTypes = []RollupType{ From dd430b4f3e4e1fb21d298a5f401813283f950726 Mon Sep 17 00:00:00 2001 From: Hasit Mistry Date: Fri, 4 Nov 2022 15:52:52 -0700 Subject: [PATCH 3/5] Fix metrics docs (#897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description of change ##### Checklist - [ ] Tested in playground or other setup - [x] Documentation is changed or added - [ ] Tests and/or benchmarks are included - [ ] Breaking changes - - - This change is [Reviewable](https://reviewable.io/reviews/fluxninja/aperture/897) --- .../concepts/flow-control/flow-label.md | 10 +- .../references/flow-events/_category_.yaml | 8 -- .../references/flow-events/flow-events.md | 131 +++++++++--------- .../references/metrics/_category_.yaml | 8 -- .../prometheus-metrics/_category_.yaml | 8 ++ .../{metrics => prometheus-metrics}/agent.md | 2 + .../{metrics => prometheus-metrics}/common.md | 2 + .../controller.md | 2 + 8 files changed, 87 insertions(+), 84 deletions(-) delete mode 100644 docs/content/references/flow-events/_category_.yaml delete mode 100644 docs/content/references/metrics/_category_.yaml create mode 100644 docs/content/references/prometheus-metrics/_category_.yaml rename docs/content/references/{metrics => prometheus-metrics}/agent.md (99%) rename docs/content/references/{metrics => prometheus-metrics}/common.md (97%) rename docs/content/references/{metrics => prometheus-metrics}/controller.md (96%) diff --git a/docs/content/concepts/flow-control/flow-label.md b/docs/content/concepts/flow-control/flow-label.md index 5c77fb4db6..670b2e7a0c 100644 --- a/docs/content/concepts/flow-control/flow-label.md +++ b/docs/content/concepts/flow-control/flow-label.md @@ -97,9 +97,9 @@ high-cardinality label is detected, some of its values may be replaced with #### Default labels -These are protocol-level labels (e.g. http, network) extracted by the -configurated service mesh/middleware and are available to be referenced in -[Selectors][selector], execept for a few high-cardinality ones. +These are protocol-level labels (e.g. http, network) extracted by the configured +service mesh/middleware and are available to be referenced in +[Selectors][selector], except for a few high-cardinality ones. #### Labels extracted from baggage @@ -113,8 +113,8 @@ SDK][aperture-go]. :::note -In the case of a clash, the Flow Label generated from the source takes -predendence over the source below it: +In the case of a clash, the Flow Label will be applied in the following +precedence over: 1. User-defined 2. Baggage diff --git a/docs/content/references/flow-events/_category_.yaml b/docs/content/references/flow-events/_category_.yaml deleted file mode 100644 index fbead4fc3f..0000000000 --- a/docs/content/references/flow-events/_category_.yaml +++ /dev/null @@ -1,8 +0,0 @@ -label: Flow Events -position: 4 -collapsible: true -collapsed: true -link: - type: "generated-index" - title: "Flow Events" - keywords: ["flow", "events", "olap"] diff --git a/docs/content/references/flow-events/flow-events.md b/docs/content/references/flow-events/flow-events.md index 3bb032f6ef..35869e9647 100644 --- a/docs/content/references/flow-events/flow-events.md +++ b/docs/content/references/flow-events/flow-events.md @@ -1,80 +1,85 @@ --- -title: Flow Events +title: Flow OLAP sidebar_position: 1 -sidebar_label: Flow Events +sidebar_label: Flow OLAP --- +Aperture Agents emit an Opentelemetry stream that can be mapped to an OLAP +database like Druid. This data can be visualized in FluxNinja Cloud. + ## Dimension Columns ### Common -| Name | Type | Example Values | Description | Flow Control Integrations | -| -------------------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------- | -| aperture.source | | sdk, envoy | Aperture Flow source | SDKs, Envoy | -| workload_duration_ms | | 52 | Duration of the workload in ms | SDKs, Envoy | -| flow_duration_ms | | 52 | Duration of the flow in ms | SDKs, Envoy | -| aperture_processing_duration_ms | | 52 | Aperture's processing duration in ms | SDKs, Envoy | -| aperture.decision_type | | DECISION_TYPE_ACCEPTED, DECISION_TYPE_REJECTED | Decision type taken by policy | SDKs, Envoy | -| aperture.error | | ERROR_NONE, ERROR_MISSING_TRAFFIC_DIRECTION, ERROR_INVALID_TRAFFIC_DIRECTION, ERROR_CONVERT_TO_MAP_STRUCT, ERROR_CONVERT_TO_REGO_AST, ERROR_CLASSIFY | Error reason of the decision taken by policy | SDKs, Envoy | -| aperture.reject_reason | | REJECT_REASON_NONE, REJECT_REASON_RATE_LIMITED, REJECT_REASON_CONCURRENCY_LIMITED | Reject reason of the decision taken by policy | SDKs, Envoy | -| aperture.rate_limiters | | policy_name:service1-demo-app,component_index:18,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Rate limiters matched to the traffic | SDKs, Envoy | -| aperture.dropping_rate_limiters | | policy_name:service1-demo-app,component_index:18,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Rate limiters dropping the traffic | SDKs, Envoy | -| aperture.concurrency_limiters | | policy_name:service1-demo-app,component_index:13,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Concurrency limiters matched to the traffic | SDKs, Envoy | -| aperture.dropping_concurrency_limiters | | policy_name:service1-demo-app,component_index:13,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Concurrency limiters dropping the traffic | SDKs, Envoy | -| aperture.workloads | | policy_name:service1-demo-app,component_index:13,workload_index:0,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Workloads matched to the traffic | SDKs, Envoy | -| aperture.dropping_workloads | | policy_name:service1-demo-app,component_index:13,workload_index:0,policy_hash:5kZjjSgDAtGWmLnDT67SmQhZdHVmz0+GvKcOGTfWMVo= | Workloads dropping the traffic | SDKs, Envoy | -| aperture.flux_meters | | service1-demo-app | Flux Meters matched to the traffic | SDKs, Envoy | -| aperture.flow_label_keys | | http.host, http.method, http.request.header.content_length | Flow labels matched to the traffic | SDKs, Envoy | -| aperture.classifiers | | policy_name:service1-demo-app,classifier_index:0 | Classifiers matched to the traffic | SDKs, Envoy | -| aperture.classifier_errors | | | Encountered classifier errors for specified policy | SDKs, Envoy | -| aperture.services | | service1-demo-app.demoapp.svc.cluster.local, service2-demo-app.demoapp.svc.cluster.local | Services to which metrics refer | SDKs, Envoy | -| aperture.control_point | | type:TYPE_INGRESS, type:TYPE_EGRESS | Control point to which metrics refer | SDKs, Envoy | -| aperture.response_status | | OK, Error | Denotes OK or Error across all protocols | SDKs, Envoy | -| response_received | | true, false | Designates whether a response was received | SDKs, envoy | +| Name | Type | Example Values | Description | Flow Control Integrations | +| -------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------- | +| aperture.source | single | sdk, envoy | Aperture Flow source | SDKs, Envoy | +| aperture.decision_type | single | DECISION_TYPE_ACCEPTED, DECISION_TYPE_REJECTED | Decision type taken by policy | SDKs, Envoy | +| aperture.error | single | ERROR_NONE, ERROR_MISSING_TRAFFIC_DIRECTION, ERROR_INVALID_TRAFFIC_DIRECTION, ERROR_CONVERT_TO_MAP_STRUCT, ERROR_CONVERT_TO_REGO_AST, ERROR_CLASSIFY | Error reason of the decision taken by policy | SDKs, Envoy | +| aperture.reject_reason | single | REJECT_REASON_NONE, REJECT_REASON_RATE_LIMITED, REJECT_REASON_CONCURRENCY_LIMITED | Reject reason of the decision taken by policy | SDKs, Envoy | +| aperture.rate_limiters | multi-value | "policy_name:s1, component_index:18, policy_hash:5kZjj" | Rate limiters matched to the traffic | SDKs, Envoy | +| aperture.dropping_rate_limiters | multi-value | "policy_name:s1, component_index:18, policy_hash:5kZjj" | Rate limiters dropping the traffic | SDKs, Envoy | +| aperture.concurrency_limiters | multi-value | "policy_name:s1, component_index:13, policy_hash:5kZjj" | Concurrency limiters matched to the traffic | SDKs, Envoy | +| aperture.dropping_concurrency_limiters | multi-value | "policy_name:s1, component_index:13, policy_hash:5kZjj" | Concurrency limiters dropping the traffic | SDKs, Envoy | +| aperture.workloads | multi-value | "policy_name:s1, component_index:13, workload_index:0, policy_hash:5kZjj" | Workloads matched to the traffic | SDKs, Envoy | +| aperture.dropping_workloads | multi-value | "policy_name:s1, component_index:13, workload_index:0, policy_hash:5kZjj" | Workloads dropping the traffic | SDKs, Envoy | +| aperture.flux_meters | multi-value | s1 | Flux Meters matched to the traffic | SDKs, Envoy | +| aperture.flow_label_keys | multi-value | http.host, http.method, http.request.header.content_length | Flow labels matched to the traffic | SDKs, Envoy | +| aperture.classifiers | multi-value | "policy_name:s1, classifier_index:0" | Classifiers matched to the traffic | SDKs, Envoy | +| aperture.classifier_errors | multi-value | "[ERROR_NONE, ERROR_EVAL_FAILED, ERROR_EMPTY_RESULTSET, ERROR_AMBIGUOUS_RESULTSET, ERROR_MULTI_EXPRESSION, ERROR_EXPRESSION_NOT_MAP], policy_name:s1, classifier_index:0" | Encountered classifier errors for specified policy | SDKs, Envoy | +| aperture.services | multi-value | s1.demoapp.svc.cluster.local, s2.demoapp.svc.cluster.local | Services to which metrics refer | SDKs, Envoy | +| aperture.control_point | single | type:TYPE_INGRESS, type:TYPE_EGRESS | Control point to which metrics refer | SDKs, Envoy | +| aperture.response_status | single | OK, Error | Denotes OK or Error across all protocols | SDKs, Envoy | +| response_received | single | true, false | Designates whether a response was received | SDKs, envoy | ### HTTP -| Name | Type | Example Values | Description | Flow Control Integrations | -| ---------------------------- | ---- | ---------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------------- | -| http.status_code | | 200, 429, 503 | HTTP status code of the response | Envoy | -| http.request_content_length | | 0, 53 | Length of the HTTP request content in bytes | Envoy | -| http.response_content_length | | 201, 77 | Length of the HTTP response content in bytes | Envoy | -| http.method | | GET, POST | HTTP method of the response | Envoy | -| http.target | | /request | Target endpoint of the response | Envoy | -| http.host | | service1-demo-app.demoapp.svc.cluster.local, service2-demo-app.demoapp.svc.cluster.local | Host address of the response | Envoy | -| http.scheme | | http | HTTP scheme of the response | Envoy | -| http.flavor | | 1.1 | HTTP protocol version | Envoy | +| Name | Type | Example Values | Description | Flow Control Integrations | +| ---------------------------- | ------ | ---------------------------------------------------------- | ------------------------------------------------------ | ------------------------- | +| http.status_code | single | 200, 429, 503 | HTTP status code of the response | Envoy | +| http.request_content_length | single | 0, 53 | Length of the HTTP request content in bytes | Envoy | +| http.response_content_length | single | 201, 77 | Length of the HTTP response content in bytes | Envoy | +| http.method | single | GET, POST | HTTP method of the response | Envoy | +| http.target | single | /request | Target endpoint of the response | Envoy | +| http.host | single | s1.demoapp.svc.cluster.local, s2.demoapp.svc.cluster.local | Host address of the response | Envoy | +| http.scheme | single | http | HTTP scheme of the response | Envoy | +| http.flavor | single | 1.1 | HTTP protocol version | Envoy | +| {user-defined-labels} | | | Configured through [Flow Classifiers][flowclassifiers] | Envoy | ### SDK -| Name | Type | Example Values | Description | Flow Control Integrations | -| ----------------------- | ---- | -------------- | --------------------- | ------------------------- | -| aperture.feature.status | | OK, Error | Status of the feature | SDKs | +| Name | Type | Example Values | Description | Flow Control Integrations | +| ----------------------- | ------ | -------------- | ------------------------------------------------ | ------------------------- | +| aperture.feature.status | single | OK, Error | Status of the feature | SDKs | +| {user-defined-labels} | | | Explicitly passed through FlowStart call in SDKs | SDKs | ## Metric Columns -| Name | Type | Unit | Description | -| -------------------------------------------- | ----- | ----- | ----------------------------------------------------- | -| workload_duration_ms_sum | float | ms | Sum of duration of the workload | -| workload_duration_ms_min | float | ms | Min of duration of the workload | -| workload_duration_ms_max | float | ms | Max of duration of the workload | -| workload_duration_ms_sumOfSquares | float | ms | Sum of squares of duration of the workload | -| workload_duration_ms_datasketch | float | ms | Datasktech of Duration of the workload | -| flow_duration_ms_sum | float | ms | Sum of duration of the flow | -| flow_duration_ms_min | float | ms | Min of duration of the flow | -| flow_duration_ms_max | float | ms | Max of duration of the flow | -| flow_duration_ms_sumOfSquares | float | ms | Sum of squares of duration of the flow | -| flow_duration_ms_datasketch | float | ms | Datasktech of duration of the flow | -| aperture_processing_duration_ms_sum | float | ms | Sum of Aperture's processing duration | -| aperture_processing_duration_ms_min | float | ms | Min of Aperture's processing duration | -| aperture_processing_duration_ms_max | float | ms | Max of Aperture's processing duration | -| aperture_processing_duration_ms_sumOfSquares | float | ms | Sum of squares of Aperture's processing duration | -| aperture_processing_duration_ms_datasketch | float | ms | Datasktech of Aperture's processing duration | -| http.request_content_length_sum | int | bytes | Sum of length of the HTTP request content | -| http.request_content_length_min | int | bytes | Min of length of the HTTP request content | -| http.request_content_length_max | int | bytes | Max of length of the HTTP request content | -| http.request_content_length_sumOfSquares | int | bytes | Sum of squares of length of the HTTP request content | -| http.response_content_length_sum | int | bytes | Sum of length of the HTTP response content | -| http.response_content_length_min | int | bytes | Min of length of the HTTP response content | -| http.response_content_length_max | int | bytes | Max of length of the HTTP response content | -| http.response_content_length_sumOfSquares | int | bytes | Sum of squares of length of the HTTP response content | +| Name | Type | Unit | Description | +| -------------------------------------------- | ----------------------- | ----- | ----------------------------------------------------- | +| workload_duration_ms_sum | float | ms | Sum of duration of the workload | +| workload_duration_ms_min | float | ms | Min of duration of the workload | +| workload_duration_ms_max | float | ms | Max of duration of the workload | +| workload_duration_ms_sumOfSquares | float | ms | Sum of squares of duration of the workload | +| workload_duration_ms_datasketch | [quantilesDoubleSketch] | ms | Datasktech of Duration of the workload | +| flow_duration_ms_sum | float | ms | Sum of duration of the flow | +| flow_duration_ms_min | float | ms | Min of duration of the flow | +| flow_duration_ms_max | float | ms | Max of duration of the flow | +| flow_duration_ms_sumOfSquares | float | ms | Sum of squares of duration of the flow | +| flow_duration_ms_datasketch | [quantilesDoubleSketch] | ms | Sum of Aperture's processing duration | +| aperture_processing_duration_ms_min | float | ms | Min of Aperture's processing duration | +| aperture_processing_duration_ms_max | float | ms | Max of Aperture's processing duration | +| aperture_processing_duration_ms_sumOfSquares | float | ms | Sum of squares of Aperture's processing duration | +| aperture_processing_duration_ms_datasketch | [quantilesDoubleSketch] | ms | Datasktech of Aperture's processing duration | +| http.request_content_length_sum | int | bytes | Sum of length of the HTTP request content | +| http.request_content_length_min | int | bytes | Min of length of the HTTP request content | +| http.request_content_length_max | int | bytes | Max of length of the HTTP request content | +| http.request_content_length_sumOfSquares | int | bytes | Sum of squares of length of the HTTP request content | +| http.response_content_length_sum | int | bytes | Sum of length of the HTTP response content | +| http.response_content_length_min | int | bytes | Min of length of the HTTP response content | +| http.response_content_length_max | int | bytes | Max of length of the HTTP response content | +| http.response_content_length_sumOfSquares | int | bytes | Sum of squares of length of the HTTP response content | + +[quantilesdoublesketch]: + https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html +[flowclassifiers]: ../../concepts/flow-control/flow-classifier.md diff --git a/docs/content/references/metrics/_category_.yaml b/docs/content/references/metrics/_category_.yaml deleted file mode 100644 index 8726c57442..0000000000 --- a/docs/content/references/metrics/_category_.yaml +++ /dev/null @@ -1,8 +0,0 @@ -label: Metrics -position: 3 -collapsible: true -collapsed: true -link: - type: "generated-index" - title: "Metrics" - keywords: ["metrics"] diff --git a/docs/content/references/prometheus-metrics/_category_.yaml b/docs/content/references/prometheus-metrics/_category_.yaml new file mode 100644 index 0000000000..739b9e130d --- /dev/null +++ b/docs/content/references/prometheus-metrics/_category_.yaml @@ -0,0 +1,8 @@ +label: Prometheus Metrics +position: 3 +collapsible: true +collapsed: true +link: + type: "generated-index" + title: "Prometheus Metrics" + keywords: ["prometheus", "metrics"] diff --git a/docs/content/references/metrics/agent.md b/docs/content/references/prometheus-metrics/agent.md similarity index 99% rename from docs/content/references/metrics/agent.md rename to docs/content/references/prometheus-metrics/agent.md index 8af15d17e0..665f4ba3dd 100644 --- a/docs/content/references/metrics/agent.md +++ b/docs/content/references/prometheus-metrics/agent.md @@ -4,6 +4,8 @@ sidebar_position: 2 sidebar_label: Agent --- +Prometheus metrics generated by Aperture Agents. + ## FluxMeter ### Metrics diff --git a/docs/content/references/metrics/common.md b/docs/content/references/prometheus-metrics/common.md similarity index 97% rename from docs/content/references/metrics/common.md rename to docs/content/references/prometheus-metrics/common.md index 2c76dad187..9364a552f4 100644 --- a/docs/content/references/metrics/common.md +++ b/docs/content/references/prometheus-metrics/common.md @@ -4,6 +4,8 @@ sidebar_position: 1 sidebar_label: System --- +Prometheus metrics generated by both, Aperture Agents and Aperture Controller. + ## Go Metrics Go process metrics can be exposed by enabling `enable_go_metrics` flag in diff --git a/docs/content/references/metrics/controller.md b/docs/content/references/prometheus-metrics/controller.md similarity index 96% rename from docs/content/references/metrics/controller.md rename to docs/content/references/prometheus-metrics/controller.md index 3e3e269ce1..efd00bfd6e 100644 --- a/docs/content/references/metrics/controller.md +++ b/docs/content/references/prometheus-metrics/controller.md @@ -4,6 +4,8 @@ sidebar_position: 3 sidebar_label: Controller --- +Prometheus metrics generated by Aperture Controller. + ## Signal ### Metrics From 11e8e127681719fdbfe5d31bedcda70f9758da64 Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Fri, 4 Nov 2022 16:41:35 -0700 Subject: [PATCH 4/5] flowcontrol: restructure codebase II (#898) ### Description of change Making room for adding more APIs (adapters, previews etc) under flowcontrol. ##### Checklist - [X] Tested in playground or other setup --- api/Makefile | 10 +- .../v1/check.proto} | 2 +- .../aperture/flowcontrol/check/v1/check.pb.go | 648 +++++++++--------- .../v1/check.pb.json.go} | 4 +- .../check/v1/check_deepcopy.gen.go | 2 +- .../v1/check_grpc.pb.go} | 10 +- cmd/sdk-validator/main.go | 2 +- cmd/sdk-validator/validator/flowcontrol.go | 2 +- cmd/sdk-validator/validator/provide.go | 2 +- cmd/sdk-validator/validator/trace.go | 2 +- go.mod | 3 + go.sum | 7 + .../internal/check_response_labels.go | 2 +- .../internal/check_response_labels_test.go | 2 +- .../metricsprocessor/internal/status.go | 2 +- .../metricsprocessor/internal/status_test.go | 2 +- .../metricsprocessor/processor.go | 2 +- .../metricsprocessor/processor_test.go | 2 +- .../concurrency/concurrency-limiter.go | 2 +- .../actuators/rate/rate-limiter.go | 2 +- pkg/policies/flowcontrol/engine.go | 6 +- pkg/policies/flowcontrol/engine_test.go | 2 +- pkg/policies/flowcontrol/iface/engine.go | 2 +- pkg/policies/flowcontrol/iface/limiter.go | 2 +- pkg/policies/flowcontrol/provide.go | 4 +- .../classifier/classification-engine.go | 6 +- .../resources/classifier/classifier_test.go | 2 +- .../flowcontrol/selectors/control-point.go | 2 +- .../base/base.go => service/check/check.go} | 4 +- .../check/check_suite_test.go} | 2 +- .../check/check_test.go} | 10 +- .../{api/base => service/check}/metrics.go | 17 +- .../{api/base => service/check}/provide.go | 4 +- .../{api => service}/envoy/authz-labels.go | 0 .../envoy/authz-labels_test.go | 2 +- .../{api => service}/envoy/authz.go | 14 +- .../envoy/authz_suite_test.go | 0 .../{api => service}/envoy/authz_test.go | 8 +- .../{api => service}/envoy/baggage/baggage.go | 0 .../envoy/baggage/baggage_suite_test.go | 2 +- .../{api => service}/envoy/provide.go | 0 .../flowcontrol/{api => service}/provide.go | 8 +- pkg/policies/mocks/mock_engine.go | 6 +- pkg/policies/mocks/mock_limiter.go | 14 +- .../proto/flowcontrol/check/v1/check.pb.go | 648 +++++++++--------- .../v1/check.pb.json.go} | 4 +- .../check/v1/check_deepcopy.gen.go | 2 +- .../v1/check_grpc.pb.go} | 10 +- sdks/aperture-go/sdk/client.go | 2 +- sdks/aperture-go/sdk/flow.go | 2 +- .../fluxninja/aperture/armeria/RpcUtils.java | 42 +- .../fluxninja/aperture/sdk/ApertureSDK.java | 66 +- .../aperture/sdk/ApertureSDKBuilder.java | 26 +- .../fluxninja/aperture/sdk/FeatureFlow.java | 12 +- .../flowcontrol/check/v1/CheckProto.java | 234 +++++++ .../{ => check}/v1/CheckRequest.java | 98 +-- .../{ => check}/v1/CheckRequestOrBuilder.java | 6 +- .../{ => check}/v1/CheckResponse.java | 586 ++++++++-------- .../v1/CheckResponseOrBuilder.java | 88 +-- .../{ => check}/v1/ClassifierInfo.java | 134 ++-- .../v1/ClassifierInfoOrBuilder.java | 12 +- .../{ => check}/v1/ControlPointInfo.java | 134 ++-- .../v1/ControlPointInfoOrBuilder.java | 12 +- .../v1/FlowControlServiceGrpc.java | 50 +- .../{ => check}/v1/FluxMeterInfo.java | 96 +-- .../v1/FluxMeterInfoOrBuilder.java | 6 +- .../{ => check}/v1/LimiterDecision.java | 490 ++++++------- .../check/v1/LimiterDecisionOrBuilder.java | 88 +++ .../flowcontrol/v1/FlowcontrolProto.java | 231 ------- .../v1/LimiterDecisionOrBuilder.java | 88 --- test/aperture_suite_test.go | 4 +- 71 files changed, 2018 insertions(+), 1980 deletions(-) rename api/aperture/flowcontrol/{v1/flowcontrol.proto => check/v1/check.proto} (98%) rename sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.go => api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.go (53%) rename api/gen/proto/go/aperture/flowcontrol/{v1/flowcontrol.pb.json.go => check/v1/check.pb.json.go} (97%) rename sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_deepcopy.gen.go => api/gen/proto/go/aperture/flowcontrol/check/v1/check_deepcopy.gen.go (99%) rename api/gen/proto/go/aperture/flowcontrol/{v1/flowcontrol_grpc.pb.go => check/v1/check_grpc.pb.go} (92%) rename pkg/policies/flowcontrol/{api/base/base.go => service/check/check.go} (98%) rename pkg/policies/flowcontrol/{api/base/base_suite_test.go => service/check/check_suite_test.go} (95%) rename pkg/policies/flowcontrol/{api/base/base_test.go => service/check/check_test.go} (92%) rename pkg/policies/flowcontrol/{api/base => service/check}/metrics.go (89%) rename pkg/policies/flowcontrol/{api/base => service/check}/provide.go (98%) rename pkg/policies/flowcontrol/{api => service}/envoy/authz-labels.go (100%) rename pkg/policies/flowcontrol/{api => service}/envoy/authz-labels_test.go (94%) rename pkg/policies/flowcontrol/{api => service}/envoy/authz.go (97%) rename pkg/policies/flowcontrol/{api => service}/envoy/authz_suite_test.go (100%) rename pkg/policies/flowcontrol/{api => service}/envoy/authz_test.go (95%) rename pkg/policies/flowcontrol/{api => service}/envoy/baggage/baggage.go (100%) rename pkg/policies/flowcontrol/{api => service}/envoy/baggage/baggage_suite_test.go (98%) rename pkg/policies/flowcontrol/{api => service}/envoy/provide.go (100%) rename pkg/policies/flowcontrol/{api => service}/provide.go (59%) rename api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.go => sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.go (53%) rename sdks/aperture-go/gen/proto/flowcontrol/{v1/flowcontrol.pb.json.go => check/v1/check.pb.json.go} (97%) rename api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_deepcopy.gen.go => sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_deepcopy.gen.go (99%) rename sdks/aperture-go/gen/proto/flowcontrol/{v1/flowcontrol_grpc.pb.go => check/v1/check_grpc.pb.go} (92%) create mode 100644 sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckProto.java rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/CheckRequest.java (84%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/CheckRequestOrBuilder.java (90%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/CheckResponse.java (78%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/CheckResponseOrBuilder.java (65%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/ClassifierInfo.java (83%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/ClassifierInfoOrBuilder.java (76%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/ControlPointInfo.java (76%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/ControlPointInfoOrBuilder.java (59%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/FlowControlServiceGrpc.java (85%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/FluxMeterInfo.java (78%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/FluxMeterInfoOrBuilder.java (79%) rename sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/{ => check}/v1/LimiterDecision.java (73%) create mode 100644 sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecisionOrBuilder.java delete mode 100644 sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowcontrolProto.java delete mode 100644 sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecisionOrBuilder.java diff --git a/api/Makefile b/api/Makefile index 11385ae808..ca348ba745 100644 --- a/api/Makefile +++ b/api/Makefile @@ -22,13 +22,11 @@ buf-generate: @find . -name \*.pb.go -exec protoc-go-inject-tag -input={} \; @#generate sdk flowcontrol stubs and copy them over @#golang - @rm -rf ../sdks/aperture-go/gen/proto/flowcontrol - @cp -R gen/proto/go/aperture/flowcontrol ../sdks/aperture-go/gen/proto/flowcontrol + @rm -rf ../sdks/aperture-go/gen/proto/flowcontrol/check + @cp -R gen/proto/go/aperture/flowcontrol/check ../sdks/aperture-go/gen/proto/flowcontrol/check @#java - @rm -rf ../sdks/aperture-java/src/main/java/com/fluxninja/generated - @cp -R gen/proto/java/com/fluxninja/generated ../sdks/aperture-java/src/main/java/com/fluxninja/generated - @rm -rf ../sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/* - @cp -R gen/proto/java/com/fluxninja/generated/aperture/flowcontrol ../sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol + @rm -rf ../sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/* + @cp -R gen/proto/java/com/fluxninja/generated/aperture/flowcontrol/check ../sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check @rm -rf gen/proto/java @#generate api docs @rm -rfd $(DOCS_OPENAPI) diff --git a/api/aperture/flowcontrol/v1/flowcontrol.proto b/api/aperture/flowcontrol/check/v1/check.proto similarity index 98% rename from api/aperture/flowcontrol/v1/flowcontrol.proto rename to api/aperture/flowcontrol/check/v1/check.proto index 5e3fb504c6..d1f495a081 100644 --- a/api/aperture/flowcontrol/v1/flowcontrol.proto +++ b/api/aperture/flowcontrol/check/v1/check.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package aperture.flowcontrol.v1; +package aperture.flowcontrol.check.v1; import "google/protobuf/timestamp.proto"; diff --git a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.go b/api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.go similarity index 53% rename from sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.go rename to api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.go index a1da4f6080..830029d01e 100644 --- a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.go +++ b/api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package flowcontrolv1 +package checkv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -64,11 +64,11 @@ func (x CheckResponse_Error) String() string { } func (CheckResponse_Error) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[0].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[0].Descriptor() } func (CheckResponse_Error) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[0] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[0] } func (x CheckResponse_Error) Number() protoreflect.EnumNumber { @@ -77,7 +77,7 @@ func (x CheckResponse_Error) Number() protoreflect.EnumNumber { // Deprecated: Use CheckResponse_Error.Descriptor instead. func (CheckResponse_Error) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1, 0} } // RejectReason contains fields that give further information about rejection. @@ -114,11 +114,11 @@ func (x CheckResponse_RejectReason) String() string { } func (CheckResponse_RejectReason) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[1].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[1].Descriptor() } func (CheckResponse_RejectReason) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[1] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[1] } func (x CheckResponse_RejectReason) Number() protoreflect.EnumNumber { @@ -127,7 +127,7 @@ func (x CheckResponse_RejectReason) Number() protoreflect.EnumNumber { // Deprecated: Use CheckResponse_RejectReason.Descriptor instead. func (CheckResponse_RejectReason) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1, 1} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1, 1} } // DecisionType contains fields that represent decision made by Check call. @@ -161,11 +161,11 @@ func (x CheckResponse_DecisionType) String() string { } func (CheckResponse_DecisionType) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[2].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[2].Descriptor() } func (CheckResponse_DecisionType) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[2] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[2] } func (x CheckResponse_DecisionType) Number() protoreflect.EnumNumber { @@ -174,7 +174,7 @@ func (x CheckResponse_DecisionType) Number() protoreflect.EnumNumber { // Deprecated: Use CheckResponse_DecisionType.Descriptor instead. func (CheckResponse_DecisionType) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1, 2} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1, 2} } // Type contains fields that represent type of ControlPointInfo. @@ -214,11 +214,11 @@ func (x ControlPointInfo_Type) String() string { } func (ControlPointInfo_Type) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[3].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[3].Descriptor() } func (ControlPointInfo_Type) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[3] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[3] } func (x ControlPointInfo_Type) Number() protoreflect.EnumNumber { @@ -227,7 +227,7 @@ func (x ControlPointInfo_Type) Number() protoreflect.EnumNumber { // Deprecated: Use ControlPointInfo_Type.Descriptor instead. func (ControlPointInfo_Type) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{2, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{2, 0} } // Error information. @@ -273,11 +273,11 @@ func (x ClassifierInfo_Error) String() string { } func (ClassifierInfo_Error) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[4].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[4].Descriptor() } func (ClassifierInfo_Error) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[4] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[4] } func (x ClassifierInfo_Error) Number() protoreflect.EnumNumber { @@ -286,7 +286,7 @@ func (x ClassifierInfo_Error) Number() protoreflect.EnumNumber { // Deprecated: Use ClassifierInfo_Error.Descriptor instead. func (ClassifierInfo_Error) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{3, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{3, 0} } type LimiterDecision_LimiterReason int32 @@ -319,11 +319,11 @@ func (x LimiterDecision_LimiterReason) String() string { } func (LimiterDecision_LimiterReason) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[5].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[5].Descriptor() } func (LimiterDecision_LimiterReason) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[5] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[5] } func (x LimiterDecision_LimiterReason) Number() protoreflect.EnumNumber { @@ -332,7 +332,7 @@ func (x LimiterDecision_LimiterReason) Number() protoreflect.EnumNumber { // Deprecated: Use LimiterDecision_LimiterReason.Descriptor instead. func (LimiterDecision_LimiterReason) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4, 0} } // CheckRequest contains fields required to perform Check call. @@ -348,7 +348,7 @@ type CheckRequest struct { func (x *CheckRequest) Reset() { *x = CheckRequest{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[0] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -361,7 +361,7 @@ func (x *CheckRequest) String() string { func (*CheckRequest) ProtoMessage() {} func (x *CheckRequest) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[0] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -374,7 +374,7 @@ func (x *CheckRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead. func (*CheckRequest) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{0} } func (x *CheckRequest) GetFeature() string { @@ -402,7 +402,7 @@ type CheckResponse struct { // end timestamp End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // error information. - Error CheckResponse_Error `protobuf:"varint,3,opt,name=error,proto3,enum=aperture.flowcontrol.v1.CheckResponse_Error" json:"error,omitempty"` + Error CheckResponse_Error `protobuf:"varint,3,opt,name=error,proto3,enum=aperture.flowcontrol.check.v1.CheckResponse_Error" json:"error,omitempty"` // services that matched Services []string `protobuf:"bytes,4,rep,name=services,proto3" json:"services,omitempty"` // control_point of request @@ -412,9 +412,9 @@ type CheckResponse struct { // telemetry_flow_labels are labels for telemetry purpose. The keys in telemetry_flow_labels is subset of flow_label_keys. TelemetryFlowLabels map[string]string `protobuf:"bytes,7,rep,name=telemetry_flow_labels,json=telemetryFlowLabels,proto3" json:"telemetry_flow_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // decision_type contains what the decision was. - DecisionType CheckResponse_DecisionType `protobuf:"varint,8,opt,name=decision_type,json=decisionType,proto3,enum=aperture.flowcontrol.v1.CheckResponse_DecisionType" json:"decision_type,omitempty"` + DecisionType CheckResponse_DecisionType `protobuf:"varint,8,opt,name=decision_type,json=decisionType,proto3,enum=aperture.flowcontrol.check.v1.CheckResponse_DecisionType" json:"decision_type,omitempty"` // reject_reason contains the reason for the rejection. - RejectReason CheckResponse_RejectReason `protobuf:"varint,9,opt,name=reject_reason,json=rejectReason,proto3,enum=aperture.flowcontrol.v1.CheckResponse_RejectReason" json:"reject_reason,omitempty"` + RejectReason CheckResponse_RejectReason `protobuf:"varint,9,opt,name=reject_reason,json=rejectReason,proto3,enum=aperture.flowcontrol.check.v1.CheckResponse_RejectReason" json:"reject_reason,omitempty"` // classifiers that were matched for this request. ClassifierInfos []*ClassifierInfo `protobuf:"bytes,10,rep,name=classifier_infos,json=classifierInfos,proto3" json:"classifier_infos,omitempty"` // flux meters that were matched for this request. @@ -426,7 +426,7 @@ type CheckResponse struct { func (x *CheckResponse) Reset() { *x = CheckResponse{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[1] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -439,7 +439,7 @@ func (x *CheckResponse) String() string { func (*CheckResponse) ProtoMessage() {} func (x *CheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[1] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -452,7 +452,7 @@ func (x *CheckResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead. func (*CheckResponse) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1} } func (x *CheckResponse) GetStart() *timestamppb.Timestamp { @@ -544,14 +544,14 @@ type ControlPointInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type ControlPointInfo_Type `protobuf:"varint,1,opt,name=type,proto3,enum=aperture.flowcontrol.v1.ControlPointInfo_Type" json:"type,omitempty"` + Type ControlPointInfo_Type `protobuf:"varint,1,opt,name=type,proto3,enum=aperture.flowcontrol.check.v1.ControlPointInfo_Type" json:"type,omitempty"` Feature string `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"` } func (x *ControlPointInfo) Reset() { *x = ControlPointInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[2] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -564,7 +564,7 @@ func (x *ControlPointInfo) String() string { func (*ControlPointInfo) ProtoMessage() {} func (x *ControlPointInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[2] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -577,7 +577,7 @@ func (x *ControlPointInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ControlPointInfo.ProtoReflect.Descriptor instead. func (*ControlPointInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{2} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{2} } func (x *ControlPointInfo) GetType() ControlPointInfo_Type { @@ -604,13 +604,13 @@ type ClassifierInfo struct { PolicyHash string `protobuf:"bytes,2,opt,name=policy_hash,json=policyHash,proto3" json:"policy_hash,omitempty"` ClassifierIndex int64 `protobuf:"varint,3,opt,name=classifier_index,json=classifierIndex,proto3" json:"classifier_index,omitempty"` LabelKey string `protobuf:"bytes,4,opt,name=label_key,json=labelKey,proto3" json:"label_key,omitempty"` - Error ClassifierInfo_Error `protobuf:"varint,5,opt,name=error,proto3,enum=aperture.flowcontrol.v1.ClassifierInfo_Error" json:"error,omitempty"` + Error ClassifierInfo_Error `protobuf:"varint,5,opt,name=error,proto3,enum=aperture.flowcontrol.check.v1.ClassifierInfo_Error" json:"error,omitempty"` } func (x *ClassifierInfo) Reset() { *x = ClassifierInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[3] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -623,7 +623,7 @@ func (x *ClassifierInfo) String() string { func (*ClassifierInfo) ProtoMessage() {} func (x *ClassifierInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[3] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -636,7 +636,7 @@ func (x *ClassifierInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierInfo.ProtoReflect.Descriptor instead. func (*ClassifierInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{3} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{3} } func (x *ClassifierInfo) GetPolicyName() string { @@ -684,7 +684,7 @@ type LimiterDecision struct { PolicyHash string `protobuf:"bytes,2,opt,name=policy_hash,json=policyHash,proto3" json:"policy_hash,omitempty"` ComponentIndex int64 `protobuf:"varint,3,opt,name=component_index,json=componentIndex,proto3" json:"component_index,omitempty"` Dropped bool `protobuf:"varint,4,opt,name=dropped,proto3" json:"dropped,omitempty"` - Reason LimiterDecision_LimiterReason `protobuf:"varint,5,opt,name=reason,proto3,enum=aperture.flowcontrol.v1.LimiterDecision_LimiterReason" json:"reason,omitempty"` + Reason LimiterDecision_LimiterReason `protobuf:"varint,5,opt,name=reason,proto3,enum=aperture.flowcontrol.check.v1.LimiterDecision_LimiterReason" json:"reason,omitempty"` // Types that are assignable to Details: // *LimiterDecision_RateLimiterInfo_ // *LimiterDecision_ConcurrencyLimiterInfo_ @@ -694,7 +694,7 @@ type LimiterDecision struct { func (x *LimiterDecision) Reset() { *x = LimiterDecision{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -707,7 +707,7 @@ func (x *LimiterDecision) String() string { func (*LimiterDecision) ProtoMessage() {} func (x *LimiterDecision) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -720,7 +720,7 @@ func (x *LimiterDecision) ProtoReflect() protoreflect.Message { // Deprecated: Use LimiterDecision.ProtoReflect.Descriptor instead. func (*LimiterDecision) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4} } func (x *LimiterDecision) GetPolicyName() string { @@ -807,7 +807,7 @@ type FluxMeterInfo struct { func (x *FluxMeterInfo) Reset() { *x = FluxMeterInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[5] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -820,7 +820,7 @@ func (x *FluxMeterInfo) String() string { func (*FluxMeterInfo) ProtoMessage() {} func (x *FluxMeterInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[5] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -833,7 +833,7 @@ func (x *FluxMeterInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use FluxMeterInfo.ProtoReflect.Descriptor instead. func (*FluxMeterInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{5} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{5} } func (x *FluxMeterInfo) GetFluxMeterName() string { @@ -856,7 +856,7 @@ type LimiterDecision_RateLimiterInfo struct { func (x *LimiterDecision_RateLimiterInfo) Reset() { *x = LimiterDecision_RateLimiterInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[8] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -869,7 +869,7 @@ func (x *LimiterDecision_RateLimiterInfo) String() string { func (*LimiterDecision_RateLimiterInfo) ProtoMessage() {} func (x *LimiterDecision_RateLimiterInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[8] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -882,7 +882,7 @@ func (x *LimiterDecision_RateLimiterInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use LimiterDecision_RateLimiterInfo.ProtoReflect.Descriptor instead. func (*LimiterDecision_RateLimiterInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4, 0} } func (x *LimiterDecision_RateLimiterInfo) GetRemaining() int64 { @@ -917,7 +917,7 @@ type LimiterDecision_ConcurrencyLimiterInfo struct { func (x *LimiterDecision_ConcurrencyLimiterInfo) Reset() { *x = LimiterDecision_ConcurrencyLimiterInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[9] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -930,7 +930,7 @@ func (x *LimiterDecision_ConcurrencyLimiterInfo) String() string { func (*LimiterDecision_ConcurrencyLimiterInfo) ProtoMessage() {} func (x *LimiterDecision_ConcurrencyLimiterInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[9] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -943,7 +943,7 @@ func (x *LimiterDecision_ConcurrencyLimiterInfo) ProtoReflect() protoreflect.Mes // Deprecated: Use LimiterDecision_ConcurrencyLimiterInfo.ProtoReflect.Descriptor instead. func (*LimiterDecision_ConcurrencyLimiterInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4, 1} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4, 1} } func (x *LimiterDecision_ConcurrencyLimiterInfo) GetWorkloadIndex() string { @@ -953,274 +953,282 @@ func (x *LimiterDecision_ConcurrencyLimiterInfo) GetWorkloadIndex() string { return "" } -var File_aperture_flowcontrol_v1_flowcontrol_proto protoreflect.FileDescriptor +var File_aperture_flowcontrol_check_v1_check_proto protoreflect.FileDescriptor -var file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc = []byte{ +var file_aperture_flowcontrol_check_v1_check_proto_rawDesc = []byte{ 0x0a, 0x29, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x61, 0x70, 0x65, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x12, 0x49, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x31, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xad, 0x0a, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, - 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, - 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x6f, 0x77, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x73, 0x0a, 0x15, 0x74, 0x65, 0x6c, - 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, - 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x74, 0x65, 0x6c, 0x65, 0x6d, - 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, - 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, - 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x33, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x61, - 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x0c, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xdd, 0x0a, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x03, 0x65, 0x6e, 0x64, 0x12, 0x48, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, + 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x5d, 0x0a, 0x12, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x12, 0x79, 0x0a, 0x15, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x45, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x5e, 0x0a, 0x0d, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x0d, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x10, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, + 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x10, 0x66, 0x6c, 0x75, 0x78, 0x5f, 0x6d, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x56, 0x0a, 0x10, 0x66, 0x6c, 0x75, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x75, 0x78, 0x4d, - 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, - 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x55, 0x0a, 0x11, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, - 0x46, 0x0a, 0x18, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, - 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, - 0x4e, 0x47, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, - 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, - 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, - 0x4d, 0x41, 0x50, 0x5f, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, - 0x5f, 0x52, 0x45, 0x47, 0x4f, 0x5f, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x59, 0x10, 0x05, 0x22, - 0x6d, 0x0a, 0x0c, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, - 0x16, 0x0a, 0x12, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, - 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x4a, 0x45, 0x43, - 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, - 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x4a, 0x45, 0x43, - 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x43, 0x55, 0x52, 0x52, - 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x46, - 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, - 0x0a, 0x16, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, - 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, - 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x22, 0xbf, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x42, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x61, 0x70, 0x65, 0x72, + 0x32, 0x2c, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, + 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x5b, + 0x0a, 0x11, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4d, 0x0a, 0x04, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, - 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x41, 0x54, - 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, - 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0x84, 0x03, 0x0a, 0x0e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, + 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x46, 0x0a, 0x18, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, + 0x0a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x23, 0x0a, + 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, + 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x5f, + 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x47, + 0x4f, 0x5f, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x59, 0x10, 0x05, 0x22, 0x6d, 0x0a, 0x0c, 0x52, + 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x52, + 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, + 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, + 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x43, 0x59, + 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x46, 0x0a, 0x0c, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, + 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, + 0x50, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, + 0x10, 0x01, 0x22, 0xc5, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4d, 0x0a, 0x04, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, + 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x49, 0x4e, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0x8a, 0x03, 0x0a, 0x0e, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x29, 0x0a, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0xa2, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x0a, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x56, 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x4d, 0x50, + 0x54, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1d, + 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x41, 0x4d, 0x42, 0x49, 0x47, 0x55, 0x4f, 0x55, + 0x53, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a, + 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x45, 0x58, 0x50, + 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, + 0x54, 0x5f, 0x4d, 0x41, 0x50, 0x10, 0x05, 0x22, 0xde, 0x05, 0x0a, 0x0f, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, - 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa2, 0x01, 0x0a, 0x05, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, - 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x56, - 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, - 0x54, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x41, 0x4d, 0x42, 0x49, 0x47, 0x55, 0x4f, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, - 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, - 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, - 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, - 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4d, 0x41, 0x50, 0x10, 0x05, 0x22, - 0xcb, 0x05, 0x0a, 0x0f, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x68, - 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, - 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x12, 0x4e, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, - 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, - 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x66, 0x0a, 0x11, 0x72, 0x61, 0x74, 0x65, - 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x61, - 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, - 0x0f, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x7b, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, + 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, + 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, + 0x12, 0x54, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x3c, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x6c, 0x0a, 0x11, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3e, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x6f, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x81, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, + 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, + 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x5f, 0x0a, 0x0f, 0x52, 0x61, 0x74, 0x65, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, - 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x5f, 0x0a, - 0x0f, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x1a, 0x3f, - 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, - 0x51, 0x0a, 0x0d, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, - 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x20, 0x0a, 0x1c, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, - 0x4f, 0x4e, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, - 0x10, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x37, 0x0a, - 0x0d, 0x46, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, - 0x0a, 0x0f, 0x66, 0x6c, 0x75, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, - 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x6e, 0x0a, 0x12, 0x46, 0x6c, 0x6f, 0x77, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x05, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, - 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, - 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x97, 0x02, 0x0a, 0x2f, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x75, 0x78, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x64, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x46, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x54, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x75, 0x78, 0x6e, - 0x69, 0x6e, 0x6a, 0x61, 0x2f, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x61, - 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x46, 0x58, 0xaa, 0x02, 0x17, 0x41, 0x70, 0x65, - 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, - 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x23, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x3a, - 0x3a, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 0x3a, 0x56, 0x31, + 0x6e, 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, + 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x51, 0x0a, 0x0d, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, + 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x4c, + 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4b, 0x45, + 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x42, 0x09, 0x0a, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x37, 0x0a, 0x0d, 0x46, 0x6c, 0x75, 0x78, + 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x6c, 0x75, + 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x32, 0x7a, 0x0a, 0x12, 0x46, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb0, 0x02, + 0x0a, 0x35, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x75, 0x78, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, + 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x54, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x75, 0x78, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x2f, 0x61, 0x70, 0x65, 0x72, + 0x74, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x46, + 0x43, 0xaa, 0x02, 0x1d, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x46, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x1d, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, 0x46, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x29, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, 0x46, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x20, + 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x3a, 0x3a, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 0x3a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescOnce sync.Once - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData = file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc + file_aperture_flowcontrol_check_v1_check_proto_rawDescOnce sync.Once + file_aperture_flowcontrol_check_v1_check_proto_rawDescData = file_aperture_flowcontrol_check_v1_check_proto_rawDesc ) -func file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP() []byte { - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescOnce.Do(func() { - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData = protoimpl.X.CompressGZIP(file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData) +func file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP() []byte { + file_aperture_flowcontrol_check_v1_check_proto_rawDescOnce.Do(func() { + file_aperture_flowcontrol_check_v1_check_proto_rawDescData = protoimpl.X.CompressGZIP(file_aperture_flowcontrol_check_v1_check_proto_rawDescData) }) - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData -} - -var file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_aperture_flowcontrol_v1_flowcontrol_proto_goTypes = []interface{}{ - (CheckResponse_Error)(0), // 0: aperture.flowcontrol.v1.CheckResponse.Error - (CheckResponse_RejectReason)(0), // 1: aperture.flowcontrol.v1.CheckResponse.RejectReason - (CheckResponse_DecisionType)(0), // 2: aperture.flowcontrol.v1.CheckResponse.DecisionType - (ControlPointInfo_Type)(0), // 3: aperture.flowcontrol.v1.ControlPointInfo.Type - (ClassifierInfo_Error)(0), // 4: aperture.flowcontrol.v1.ClassifierInfo.Error - (LimiterDecision_LimiterReason)(0), // 5: aperture.flowcontrol.v1.LimiterDecision.LimiterReason - (*CheckRequest)(nil), // 6: aperture.flowcontrol.v1.CheckRequest - (*CheckResponse)(nil), // 7: aperture.flowcontrol.v1.CheckResponse - (*ControlPointInfo)(nil), // 8: aperture.flowcontrol.v1.ControlPointInfo - (*ClassifierInfo)(nil), // 9: aperture.flowcontrol.v1.ClassifierInfo - (*LimiterDecision)(nil), // 10: aperture.flowcontrol.v1.LimiterDecision - (*FluxMeterInfo)(nil), // 11: aperture.flowcontrol.v1.FluxMeterInfo - nil, // 12: aperture.flowcontrol.v1.CheckRequest.LabelsEntry - nil, // 13: aperture.flowcontrol.v1.CheckResponse.TelemetryFlowLabelsEntry - (*LimiterDecision_RateLimiterInfo)(nil), // 14: aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo - (*LimiterDecision_ConcurrencyLimiterInfo)(nil), // 15: aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo + return file_aperture_flowcontrol_check_v1_check_proto_rawDescData +} + +var file_aperture_flowcontrol_check_v1_check_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_aperture_flowcontrol_check_v1_check_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_aperture_flowcontrol_check_v1_check_proto_goTypes = []interface{}{ + (CheckResponse_Error)(0), // 0: aperture.flowcontrol.check.v1.CheckResponse.Error + (CheckResponse_RejectReason)(0), // 1: aperture.flowcontrol.check.v1.CheckResponse.RejectReason + (CheckResponse_DecisionType)(0), // 2: aperture.flowcontrol.check.v1.CheckResponse.DecisionType + (ControlPointInfo_Type)(0), // 3: aperture.flowcontrol.check.v1.ControlPointInfo.Type + (ClassifierInfo_Error)(0), // 4: aperture.flowcontrol.check.v1.ClassifierInfo.Error + (LimiterDecision_LimiterReason)(0), // 5: aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason + (*CheckRequest)(nil), // 6: aperture.flowcontrol.check.v1.CheckRequest + (*CheckResponse)(nil), // 7: aperture.flowcontrol.check.v1.CheckResponse + (*ControlPointInfo)(nil), // 8: aperture.flowcontrol.check.v1.ControlPointInfo + (*ClassifierInfo)(nil), // 9: aperture.flowcontrol.check.v1.ClassifierInfo + (*LimiterDecision)(nil), // 10: aperture.flowcontrol.check.v1.LimiterDecision + (*FluxMeterInfo)(nil), // 11: aperture.flowcontrol.check.v1.FluxMeterInfo + nil, // 12: aperture.flowcontrol.check.v1.CheckRequest.LabelsEntry + nil, // 13: aperture.flowcontrol.check.v1.CheckResponse.TelemetryFlowLabelsEntry + (*LimiterDecision_RateLimiterInfo)(nil), // 14: aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo + (*LimiterDecision_ConcurrencyLimiterInfo)(nil), // 15: aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp } -var file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs = []int32{ - 12, // 0: aperture.flowcontrol.v1.CheckRequest.labels:type_name -> aperture.flowcontrol.v1.CheckRequest.LabelsEntry - 16, // 1: aperture.flowcontrol.v1.CheckResponse.start:type_name -> google.protobuf.Timestamp - 16, // 2: aperture.flowcontrol.v1.CheckResponse.end:type_name -> google.protobuf.Timestamp - 0, // 3: aperture.flowcontrol.v1.CheckResponse.error:type_name -> aperture.flowcontrol.v1.CheckResponse.Error - 8, // 4: aperture.flowcontrol.v1.CheckResponse.control_point_info:type_name -> aperture.flowcontrol.v1.ControlPointInfo - 13, // 5: aperture.flowcontrol.v1.CheckResponse.telemetry_flow_labels:type_name -> aperture.flowcontrol.v1.CheckResponse.TelemetryFlowLabelsEntry - 2, // 6: aperture.flowcontrol.v1.CheckResponse.decision_type:type_name -> aperture.flowcontrol.v1.CheckResponse.DecisionType - 1, // 7: aperture.flowcontrol.v1.CheckResponse.reject_reason:type_name -> aperture.flowcontrol.v1.CheckResponse.RejectReason - 9, // 8: aperture.flowcontrol.v1.CheckResponse.classifier_infos:type_name -> aperture.flowcontrol.v1.ClassifierInfo - 11, // 9: aperture.flowcontrol.v1.CheckResponse.flux_meter_infos:type_name -> aperture.flowcontrol.v1.FluxMeterInfo - 10, // 10: aperture.flowcontrol.v1.CheckResponse.limiter_decisions:type_name -> aperture.flowcontrol.v1.LimiterDecision - 3, // 11: aperture.flowcontrol.v1.ControlPointInfo.type:type_name -> aperture.flowcontrol.v1.ControlPointInfo.Type - 4, // 12: aperture.flowcontrol.v1.ClassifierInfo.error:type_name -> aperture.flowcontrol.v1.ClassifierInfo.Error - 5, // 13: aperture.flowcontrol.v1.LimiterDecision.reason:type_name -> aperture.flowcontrol.v1.LimiterDecision.LimiterReason - 14, // 14: aperture.flowcontrol.v1.LimiterDecision.rate_limiter_info:type_name -> aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo - 15, // 15: aperture.flowcontrol.v1.LimiterDecision.concurrency_limiter_info:type_name -> aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo - 6, // 16: aperture.flowcontrol.v1.FlowControlService.Check:input_type -> aperture.flowcontrol.v1.CheckRequest - 7, // 17: aperture.flowcontrol.v1.FlowControlService.Check:output_type -> aperture.flowcontrol.v1.CheckResponse +var file_aperture_flowcontrol_check_v1_check_proto_depIdxs = []int32{ + 12, // 0: aperture.flowcontrol.check.v1.CheckRequest.labels:type_name -> aperture.flowcontrol.check.v1.CheckRequest.LabelsEntry + 16, // 1: aperture.flowcontrol.check.v1.CheckResponse.start:type_name -> google.protobuf.Timestamp + 16, // 2: aperture.flowcontrol.check.v1.CheckResponse.end:type_name -> google.protobuf.Timestamp + 0, // 3: aperture.flowcontrol.check.v1.CheckResponse.error:type_name -> aperture.flowcontrol.check.v1.CheckResponse.Error + 8, // 4: aperture.flowcontrol.check.v1.CheckResponse.control_point_info:type_name -> aperture.flowcontrol.check.v1.ControlPointInfo + 13, // 5: aperture.flowcontrol.check.v1.CheckResponse.telemetry_flow_labels:type_name -> aperture.flowcontrol.check.v1.CheckResponse.TelemetryFlowLabelsEntry + 2, // 6: aperture.flowcontrol.check.v1.CheckResponse.decision_type:type_name -> aperture.flowcontrol.check.v1.CheckResponse.DecisionType + 1, // 7: aperture.flowcontrol.check.v1.CheckResponse.reject_reason:type_name -> aperture.flowcontrol.check.v1.CheckResponse.RejectReason + 9, // 8: aperture.flowcontrol.check.v1.CheckResponse.classifier_infos:type_name -> aperture.flowcontrol.check.v1.ClassifierInfo + 11, // 9: aperture.flowcontrol.check.v1.CheckResponse.flux_meter_infos:type_name -> aperture.flowcontrol.check.v1.FluxMeterInfo + 10, // 10: aperture.flowcontrol.check.v1.CheckResponse.limiter_decisions:type_name -> aperture.flowcontrol.check.v1.LimiterDecision + 3, // 11: aperture.flowcontrol.check.v1.ControlPointInfo.type:type_name -> aperture.flowcontrol.check.v1.ControlPointInfo.Type + 4, // 12: aperture.flowcontrol.check.v1.ClassifierInfo.error:type_name -> aperture.flowcontrol.check.v1.ClassifierInfo.Error + 5, // 13: aperture.flowcontrol.check.v1.LimiterDecision.reason:type_name -> aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason + 14, // 14: aperture.flowcontrol.check.v1.LimiterDecision.rate_limiter_info:type_name -> aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo + 15, // 15: aperture.flowcontrol.check.v1.LimiterDecision.concurrency_limiter_info:type_name -> aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo + 6, // 16: aperture.flowcontrol.check.v1.FlowControlService.Check:input_type -> aperture.flowcontrol.check.v1.CheckRequest + 7, // 17: aperture.flowcontrol.check.v1.FlowControlService.Check:output_type -> aperture.flowcontrol.check.v1.CheckResponse 17, // [17:18] is the sub-list for method output_type 16, // [16:17] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name @@ -1228,13 +1236,13 @@ var file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs = []int32{ 0, // [0:16] is the sub-list for field type_name } -func init() { file_aperture_flowcontrol_v1_flowcontrol_proto_init() } -func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { - if File_aperture_flowcontrol_v1_flowcontrol_proto != nil { +func init() { file_aperture_flowcontrol_check_v1_check_proto_init() } +func file_aperture_flowcontrol_check_v1_check_proto_init() { + if File_aperture_flowcontrol_check_v1_check_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CheckRequest); i { case 0: return &v.state @@ -1246,7 +1254,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CheckResponse); i { case 0: return &v.state @@ -1258,7 +1266,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ControlPointInfo); i { case 0: return &v.state @@ -1270,7 +1278,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassifierInfo); i { case 0: return &v.state @@ -1282,7 +1290,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LimiterDecision); i { case 0: return &v.state @@ -1294,7 +1302,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FluxMeterInfo); i { case 0: return &v.state @@ -1306,7 +1314,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LimiterDecision_RateLimiterInfo); i { case 0: return &v.state @@ -1318,7 +1326,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LimiterDecision_ConcurrencyLimiterInfo); i { case 0: return &v.state @@ -1331,7 +1339,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { } } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4].OneofWrappers = []interface{}{ (*LimiterDecision_RateLimiterInfo_)(nil), (*LimiterDecision_ConcurrencyLimiterInfo_)(nil), } @@ -1339,19 +1347,19 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc, + RawDescriptor: file_aperture_flowcontrol_check_v1_check_proto_rawDesc, NumEnums: 6, NumMessages: 10, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_aperture_flowcontrol_v1_flowcontrol_proto_goTypes, - DependencyIndexes: file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs, - EnumInfos: file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes, - MessageInfos: file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes, + GoTypes: file_aperture_flowcontrol_check_v1_check_proto_goTypes, + DependencyIndexes: file_aperture_flowcontrol_check_v1_check_proto_depIdxs, + EnumInfos: file_aperture_flowcontrol_check_v1_check_proto_enumTypes, + MessageInfos: file_aperture_flowcontrol_check_v1_check_proto_msgTypes, }.Build() - File_aperture_flowcontrol_v1_flowcontrol_proto = out.File - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc = nil - file_aperture_flowcontrol_v1_flowcontrol_proto_goTypes = nil - file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs = nil + File_aperture_flowcontrol_check_v1_check_proto = out.File + file_aperture_flowcontrol_check_v1_check_proto_rawDesc = nil + file_aperture_flowcontrol_check_v1_check_proto_goTypes = nil + file_aperture_flowcontrol_check_v1_check_proto_depIdxs = nil } diff --git a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.json.go b/api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.json.go similarity index 97% rename from api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.json.go rename to api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.json.go index 3033b66043..a31b97dfe4 100644 --- a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.json.go +++ b/api/gen/proto/go/aperture/flowcontrol/check/v1/check.pb.json.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package flowcontrolv1 +package checkv1 import ( "google.golang.org/protobuf/encoding/protojson" diff --git a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_deepcopy.gen.go b/api/gen/proto/go/aperture/flowcontrol/check/v1/check_deepcopy.gen.go similarity index 99% rename from sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_deepcopy.gen.go rename to api/gen/proto/go/aperture/flowcontrol/check/v1/check_deepcopy.gen.go index fadafe06f9..200f7a5004 100644 --- a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_deepcopy.gen.go +++ b/api/gen/proto/go/aperture/flowcontrol/check/v1/check_deepcopy.gen.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-deepcopy. DO NOT EDIT. -package flowcontrolv1 +package checkv1 import ( proto "google.golang.org/protobuf/proto" diff --git a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_grpc.pb.go b/api/gen/proto/go/aperture/flowcontrol/check/v1/check_grpc.pb.go similarity index 92% rename from api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_grpc.pb.go rename to api/gen/proto/go/aperture/flowcontrol/check/v1/check_grpc.pb.go index d5afe19ccf..008a323031 100644 --- a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_grpc.pb.go +++ b/api/gen/proto/go/aperture/flowcontrol/check/v1/check_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -package flowcontrolv1 +package checkv1 import ( context "context" @@ -32,7 +32,7 @@ func NewFlowControlServiceClient(cc grpc.ClientConnInterface) FlowControlService func (c *flowControlServiceClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) { out := new(CheckResponse) - err := c.cc.Invoke(ctx, "/aperture.flowcontrol.v1.FlowControlService/Check", in, out, opts...) + err := c.cc.Invoke(ctx, "/aperture.flowcontrol.check.v1.FlowControlService/Check", in, out, opts...) if err != nil { return nil, err } @@ -76,7 +76,7 @@ func _FlowControlService_Check_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/aperture.flowcontrol.v1.FlowControlService/Check", + FullMethod: "/aperture.flowcontrol.check.v1.FlowControlService/Check", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(FlowControlServiceServer).Check(ctx, req.(*CheckRequest)) @@ -88,7 +88,7 @@ func _FlowControlService_Check_Handler(srv interface{}, ctx context.Context, dec // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var FlowControlService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "aperture.flowcontrol.v1.FlowControlService", + ServiceName: "aperture.flowcontrol.check.v1.FlowControlService", HandlerType: (*FlowControlServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -97,5 +97,5 @@ var FlowControlService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "aperture/flowcontrol/v1/flowcontrol.proto", + Metadata: "aperture/flowcontrol/check/v1/check.proto", } diff --git a/cmd/sdk-validator/main.go b/cmd/sdk-validator/main.go index c294488b0e..30a9d5f388 100644 --- a/cmd/sdk-validator/main.go +++ b/cmd/sdk-validator/main.go @@ -20,7 +20,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/reflection" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/cmd/sdk-validator/validator" "github.com/fluxninja/aperture/pkg/log" ) diff --git a/cmd/sdk-validator/validator/flowcontrol.go b/cmd/sdk-validator/validator/flowcontrol.go index 4f64ef6a92..717afe6a38 100644 --- a/cmd/sdk-validator/validator/flowcontrol.go +++ b/cmd/sdk-validator/validator/flowcontrol.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/peer" "google.golang.org/protobuf/types/known/timestamppb" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/log" ) diff --git a/cmd/sdk-validator/validator/provide.go b/cmd/sdk-validator/validator/provide.go index 64a09b4930..731bf1ad5c 100644 --- a/cmd/sdk-validator/validator/provide.go +++ b/cmd/sdk-validator/validator/provide.go @@ -4,7 +4,7 @@ import ( "go.uber.org/fx" "google.golang.org/grpc" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/log" ) diff --git a/cmd/sdk-validator/validator/trace.go b/cmd/sdk-validator/validator/trace.go index faf4e75d6b..6301e4859d 100644 --- a/cmd/sdk-validator/validator/trace.go +++ b/cmd/sdk-validator/validator/trace.go @@ -8,7 +8,7 @@ import ( "go.uber.org/multierr" "google.golang.org/protobuf/encoding/protojson" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/otelcollector" ) diff --git a/go.mod b/go.mod index 071b7e25f2..823096e50b 100644 --- a/go.mod +++ b/go.mod @@ -104,6 +104,8 @@ require ( github.com/prometheus/prometheus v0.39.1 // indirect github.com/tchap/go-patricia/v2 v2.3.1 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.11.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1 // indirect golang.org/x/tools v0.2.0 // indirect gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect gonum.org/v1/gonum v0.12.0 // indirect @@ -256,6 +258,7 @@ require ( go.opentelemetry.io/collector/semconv v0.63.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.36.4 // indirect go.opentelemetry.io/contrib/zpages v0.36.4 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1 go.opentelemetry.io/otel/exporters/prometheus v0.33.0 // indirect go.opentelemetry.io/otel/metric v0.33.0 // indirect go.opentelemetry.io/otel/sdk v1.11.1 // indirect diff --git a/go.sum b/go.sum index 9e1fe6e28f..901039eb22 100644 --- a/go.sum +++ b/go.sum @@ -841,6 +841,13 @@ go.opentelemetry.io/contrib/zpages v0.36.4 h1:Z2VK5WsDhWs9VwZ1p0TM5RyusTOgAQfdMM go.opentelemetry.io/contrib/zpages v0.36.4/go.mod h1:h1gnOu0cOfDGEncNgLsjQ5H/9eAzt9LXsa1WvH7I5KU= go.opentelemetry.io/otel v1.11.1 h1:4WLLAmcfkmDk2ukNXJyq3/kiz/3UzCaYq6PskJsaou4= go.opentelemetry.io/otel v1.11.1/go.mod h1:1nNhXBbWSD0nsL38H6btgnFN2k4i0sNLHNNMZMSbUGE= +go.opentelemetry.io/otel/exporters/otlp v0.20.0 h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85vbdQU/nVfxDyqg= +go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1 h1:X2GndnMCsUPh6CiY2a+frAbNsXaPLbB0soHRYhAZ5Ig= +go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1/go.mod h1:i8vjiSzbiUC7wOQplijSXMYUpNM93DtlS5CbUT+C6oQ= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1 h1:MEQNafcNCB0uQIti/oHgU7CZpUMYQ7qigBwMVKycHvc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1/go.mod h1:19O5I2U5iys38SsmT2uDJja/300woyzE1KPIQxEUBUc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1 h1:LYyG/f1W/jzAix16jbksJfMQFpOH/Ma6T639pVPMgfI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1/go.mod h1:QrRRQiY3kzAoYPNLP0W/Ikg0gR6V3LMc+ODSxr7yyvg= go.opentelemetry.io/otel/exporters/prometheus v0.33.0 h1:xXhPj7SLKWU5/Zd4Hxmd+X1C4jdmvc0Xy+kvjFx2z60= go.opentelemetry.io/otel/exporters/prometheus v0.33.0/go.mod h1:ZSmYfKdYWEdSDBB4njLBIwTf4AU2JNsH3n2quVQDebI= go.opentelemetry.io/otel/metric v0.33.0 h1:xQAyl7uGEYvrLAiV/09iTJlp1pZnQ9Wl793qbVvED1E= diff --git a/pkg/otelcollector/metricsprocessor/internal/check_response_labels.go b/pkg/otelcollector/metricsprocessor/internal/check_response_labels.go index f56aaef387..0a054e0134 100644 --- a/pkg/otelcollector/metricsprocessor/internal/check_response_labels.go +++ b/pkg/otelcollector/metricsprocessor/internal/check_response_labels.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/rs/zerolog" "go.opentelemetry.io/collector/pdata/pcommon" diff --git a/pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go b/pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go index e242db9668..f48c8cbbf1 100644 --- a/pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go +++ b/pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go @@ -8,7 +8,7 @@ import ( "go.opentelemetry.io/collector/pdata/pcommon" "google.golang.org/protobuf/types/known/timestamppb" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/otelcollector" "github.com/fluxninja/aperture/pkg/otelcollector/metricsprocessor/internal" ) diff --git a/pkg/otelcollector/metricsprocessor/internal/status.go b/pkg/otelcollector/metricsprocessor/internal/status.go index 9a7ac84520..a1bf95b76d 100644 --- a/pkg/otelcollector/metricsprocessor/internal/status.go +++ b/pkg/otelcollector/metricsprocessor/internal/status.go @@ -5,7 +5,7 @@ import ( "go.opentelemetry.io/collector/pdata/pcommon" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/metrics" "github.com/fluxninja/aperture/pkg/otelcollector" ) diff --git a/pkg/otelcollector/metricsprocessor/internal/status_test.go b/pkg/otelcollector/metricsprocessor/internal/status_test.go index c9eee7dcc6..5a5540c0e7 100644 --- a/pkg/otelcollector/metricsprocessor/internal/status_test.go +++ b/pkg/otelcollector/metricsprocessor/internal/status_test.go @@ -5,7 +5,7 @@ import ( . "github.com/onsi/gomega" "go.opentelemetry.io/collector/pdata/pcommon" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/metrics" "github.com/fluxninja/aperture/pkg/otelcollector" "github.com/fluxninja/aperture/pkg/otelcollector/metricsprocessor/internal" diff --git a/pkg/otelcollector/metricsprocessor/processor.go b/pkg/otelcollector/metricsprocessor/processor.go index a07a9c84ef..ae0dc679b8 100644 --- a/pkg/otelcollector/metricsprocessor/processor.go +++ b/pkg/otelcollector/metricsprocessor/processor.go @@ -10,7 +10,7 @@ import ( "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/plog" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/metrics" "github.com/fluxninja/aperture/pkg/otelcollector" diff --git a/pkg/otelcollector/metricsprocessor/processor_test.go b/pkg/otelcollector/metricsprocessor/processor_test.go index 12a41111e1..5d4339252b 100644 --- a/pkg/otelcollector/metricsprocessor/processor_test.go +++ b/pkg/otelcollector/metricsprocessor/processor_test.go @@ -15,7 +15,7 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" "k8s.io/apimachinery/pkg/util/json" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" m "github.com/fluxninja/aperture/pkg/metrics" oc "github.com/fluxninja/aperture/pkg/otelcollector" "github.com/fluxninja/aperture/pkg/policies/mocks" diff --git a/pkg/policies/flowcontrol/actuators/concurrency/concurrency-limiter.go b/pkg/policies/flowcontrol/actuators/concurrency/concurrency-limiter.go index d108fdaf66..e7b5c8a3f6 100644 --- a/pkg/policies/flowcontrol/actuators/concurrency/concurrency-limiter.go +++ b/pkg/policies/flowcontrol/actuators/concurrency/concurrency-limiter.go @@ -14,7 +14,7 @@ import ( "go.uber.org/fx" "go.uber.org/multierr" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" policysyncv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/sync/v1" "github.com/fluxninja/aperture/pkg/agentinfo" diff --git a/pkg/policies/flowcontrol/actuators/rate/rate-limiter.go b/pkg/policies/flowcontrol/actuators/rate/rate-limiter.go index 65c888db47..ba81718f8c 100644 --- a/pkg/policies/flowcontrol/actuators/rate/rate-limiter.go +++ b/pkg/policies/flowcontrol/actuators/rate/rate-limiter.go @@ -12,7 +12,7 @@ import ( "go.uber.org/fx" "go.uber.org/multierr" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" policysyncv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/sync/v1" "github.com/fluxninja/aperture/pkg/agentinfo" diff --git a/pkg/policies/flowcontrol/engine.go b/pkg/policies/flowcontrol/engine.go index af65237212..a61d729e35 100644 --- a/pkg/policies/flowcontrol/engine.go +++ b/pkg/policies/flowcontrol/engine.go @@ -7,7 +7,7 @@ import ( "golang.org/x/exp/maps" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" "github.com/fluxninja/aperture/pkg/multimatcher" "github.com/fluxninja/aperture/pkg/panichandler" @@ -126,7 +126,9 @@ func (e *Engine) ProcessRequest( return } -func runLimiters(ctx context.Context, limiters []iface.Limiter, labels map[string]string) ([]*flowcontrolv1.LimiterDecision, flowcontrolv1.CheckResponse_DecisionType) { +func runLimiters(ctx context.Context, limiters []iface.Limiter, labels map[string]string) ([]*flowcontrolv1.LimiterDecision, + flowcontrolv1.CheckResponse_DecisionType, +) { var wg sync.WaitGroup var once sync.Once decisions := make([]*flowcontrolv1.LimiterDecision, len(limiters)) diff --git a/pkg/policies/flowcontrol/engine_test.go b/pkg/policies/flowcontrol/engine_test.go index b21e54cbbb..bebf7da991 100644 --- a/pkg/policies/flowcontrol/engine_test.go +++ b/pkg/policies/flowcontrol/engine_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/gomega" goprom "github.com/prometheus/client_golang/prometheus" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" "github.com/fluxninja/aperture/pkg/metrics" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/iface" diff --git a/pkg/policies/flowcontrol/iface/engine.go b/pkg/policies/flowcontrol/iface/engine.go index 2b3a09b828..d8f05ed51f 100644 --- a/pkg/policies/flowcontrol/iface/engine.go +++ b/pkg/policies/flowcontrol/iface/engine.go @@ -3,7 +3,7 @@ package iface import ( "context" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/selectors" ) diff --git a/pkg/policies/flowcontrol/iface/limiter.go b/pkg/policies/flowcontrol/iface/limiter.go index 27cd4028f3..832029e07f 100644 --- a/pkg/policies/flowcontrol/iface/limiter.go +++ b/pkg/policies/flowcontrol/iface/limiter.go @@ -4,7 +4,7 @@ import ( "context" "strconv" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" "github.com/prometheus/client_golang/prometheus" ) diff --git a/pkg/policies/flowcontrol/provide.go b/pkg/policies/flowcontrol/provide.go index 92a7b27691..c9d5eb274b 100644 --- a/pkg/policies/flowcontrol/provide.go +++ b/pkg/policies/flowcontrol/provide.go @@ -4,9 +4,9 @@ import ( "go.uber.org/fx" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/actuators" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/resources/classifier" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/resources/fluxmeter" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service" ) // Module returns the fx options for dataplane side pieces of policy. @@ -15,7 +15,7 @@ func Module() fx.Option { actuators.Module(), fluxmeter.Module(), classifier.Module(), - api.Module(), + service.Module(), fx.Provide( NewEngine, ), diff --git a/pkg/policies/flowcontrol/resources/classifier/classification-engine.go b/pkg/policies/flowcontrol/resources/classifier/classification-engine.go index e40f825b8c..4a8f2844f9 100644 --- a/pkg/policies/flowcontrol/resources/classifier/classification-engine.go +++ b/pkg/policies/flowcontrol/resources/classifier/classification-engine.go @@ -11,7 +11,7 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/rs/zerolog" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policysyncv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/sync/v1" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/metrics" @@ -37,12 +37,12 @@ type rules struct { type ClassificationEngine struct { mu sync.Mutex activeRules atomic.Value + classifierMapMutex sync.RWMutex registry status.Registry activeRulesets map[rulesetID]compiler.CompiledRuleset - nextRulesetID rulesetID - classifierMapMutex sync.RWMutex classifierMap map[iface.ClassifierID]iface.Classifier counterVec *prometheus.CounterVec + nextRulesetID rulesetID } type rulesetID = uint64 diff --git a/pkg/policies/flowcontrol/resources/classifier/classifier_test.go b/pkg/policies/flowcontrol/resources/classifier/classifier_test.go index fc0836fa47..fa6de6e4de 100644 --- a/pkg/policies/flowcontrol/resources/classifier/classifier_test.go +++ b/pkg/policies/flowcontrol/resources/classifier/classifier_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/gomega" "github.com/open-policy-agent/opa/ast" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" policysyncv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/sync/v1" "github.com/fluxninja/aperture/pkg/log" diff --git a/pkg/policies/flowcontrol/selectors/control-point.go b/pkg/policies/flowcontrol/selectors/control-point.go index c99e085a19..5b8f6bf655 100644 --- a/pkg/policies/flowcontrol/selectors/control-point.go +++ b/pkg/policies/flowcontrol/selectors/control-point.go @@ -3,7 +3,7 @@ package selectors import ( "fmt" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" ) diff --git a/pkg/policies/flowcontrol/api/base/base.go b/pkg/policies/flowcontrol/service/check/check.go similarity index 98% rename from pkg/policies/flowcontrol/api/base/base.go rename to pkg/policies/flowcontrol/service/check/check.go index 7d48c2a630..2c656e2e88 100644 --- a/pkg/policies/flowcontrol/api/base/base.go +++ b/pkg/policies/flowcontrol/service/check/check.go @@ -1,4 +1,4 @@ -package base +package check import ( "context" @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc/peer" "google.golang.org/protobuf/types/known/timestamppb" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/entitycache" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/iface" diff --git a/pkg/policies/flowcontrol/api/base/base_suite_test.go b/pkg/policies/flowcontrol/service/check/check_suite_test.go similarity index 95% rename from pkg/policies/flowcontrol/api/base/base_suite_test.go rename to pkg/policies/flowcontrol/service/check/check_suite_test.go index 7809756e17..9633efe786 100644 --- a/pkg/policies/flowcontrol/api/base/base_suite_test.go +++ b/pkg/policies/flowcontrol/service/check/check_suite_test.go @@ -1,4 +1,4 @@ -package base_test +package check_test import ( "testing" diff --git a/pkg/policies/flowcontrol/api/base/base_test.go b/pkg/policies/flowcontrol/service/check/check_test.go similarity index 92% rename from pkg/policies/flowcontrol/api/base/base_test.go rename to pkg/policies/flowcontrol/service/check/check_test.go index 7216a674d7..86f1c61692 100644 --- a/pkg/policies/flowcontrol/api/base/base_test.go +++ b/pkg/policies/flowcontrol/service/check/check_test.go @@ -1,4 +1,4 @@ -package base_test +package check_test import ( "context" @@ -10,14 +10,14 @@ import ( "google.golang.org/grpc/peer" entitycachev1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/entitycache/v1" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/agentinfo" "github.com/fluxninja/aperture/pkg/config" "github.com/fluxninja/aperture/pkg/entitycache" grpcclient "github.com/fluxninja/aperture/pkg/net/grpc" "github.com/fluxninja/aperture/pkg/platform" "github.com/fluxninja/aperture/pkg/policies/flowcontrol" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/base" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/check" ) var ( @@ -48,8 +48,8 @@ var _ = BeforeEach(func() { }.Module(), fx.Provide(agentinfo.ProvideAgentInfo), fx.Supply(entities), - fx.Provide(base.ProvideNopMetrics), - fx.Provide(base.ProvideHandler), + fx.Provide(check.ProvideNopMetrics), + fx.Provide(check.ProvideHandler), fx.Provide(flowcontrol.NewEngine), grpcclient.ClientConstructor{Name: "flowcontrol-grpc-client", ConfigKey: "flowcontrol.client.grpc"}.Annotate(), fx.Populate(&svc), diff --git a/pkg/policies/flowcontrol/api/base/metrics.go b/pkg/policies/flowcontrol/service/check/metrics.go similarity index 89% rename from pkg/policies/flowcontrol/api/base/metrics.go rename to pkg/policies/flowcontrol/service/check/metrics.go index 6b0c9284d2..7e4cbfdc93 100644 --- a/pkg/policies/flowcontrol/api/base/metrics.go +++ b/pkg/policies/flowcontrol/service/check/metrics.go @@ -1,9 +1,9 @@ -package base +package check import ( "github.com/prometheus/client_golang/prometheus" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/metrics" ) @@ -11,7 +11,9 @@ import ( // Metrics is used for collecting metrics about Aperture flowcontrol. type Metrics interface { // CheckResponse collects metrics about Aperture Check call with DecisionType and Reason. - CheckResponse(flowcontrolv1.CheckResponse_DecisionType, flowcontrolv1.CheckResponse_RejectReason, flowcontrolv1.CheckResponse_Error) + CheckResponse(flowcontrolv1.CheckResponse_DecisionType, + flowcontrolv1.CheckResponse_RejectReason, + flowcontrolv1.CheckResponse_Error) } // NopMetrics is a no-op implementation of Metrics. @@ -21,7 +23,9 @@ type NopMetrics struct{} var _ Metrics = NopMetrics{} // CheckResponse is no-op method for NopMetrics. -func (NopMetrics) CheckResponse(flowcontrolv1.CheckResponse_DecisionType, flowcontrolv1.CheckResponse_RejectReason, flowcontrolv1.CheckResponse_Error) { +func (NopMetrics) CheckResponse(flowcontrolv1.CheckResponse_DecisionType, + flowcontrolv1.CheckResponse_RejectReason, + flowcontrolv1.CheckResponse_Error) { } // PrometheusMetrics stores collected metrics. @@ -90,7 +94,10 @@ func NewPrometheusMetrics(registry *prometheus.Registry) (*PrometheusMetrics, er } // CheckResponse collects metrics about Aperture Check call with DecisionType, RejectReason, Error. -func (pm *PrometheusMetrics) CheckResponse(decision flowcontrolv1.CheckResponse_DecisionType, rejectReason flowcontrolv1.CheckResponse_RejectReason, error flowcontrolv1.CheckResponse_Error) { +func (pm *PrometheusMetrics) CheckResponse(decision flowcontrolv1.CheckResponse_DecisionType, + rejectReason flowcontrolv1.CheckResponse_RejectReason, + error flowcontrolv1.CheckResponse_Error, +) { pm.checkReceivedTotal.Inc() pm.checkDecision.With(prometheus.Labels{metrics.FlowControlCheckDecisionTypeLabel: decision.Enum().String()}).Inc() if error != flowcontrolv1.CheckResponse_ERROR_NONE { diff --git a/pkg/policies/flowcontrol/api/base/provide.go b/pkg/policies/flowcontrol/service/check/provide.go similarity index 98% rename from pkg/policies/flowcontrol/api/base/provide.go rename to pkg/policies/flowcontrol/service/check/provide.go index 3293833867..83ac3c74f6 100644 --- a/pkg/policies/flowcontrol/api/base/provide.go +++ b/pkg/policies/flowcontrol/service/check/provide.go @@ -1,4 +1,4 @@ -package base +package check import ( "fmt" @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/health" "google.golang.org/grpc/health/grpc_health_v1" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/entitycache" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/iface" diff --git a/pkg/policies/flowcontrol/api/envoy/authz-labels.go b/pkg/policies/flowcontrol/service/envoy/authz-labels.go similarity index 100% rename from pkg/policies/flowcontrol/api/envoy/authz-labels.go rename to pkg/policies/flowcontrol/service/envoy/authz-labels.go diff --git a/pkg/policies/flowcontrol/api/envoy/authz-labels_test.go b/pkg/policies/flowcontrol/service/envoy/authz-labels_test.go similarity index 94% rename from pkg/policies/flowcontrol/api/envoy/authz-labels_test.go rename to pkg/policies/flowcontrol/service/envoy/authz-labels_test.go index 4d63319f8b..c11344d85c 100644 --- a/pkg/policies/flowcontrol/api/envoy/authz-labels_test.go +++ b/pkg/policies/flowcontrol/service/envoy/authz-labels_test.go @@ -1,7 +1,7 @@ package envoy_test import ( - . "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/envoy" + . "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/envoy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/pkg/policies/flowcontrol/api/envoy/authz.go b/pkg/policies/flowcontrol/service/envoy/authz.go similarity index 97% rename from pkg/policies/flowcontrol/api/envoy/authz.go rename to pkg/policies/flowcontrol/service/envoy/authz.go index ffea168b7b..26aaee811d 100644 --- a/pkg/policies/flowcontrol/api/envoy/authz.go +++ b/pkg/policies/flowcontrol/service/envoy/authz.go @@ -23,15 +23,15 @@ import ( "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" "github.com/fluxninja/aperture/pkg/entitycache" "github.com/fluxninja/aperture/pkg/log" "github.com/fluxninja/aperture/pkg/otelcollector" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/base" - authz_baggage "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/envoy/baggage" flowlabel "github.com/fluxninja/aperture/pkg/policies/flowcontrol/label" classification "github.com/fluxninja/aperture/pkg/policies/flowcontrol/resources/classifier" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/selectors" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/check" + authz_baggage "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/envoy/baggage" ) // NewHandler creates new authorization handler for authz api @@ -45,7 +45,7 @@ import ( func NewHandler( classifier *classification.ClassificationEngine, entityCache *entitycache.EntityCache, - fcHandler base.HandlerWithValues, + fcHandler check.HandlerWithValues, ) *Handler { if entityCache == nil { log.Warn().Msg("Authz: No entity cache, will guess services based on Host header") @@ -63,7 +63,7 @@ type Handler struct { entityCache *entitycache.EntityCache classifier *classification.ClassificationEngine propagator authz_baggage.Propagator - fcHandler base.HandlerWithValues + fcHandler check.HandlerWithValues } var baggageSanitizeRegex *regexp.Regexp = regexp.MustCompile(`[\s\\\/;",]`) @@ -175,11 +175,11 @@ func (h *Handler) Check(ctx context.Context, req *ext_authz.CheckRequest) (*ext_ inputValue, err := ast.InterfaceToValue(input) if err != nil { - checkResponse := &flowcontrolv1.CheckResponse{ + checkLabelsResponse := &flowcontrolv1.CheckResponse{ Error: flowcontrolv1.CheckResponse_ERROR_CONVERT_TO_REGO_AST, Services: svcs, } - resp := createExtAuthzResponse(checkResponse) + resp := createExtAuthzResponse(checkLabelsResponse) return resp, fmt.Errorf("converting rego input to value failed: %v", err) } diff --git a/pkg/policies/flowcontrol/api/envoy/authz_suite_test.go b/pkg/policies/flowcontrol/service/envoy/authz_suite_test.go similarity index 100% rename from pkg/policies/flowcontrol/api/envoy/authz_suite_test.go rename to pkg/policies/flowcontrol/service/envoy/authz_suite_test.go diff --git a/pkg/policies/flowcontrol/api/envoy/authz_test.go b/pkg/policies/flowcontrol/service/envoy/authz_test.go similarity index 95% rename from pkg/policies/flowcontrol/api/envoy/authz_test.go rename to pkg/policies/flowcontrol/service/envoy/authz_test.go index 3e9f2dacf7..04b89d58c7 100644 --- a/pkg/policies/flowcontrol/api/envoy/authz_test.go +++ b/pkg/policies/flowcontrol/service/envoy/authz_test.go @@ -10,15 +10,15 @@ import ( "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" classificationv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" policylangv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" policysyncv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/sync/v1" "github.com/fluxninja/aperture/pkg/log" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/base" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/envoy" classification "github.com/fluxninja/aperture/pkg/policies/flowcontrol/resources/classifier" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/selectors" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/check" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/envoy" "github.com/fluxninja/aperture/pkg/status" ) @@ -42,7 +42,7 @@ var _ = AfterEach(func() { }) type AcceptingHandler struct { - base.HandlerWithValues + check.HandlerWithValues } func (s *AcceptingHandler) CheckWithValues( diff --git a/pkg/policies/flowcontrol/api/envoy/baggage/baggage.go b/pkg/policies/flowcontrol/service/envoy/baggage/baggage.go similarity index 100% rename from pkg/policies/flowcontrol/api/envoy/baggage/baggage.go rename to pkg/policies/flowcontrol/service/envoy/baggage/baggage.go diff --git a/pkg/policies/flowcontrol/api/envoy/baggage/baggage_suite_test.go b/pkg/policies/flowcontrol/service/envoy/baggage/baggage_suite_test.go similarity index 98% rename from pkg/policies/flowcontrol/api/envoy/baggage/baggage_suite_test.go rename to pkg/policies/flowcontrol/service/envoy/baggage/baggage_suite_test.go index 8d8843190b..3a8223f241 100644 --- a/pkg/policies/flowcontrol/api/envoy/baggage/baggage_suite_test.go +++ b/pkg/policies/flowcontrol/service/envoy/baggage/baggage_suite_test.go @@ -8,8 +8,8 @@ import ( . "github.com/onsi/gomega" "google.golang.org/protobuf/types/known/wrapperspb" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/envoy/baggage" flowlabel "github.com/fluxninja/aperture/pkg/policies/flowcontrol/label" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/envoy/baggage" "github.com/fluxninja/aperture/pkg/utils" ) diff --git a/pkg/policies/flowcontrol/api/envoy/provide.go b/pkg/policies/flowcontrol/service/envoy/provide.go similarity index 100% rename from pkg/policies/flowcontrol/api/envoy/provide.go rename to pkg/policies/flowcontrol/service/envoy/provide.go diff --git a/pkg/policies/flowcontrol/api/provide.go b/pkg/policies/flowcontrol/service/provide.go similarity index 59% rename from pkg/policies/flowcontrol/api/provide.go rename to pkg/policies/flowcontrol/service/provide.go index 9f7a5cf1f3..83678f2a6c 100644 --- a/pkg/policies/flowcontrol/api/provide.go +++ b/pkg/policies/flowcontrol/service/provide.go @@ -1,8 +1,8 @@ -package api +package service import ( - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/base" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api/envoy" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/check" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service/envoy" "go.uber.org/fx" ) @@ -12,7 +12,7 @@ import ( // externally. func Module() fx.Option { return fx.Options( - base.Module(), + check.Module(), envoy.Module(), ) } diff --git a/pkg/policies/mocks/mock_engine.go b/pkg/policies/mocks/mock_engine.go index 5a1263e5bd..a6f1d2a038 100644 --- a/pkg/policies/mocks/mock_engine.go +++ b/pkg/policies/mocks/mock_engine.go @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + checkv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" iface "github.com/fluxninja/aperture/pkg/policies/flowcontrol/iface" selectors "github.com/fluxninja/aperture/pkg/policies/flowcontrol/selectors" gomock "github.com/golang/mock/gomock" @@ -80,10 +80,10 @@ func (mr *MockEngineMockRecorder) GetRateLimiter(limiterID interface{}) *gomock. } // ProcessRequest mocks base method. -func (m *MockEngine) ProcessRequest(ctx context.Context, controlPoint selectors.ControlPoint, serviceIDs []string, labels map[string]string) *flowcontrolv1.CheckResponse { +func (m *MockEngine) ProcessRequest(ctx context.Context, controlPoint selectors.ControlPoint, serviceIDs []string, labels map[string]string) *checkv1.CheckResponse { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProcessRequest", ctx, controlPoint, serviceIDs, labels) - ret0, _ := ret[0].(*flowcontrolv1.CheckResponse) + ret0, _ := ret[0].(*checkv1.CheckResponse) return ret0 } diff --git a/pkg/policies/mocks/mock_limiter.go b/pkg/policies/mocks/mock_limiter.go index 683f2ad085..927c83eb27 100644 --- a/pkg/policies/mocks/mock_limiter.go +++ b/pkg/policies/mocks/mock_limiter.go @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - flowcontrolv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/v1" + checkv1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/flowcontrol/check/v1" languagev1 "github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1" iface "github.com/fluxninja/aperture/pkg/policies/flowcontrol/iface" gomock "github.com/golang/mock/gomock" @@ -81,10 +81,10 @@ func (mr *MockLimiterMockRecorder) GetSelector() *gomock.Call { } // RunLimiter mocks base method. -func (m *MockLimiter) RunLimiter(ctx context.Context, labels map[string]string) *flowcontrolv1.LimiterDecision { +func (m *MockLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RunLimiter", ctx, labels) - ret0, _ := ret[0].(*flowcontrolv1.LimiterDecision) + ret0, _ := ret[0].(*checkv1.LimiterDecision) return ret0 } @@ -174,10 +174,10 @@ func (mr *MockRateLimiterMockRecorder) GetSelector() *gomock.Call { } // RunLimiter mocks base method. -func (m *MockRateLimiter) RunLimiter(ctx context.Context, labels map[string]string) *flowcontrolv1.LimiterDecision { +func (m *MockRateLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RunLimiter", ctx, labels) - ret0, _ := ret[0].(*flowcontrolv1.LimiterDecision) + ret0, _ := ret[0].(*checkv1.LimiterDecision) return ret0 } @@ -298,10 +298,10 @@ func (mr *MockConcurrencyLimiterMockRecorder) GetSelector() *gomock.Call { } // RunLimiter mocks base method. -func (m *MockConcurrencyLimiter) RunLimiter(ctx context.Context, labels map[string]string) *flowcontrolv1.LimiterDecision { +func (m *MockConcurrencyLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RunLimiter", ctx, labels) - ret0, _ := ret[0].(*flowcontrolv1.LimiterDecision) + ret0, _ := ret[0].(*checkv1.LimiterDecision) return ret0 } diff --git a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.go b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.go similarity index 53% rename from api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.go rename to sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.go index a1da4f6080..830029d01e 100644 --- a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol.pb.go +++ b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package flowcontrolv1 +package checkv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -64,11 +64,11 @@ func (x CheckResponse_Error) String() string { } func (CheckResponse_Error) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[0].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[0].Descriptor() } func (CheckResponse_Error) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[0] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[0] } func (x CheckResponse_Error) Number() protoreflect.EnumNumber { @@ -77,7 +77,7 @@ func (x CheckResponse_Error) Number() protoreflect.EnumNumber { // Deprecated: Use CheckResponse_Error.Descriptor instead. func (CheckResponse_Error) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1, 0} } // RejectReason contains fields that give further information about rejection. @@ -114,11 +114,11 @@ func (x CheckResponse_RejectReason) String() string { } func (CheckResponse_RejectReason) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[1].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[1].Descriptor() } func (CheckResponse_RejectReason) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[1] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[1] } func (x CheckResponse_RejectReason) Number() protoreflect.EnumNumber { @@ -127,7 +127,7 @@ func (x CheckResponse_RejectReason) Number() protoreflect.EnumNumber { // Deprecated: Use CheckResponse_RejectReason.Descriptor instead. func (CheckResponse_RejectReason) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1, 1} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1, 1} } // DecisionType contains fields that represent decision made by Check call. @@ -161,11 +161,11 @@ func (x CheckResponse_DecisionType) String() string { } func (CheckResponse_DecisionType) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[2].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[2].Descriptor() } func (CheckResponse_DecisionType) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[2] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[2] } func (x CheckResponse_DecisionType) Number() protoreflect.EnumNumber { @@ -174,7 +174,7 @@ func (x CheckResponse_DecisionType) Number() protoreflect.EnumNumber { // Deprecated: Use CheckResponse_DecisionType.Descriptor instead. func (CheckResponse_DecisionType) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1, 2} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1, 2} } // Type contains fields that represent type of ControlPointInfo. @@ -214,11 +214,11 @@ func (x ControlPointInfo_Type) String() string { } func (ControlPointInfo_Type) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[3].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[3].Descriptor() } func (ControlPointInfo_Type) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[3] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[3] } func (x ControlPointInfo_Type) Number() protoreflect.EnumNumber { @@ -227,7 +227,7 @@ func (x ControlPointInfo_Type) Number() protoreflect.EnumNumber { // Deprecated: Use ControlPointInfo_Type.Descriptor instead. func (ControlPointInfo_Type) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{2, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{2, 0} } // Error information. @@ -273,11 +273,11 @@ func (x ClassifierInfo_Error) String() string { } func (ClassifierInfo_Error) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[4].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[4].Descriptor() } func (ClassifierInfo_Error) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[4] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[4] } func (x ClassifierInfo_Error) Number() protoreflect.EnumNumber { @@ -286,7 +286,7 @@ func (x ClassifierInfo_Error) Number() protoreflect.EnumNumber { // Deprecated: Use ClassifierInfo_Error.Descriptor instead. func (ClassifierInfo_Error) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{3, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{3, 0} } type LimiterDecision_LimiterReason int32 @@ -319,11 +319,11 @@ func (x LimiterDecision_LimiterReason) String() string { } func (LimiterDecision_LimiterReason) Descriptor() protoreflect.EnumDescriptor { - return file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[5].Descriptor() + return file_aperture_flowcontrol_check_v1_check_proto_enumTypes[5].Descriptor() } func (LimiterDecision_LimiterReason) Type() protoreflect.EnumType { - return &file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes[5] + return &file_aperture_flowcontrol_check_v1_check_proto_enumTypes[5] } func (x LimiterDecision_LimiterReason) Number() protoreflect.EnumNumber { @@ -332,7 +332,7 @@ func (x LimiterDecision_LimiterReason) Number() protoreflect.EnumNumber { // Deprecated: Use LimiterDecision_LimiterReason.Descriptor instead. func (LimiterDecision_LimiterReason) EnumDescriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4, 0} } // CheckRequest contains fields required to perform Check call. @@ -348,7 +348,7 @@ type CheckRequest struct { func (x *CheckRequest) Reset() { *x = CheckRequest{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[0] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -361,7 +361,7 @@ func (x *CheckRequest) String() string { func (*CheckRequest) ProtoMessage() {} func (x *CheckRequest) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[0] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -374,7 +374,7 @@ func (x *CheckRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead. func (*CheckRequest) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{0} } func (x *CheckRequest) GetFeature() string { @@ -402,7 +402,7 @@ type CheckResponse struct { // end timestamp End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // error information. - Error CheckResponse_Error `protobuf:"varint,3,opt,name=error,proto3,enum=aperture.flowcontrol.v1.CheckResponse_Error" json:"error,omitempty"` + Error CheckResponse_Error `protobuf:"varint,3,opt,name=error,proto3,enum=aperture.flowcontrol.check.v1.CheckResponse_Error" json:"error,omitempty"` // services that matched Services []string `protobuf:"bytes,4,rep,name=services,proto3" json:"services,omitempty"` // control_point of request @@ -412,9 +412,9 @@ type CheckResponse struct { // telemetry_flow_labels are labels for telemetry purpose. The keys in telemetry_flow_labels is subset of flow_label_keys. TelemetryFlowLabels map[string]string `protobuf:"bytes,7,rep,name=telemetry_flow_labels,json=telemetryFlowLabels,proto3" json:"telemetry_flow_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // decision_type contains what the decision was. - DecisionType CheckResponse_DecisionType `protobuf:"varint,8,opt,name=decision_type,json=decisionType,proto3,enum=aperture.flowcontrol.v1.CheckResponse_DecisionType" json:"decision_type,omitempty"` + DecisionType CheckResponse_DecisionType `protobuf:"varint,8,opt,name=decision_type,json=decisionType,proto3,enum=aperture.flowcontrol.check.v1.CheckResponse_DecisionType" json:"decision_type,omitempty"` // reject_reason contains the reason for the rejection. - RejectReason CheckResponse_RejectReason `protobuf:"varint,9,opt,name=reject_reason,json=rejectReason,proto3,enum=aperture.flowcontrol.v1.CheckResponse_RejectReason" json:"reject_reason,omitempty"` + RejectReason CheckResponse_RejectReason `protobuf:"varint,9,opt,name=reject_reason,json=rejectReason,proto3,enum=aperture.flowcontrol.check.v1.CheckResponse_RejectReason" json:"reject_reason,omitempty"` // classifiers that were matched for this request. ClassifierInfos []*ClassifierInfo `protobuf:"bytes,10,rep,name=classifier_infos,json=classifierInfos,proto3" json:"classifier_infos,omitempty"` // flux meters that were matched for this request. @@ -426,7 +426,7 @@ type CheckResponse struct { func (x *CheckResponse) Reset() { *x = CheckResponse{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[1] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -439,7 +439,7 @@ func (x *CheckResponse) String() string { func (*CheckResponse) ProtoMessage() {} func (x *CheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[1] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -452,7 +452,7 @@ func (x *CheckResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead. func (*CheckResponse) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{1} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{1} } func (x *CheckResponse) GetStart() *timestamppb.Timestamp { @@ -544,14 +544,14 @@ type ControlPointInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type ControlPointInfo_Type `protobuf:"varint,1,opt,name=type,proto3,enum=aperture.flowcontrol.v1.ControlPointInfo_Type" json:"type,omitempty"` + Type ControlPointInfo_Type `protobuf:"varint,1,opt,name=type,proto3,enum=aperture.flowcontrol.check.v1.ControlPointInfo_Type" json:"type,omitempty"` Feature string `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"` } func (x *ControlPointInfo) Reset() { *x = ControlPointInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[2] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -564,7 +564,7 @@ func (x *ControlPointInfo) String() string { func (*ControlPointInfo) ProtoMessage() {} func (x *ControlPointInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[2] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -577,7 +577,7 @@ func (x *ControlPointInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ControlPointInfo.ProtoReflect.Descriptor instead. func (*ControlPointInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{2} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{2} } func (x *ControlPointInfo) GetType() ControlPointInfo_Type { @@ -604,13 +604,13 @@ type ClassifierInfo struct { PolicyHash string `protobuf:"bytes,2,opt,name=policy_hash,json=policyHash,proto3" json:"policy_hash,omitempty"` ClassifierIndex int64 `protobuf:"varint,3,opt,name=classifier_index,json=classifierIndex,proto3" json:"classifier_index,omitempty"` LabelKey string `protobuf:"bytes,4,opt,name=label_key,json=labelKey,proto3" json:"label_key,omitempty"` - Error ClassifierInfo_Error `protobuf:"varint,5,opt,name=error,proto3,enum=aperture.flowcontrol.v1.ClassifierInfo_Error" json:"error,omitempty"` + Error ClassifierInfo_Error `protobuf:"varint,5,opt,name=error,proto3,enum=aperture.flowcontrol.check.v1.ClassifierInfo_Error" json:"error,omitempty"` } func (x *ClassifierInfo) Reset() { *x = ClassifierInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[3] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -623,7 +623,7 @@ func (x *ClassifierInfo) String() string { func (*ClassifierInfo) ProtoMessage() {} func (x *ClassifierInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[3] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -636,7 +636,7 @@ func (x *ClassifierInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierInfo.ProtoReflect.Descriptor instead. func (*ClassifierInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{3} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{3} } func (x *ClassifierInfo) GetPolicyName() string { @@ -684,7 +684,7 @@ type LimiterDecision struct { PolicyHash string `protobuf:"bytes,2,opt,name=policy_hash,json=policyHash,proto3" json:"policy_hash,omitempty"` ComponentIndex int64 `protobuf:"varint,3,opt,name=component_index,json=componentIndex,proto3" json:"component_index,omitempty"` Dropped bool `protobuf:"varint,4,opt,name=dropped,proto3" json:"dropped,omitempty"` - Reason LimiterDecision_LimiterReason `protobuf:"varint,5,opt,name=reason,proto3,enum=aperture.flowcontrol.v1.LimiterDecision_LimiterReason" json:"reason,omitempty"` + Reason LimiterDecision_LimiterReason `protobuf:"varint,5,opt,name=reason,proto3,enum=aperture.flowcontrol.check.v1.LimiterDecision_LimiterReason" json:"reason,omitempty"` // Types that are assignable to Details: // *LimiterDecision_RateLimiterInfo_ // *LimiterDecision_ConcurrencyLimiterInfo_ @@ -694,7 +694,7 @@ type LimiterDecision struct { func (x *LimiterDecision) Reset() { *x = LimiterDecision{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -707,7 +707,7 @@ func (x *LimiterDecision) String() string { func (*LimiterDecision) ProtoMessage() {} func (x *LimiterDecision) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -720,7 +720,7 @@ func (x *LimiterDecision) ProtoReflect() protoreflect.Message { // Deprecated: Use LimiterDecision.ProtoReflect.Descriptor instead. func (*LimiterDecision) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4} } func (x *LimiterDecision) GetPolicyName() string { @@ -807,7 +807,7 @@ type FluxMeterInfo struct { func (x *FluxMeterInfo) Reset() { *x = FluxMeterInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[5] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -820,7 +820,7 @@ func (x *FluxMeterInfo) String() string { func (*FluxMeterInfo) ProtoMessage() {} func (x *FluxMeterInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[5] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -833,7 +833,7 @@ func (x *FluxMeterInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use FluxMeterInfo.ProtoReflect.Descriptor instead. func (*FluxMeterInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{5} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{5} } func (x *FluxMeterInfo) GetFluxMeterName() string { @@ -856,7 +856,7 @@ type LimiterDecision_RateLimiterInfo struct { func (x *LimiterDecision_RateLimiterInfo) Reset() { *x = LimiterDecision_RateLimiterInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[8] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -869,7 +869,7 @@ func (x *LimiterDecision_RateLimiterInfo) String() string { func (*LimiterDecision_RateLimiterInfo) ProtoMessage() {} func (x *LimiterDecision_RateLimiterInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[8] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -882,7 +882,7 @@ func (x *LimiterDecision_RateLimiterInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use LimiterDecision_RateLimiterInfo.ProtoReflect.Descriptor instead. func (*LimiterDecision_RateLimiterInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4, 0} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4, 0} } func (x *LimiterDecision_RateLimiterInfo) GetRemaining() int64 { @@ -917,7 +917,7 @@ type LimiterDecision_ConcurrencyLimiterInfo struct { func (x *LimiterDecision_ConcurrencyLimiterInfo) Reset() { *x = LimiterDecision_ConcurrencyLimiterInfo{} if protoimpl.UnsafeEnabled { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[9] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -930,7 +930,7 @@ func (x *LimiterDecision_ConcurrencyLimiterInfo) String() string { func (*LimiterDecision_ConcurrencyLimiterInfo) ProtoMessage() {} func (x *LimiterDecision_ConcurrencyLimiterInfo) ProtoReflect() protoreflect.Message { - mi := &file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[9] + mi := &file_aperture_flowcontrol_check_v1_check_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -943,7 +943,7 @@ func (x *LimiterDecision_ConcurrencyLimiterInfo) ProtoReflect() protoreflect.Mes // Deprecated: Use LimiterDecision_ConcurrencyLimiterInfo.ProtoReflect.Descriptor instead. func (*LimiterDecision_ConcurrencyLimiterInfo) Descriptor() ([]byte, []int) { - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP(), []int{4, 1} + return file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP(), []int{4, 1} } func (x *LimiterDecision_ConcurrencyLimiterInfo) GetWorkloadIndex() string { @@ -953,274 +953,282 @@ func (x *LimiterDecision_ConcurrencyLimiterInfo) GetWorkloadIndex() string { return "" } -var File_aperture_flowcontrol_v1_flowcontrol_proto protoreflect.FileDescriptor +var File_aperture_flowcontrol_check_v1_check_proto protoreflect.FileDescriptor -var file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc = []byte{ +var file_aperture_flowcontrol_check_v1_check_proto_rawDesc = []byte{ 0x0a, 0x29, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x61, 0x70, 0x65, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x12, 0x49, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x31, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xad, 0x0a, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, - 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, - 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x6f, 0x77, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x73, 0x0a, 0x15, 0x74, 0x65, 0x6c, - 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, - 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x74, 0x65, 0x6c, 0x65, 0x6d, - 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, - 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, - 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x0d, 0x72, 0x65, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x33, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x61, - 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x0c, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xdd, 0x0a, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x03, 0x65, 0x6e, 0x64, 0x12, 0x48, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, + 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x5d, 0x0a, 0x12, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x12, 0x79, 0x0a, 0x15, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x45, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x5e, 0x0a, 0x0d, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x0d, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, + 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x10, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, + 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x10, 0x66, 0x6c, 0x75, 0x78, 0x5f, 0x6d, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x56, 0x0a, 0x10, 0x66, 0x6c, 0x75, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x75, 0x78, 0x4d, - 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, - 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x55, 0x0a, 0x11, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, - 0x46, 0x0a, 0x18, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, - 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, - 0x4e, 0x47, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, - 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, - 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, - 0x4d, 0x41, 0x50, 0x5f, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, - 0x5f, 0x52, 0x45, 0x47, 0x4f, 0x5f, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x59, 0x10, 0x05, 0x22, - 0x6d, 0x0a, 0x0c, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, - 0x16, 0x0a, 0x12, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, - 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x4a, 0x45, 0x43, - 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, - 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x4a, 0x45, 0x43, - 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x43, 0x55, 0x52, 0x52, - 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x46, - 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, - 0x0a, 0x16, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, - 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, - 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x22, 0xbf, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x42, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x61, 0x70, 0x65, 0x72, + 0x32, 0x2c, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, + 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x5b, + 0x0a, 0x11, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4d, 0x0a, 0x04, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, - 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x41, 0x54, - 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, - 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0x84, 0x03, 0x0a, 0x0e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, + 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x46, 0x0a, 0x18, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, + 0x0a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x23, 0x0a, + 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, + 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x5f, + 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x47, + 0x4f, 0x5f, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x59, 0x10, 0x05, 0x22, 0x6d, 0x0a, 0x0c, 0x52, + 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x52, + 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, + 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, + 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x43, 0x59, + 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x46, 0x0a, 0x0c, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, + 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, + 0x50, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, + 0x10, 0x01, 0x22, 0xc5, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4d, 0x0a, 0x04, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, + 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x49, 0x4e, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0x8a, 0x03, 0x0a, 0x0e, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x29, 0x0a, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, + 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0xa2, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x0a, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x56, 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x4d, 0x50, + 0x54, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1d, + 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x41, 0x4d, 0x42, 0x49, 0x47, 0x55, 0x4f, 0x55, + 0x53, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a, + 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x45, 0x58, 0x50, + 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, + 0x54, 0x5f, 0x4d, 0x41, 0x50, 0x10, 0x05, 0x22, 0xde, 0x05, 0x0a, 0x0f, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, - 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa2, 0x01, 0x0a, 0x05, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, - 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x56, - 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, - 0x54, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x41, 0x4d, 0x42, 0x49, 0x47, 0x55, 0x4f, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, - 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, - 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, - 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, - 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4d, 0x41, 0x50, 0x10, 0x05, 0x22, - 0xcb, 0x05, 0x0a, 0x0f, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x68, - 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, - 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x12, 0x4e, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, - 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, - 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x66, 0x0a, 0x11, 0x72, 0x61, 0x74, 0x65, - 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x61, - 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, - 0x0f, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x7b, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, + 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, + 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, + 0x12, 0x54, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x3c, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x6c, 0x0a, 0x11, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3e, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x6f, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x81, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, + 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, + 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x5f, 0x0a, 0x0f, 0x52, 0x61, 0x74, 0x65, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, - 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x5f, 0x0a, - 0x0f, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x1a, 0x3f, - 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, - 0x51, 0x0a, 0x0d, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, - 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x20, 0x0a, 0x1c, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, - 0x4f, 0x4e, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, - 0x10, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x37, 0x0a, - 0x0d, 0x46, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, - 0x0a, 0x0f, 0x66, 0x6c, 0x75, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, - 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x6e, 0x0a, 0x12, 0x46, 0x6c, 0x6f, 0x77, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x05, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, - 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, - 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x97, 0x02, 0x0a, 0x2f, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x75, 0x78, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x64, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x46, 0x6c, 0x6f, 0x77, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x54, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x75, 0x78, 0x6e, - 0x69, 0x6e, 0x6a, 0x61, 0x2f, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x61, - 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x46, 0x58, 0xaa, 0x02, 0x17, 0x41, 0x70, 0x65, - 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, - 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x23, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x3a, - 0x3a, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 0x3a, 0x56, 0x31, + 0x6e, 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, + 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x51, 0x0a, 0x0d, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, + 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x4c, + 0x49, 0x4d, 0x49, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4b, 0x45, + 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x42, 0x09, 0x0a, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x37, 0x0a, 0x0d, 0x46, 0x6c, 0x75, 0x78, + 0x4d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x6c, 0x75, + 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6c, 0x75, 0x78, 0x4d, 0x65, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x32, 0x7a, 0x0a, 0x12, 0x46, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb0, 0x02, + 0x0a, 0x35, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x75, 0x78, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, + 0x72, 0x65, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x54, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x75, 0x78, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x2f, 0x61, 0x70, 0x65, 0x72, + 0x74, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x66, + 0x6c, 0x6f, 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x46, + 0x43, 0xaa, 0x02, 0x1d, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x46, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x1d, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, 0x46, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x29, 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x5c, 0x46, 0x6c, 0x6f, + 0x77, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x20, + 0x41, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x3a, 0x3a, 0x46, 0x6c, 0x6f, 0x77, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 0x3a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescOnce sync.Once - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData = file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc + file_aperture_flowcontrol_check_v1_check_proto_rawDescOnce sync.Once + file_aperture_flowcontrol_check_v1_check_proto_rawDescData = file_aperture_flowcontrol_check_v1_check_proto_rawDesc ) -func file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescGZIP() []byte { - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescOnce.Do(func() { - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData = protoimpl.X.CompressGZIP(file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData) +func file_aperture_flowcontrol_check_v1_check_proto_rawDescGZIP() []byte { + file_aperture_flowcontrol_check_v1_check_proto_rawDescOnce.Do(func() { + file_aperture_flowcontrol_check_v1_check_proto_rawDescData = protoimpl.X.CompressGZIP(file_aperture_flowcontrol_check_v1_check_proto_rawDescData) }) - return file_aperture_flowcontrol_v1_flowcontrol_proto_rawDescData -} - -var file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_aperture_flowcontrol_v1_flowcontrol_proto_goTypes = []interface{}{ - (CheckResponse_Error)(0), // 0: aperture.flowcontrol.v1.CheckResponse.Error - (CheckResponse_RejectReason)(0), // 1: aperture.flowcontrol.v1.CheckResponse.RejectReason - (CheckResponse_DecisionType)(0), // 2: aperture.flowcontrol.v1.CheckResponse.DecisionType - (ControlPointInfo_Type)(0), // 3: aperture.flowcontrol.v1.ControlPointInfo.Type - (ClassifierInfo_Error)(0), // 4: aperture.flowcontrol.v1.ClassifierInfo.Error - (LimiterDecision_LimiterReason)(0), // 5: aperture.flowcontrol.v1.LimiterDecision.LimiterReason - (*CheckRequest)(nil), // 6: aperture.flowcontrol.v1.CheckRequest - (*CheckResponse)(nil), // 7: aperture.flowcontrol.v1.CheckResponse - (*ControlPointInfo)(nil), // 8: aperture.flowcontrol.v1.ControlPointInfo - (*ClassifierInfo)(nil), // 9: aperture.flowcontrol.v1.ClassifierInfo - (*LimiterDecision)(nil), // 10: aperture.flowcontrol.v1.LimiterDecision - (*FluxMeterInfo)(nil), // 11: aperture.flowcontrol.v1.FluxMeterInfo - nil, // 12: aperture.flowcontrol.v1.CheckRequest.LabelsEntry - nil, // 13: aperture.flowcontrol.v1.CheckResponse.TelemetryFlowLabelsEntry - (*LimiterDecision_RateLimiterInfo)(nil), // 14: aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo - (*LimiterDecision_ConcurrencyLimiterInfo)(nil), // 15: aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo + return file_aperture_flowcontrol_check_v1_check_proto_rawDescData +} + +var file_aperture_flowcontrol_check_v1_check_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_aperture_flowcontrol_check_v1_check_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_aperture_flowcontrol_check_v1_check_proto_goTypes = []interface{}{ + (CheckResponse_Error)(0), // 0: aperture.flowcontrol.check.v1.CheckResponse.Error + (CheckResponse_RejectReason)(0), // 1: aperture.flowcontrol.check.v1.CheckResponse.RejectReason + (CheckResponse_DecisionType)(0), // 2: aperture.flowcontrol.check.v1.CheckResponse.DecisionType + (ControlPointInfo_Type)(0), // 3: aperture.flowcontrol.check.v1.ControlPointInfo.Type + (ClassifierInfo_Error)(0), // 4: aperture.flowcontrol.check.v1.ClassifierInfo.Error + (LimiterDecision_LimiterReason)(0), // 5: aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason + (*CheckRequest)(nil), // 6: aperture.flowcontrol.check.v1.CheckRequest + (*CheckResponse)(nil), // 7: aperture.flowcontrol.check.v1.CheckResponse + (*ControlPointInfo)(nil), // 8: aperture.flowcontrol.check.v1.ControlPointInfo + (*ClassifierInfo)(nil), // 9: aperture.flowcontrol.check.v1.ClassifierInfo + (*LimiterDecision)(nil), // 10: aperture.flowcontrol.check.v1.LimiterDecision + (*FluxMeterInfo)(nil), // 11: aperture.flowcontrol.check.v1.FluxMeterInfo + nil, // 12: aperture.flowcontrol.check.v1.CheckRequest.LabelsEntry + nil, // 13: aperture.flowcontrol.check.v1.CheckResponse.TelemetryFlowLabelsEntry + (*LimiterDecision_RateLimiterInfo)(nil), // 14: aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo + (*LimiterDecision_ConcurrencyLimiterInfo)(nil), // 15: aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp } -var file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs = []int32{ - 12, // 0: aperture.flowcontrol.v1.CheckRequest.labels:type_name -> aperture.flowcontrol.v1.CheckRequest.LabelsEntry - 16, // 1: aperture.flowcontrol.v1.CheckResponse.start:type_name -> google.protobuf.Timestamp - 16, // 2: aperture.flowcontrol.v1.CheckResponse.end:type_name -> google.protobuf.Timestamp - 0, // 3: aperture.flowcontrol.v1.CheckResponse.error:type_name -> aperture.flowcontrol.v1.CheckResponse.Error - 8, // 4: aperture.flowcontrol.v1.CheckResponse.control_point_info:type_name -> aperture.flowcontrol.v1.ControlPointInfo - 13, // 5: aperture.flowcontrol.v1.CheckResponse.telemetry_flow_labels:type_name -> aperture.flowcontrol.v1.CheckResponse.TelemetryFlowLabelsEntry - 2, // 6: aperture.flowcontrol.v1.CheckResponse.decision_type:type_name -> aperture.flowcontrol.v1.CheckResponse.DecisionType - 1, // 7: aperture.flowcontrol.v1.CheckResponse.reject_reason:type_name -> aperture.flowcontrol.v1.CheckResponse.RejectReason - 9, // 8: aperture.flowcontrol.v1.CheckResponse.classifier_infos:type_name -> aperture.flowcontrol.v1.ClassifierInfo - 11, // 9: aperture.flowcontrol.v1.CheckResponse.flux_meter_infos:type_name -> aperture.flowcontrol.v1.FluxMeterInfo - 10, // 10: aperture.flowcontrol.v1.CheckResponse.limiter_decisions:type_name -> aperture.flowcontrol.v1.LimiterDecision - 3, // 11: aperture.flowcontrol.v1.ControlPointInfo.type:type_name -> aperture.flowcontrol.v1.ControlPointInfo.Type - 4, // 12: aperture.flowcontrol.v1.ClassifierInfo.error:type_name -> aperture.flowcontrol.v1.ClassifierInfo.Error - 5, // 13: aperture.flowcontrol.v1.LimiterDecision.reason:type_name -> aperture.flowcontrol.v1.LimiterDecision.LimiterReason - 14, // 14: aperture.flowcontrol.v1.LimiterDecision.rate_limiter_info:type_name -> aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo - 15, // 15: aperture.flowcontrol.v1.LimiterDecision.concurrency_limiter_info:type_name -> aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo - 6, // 16: aperture.flowcontrol.v1.FlowControlService.Check:input_type -> aperture.flowcontrol.v1.CheckRequest - 7, // 17: aperture.flowcontrol.v1.FlowControlService.Check:output_type -> aperture.flowcontrol.v1.CheckResponse +var file_aperture_flowcontrol_check_v1_check_proto_depIdxs = []int32{ + 12, // 0: aperture.flowcontrol.check.v1.CheckRequest.labels:type_name -> aperture.flowcontrol.check.v1.CheckRequest.LabelsEntry + 16, // 1: aperture.flowcontrol.check.v1.CheckResponse.start:type_name -> google.protobuf.Timestamp + 16, // 2: aperture.flowcontrol.check.v1.CheckResponse.end:type_name -> google.protobuf.Timestamp + 0, // 3: aperture.flowcontrol.check.v1.CheckResponse.error:type_name -> aperture.flowcontrol.check.v1.CheckResponse.Error + 8, // 4: aperture.flowcontrol.check.v1.CheckResponse.control_point_info:type_name -> aperture.flowcontrol.check.v1.ControlPointInfo + 13, // 5: aperture.flowcontrol.check.v1.CheckResponse.telemetry_flow_labels:type_name -> aperture.flowcontrol.check.v1.CheckResponse.TelemetryFlowLabelsEntry + 2, // 6: aperture.flowcontrol.check.v1.CheckResponse.decision_type:type_name -> aperture.flowcontrol.check.v1.CheckResponse.DecisionType + 1, // 7: aperture.flowcontrol.check.v1.CheckResponse.reject_reason:type_name -> aperture.flowcontrol.check.v1.CheckResponse.RejectReason + 9, // 8: aperture.flowcontrol.check.v1.CheckResponse.classifier_infos:type_name -> aperture.flowcontrol.check.v1.ClassifierInfo + 11, // 9: aperture.flowcontrol.check.v1.CheckResponse.flux_meter_infos:type_name -> aperture.flowcontrol.check.v1.FluxMeterInfo + 10, // 10: aperture.flowcontrol.check.v1.CheckResponse.limiter_decisions:type_name -> aperture.flowcontrol.check.v1.LimiterDecision + 3, // 11: aperture.flowcontrol.check.v1.ControlPointInfo.type:type_name -> aperture.flowcontrol.check.v1.ControlPointInfo.Type + 4, // 12: aperture.flowcontrol.check.v1.ClassifierInfo.error:type_name -> aperture.flowcontrol.check.v1.ClassifierInfo.Error + 5, // 13: aperture.flowcontrol.check.v1.LimiterDecision.reason:type_name -> aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason + 14, // 14: aperture.flowcontrol.check.v1.LimiterDecision.rate_limiter_info:type_name -> aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo + 15, // 15: aperture.flowcontrol.check.v1.LimiterDecision.concurrency_limiter_info:type_name -> aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo + 6, // 16: aperture.flowcontrol.check.v1.FlowControlService.Check:input_type -> aperture.flowcontrol.check.v1.CheckRequest + 7, // 17: aperture.flowcontrol.check.v1.FlowControlService.Check:output_type -> aperture.flowcontrol.check.v1.CheckResponse 17, // [17:18] is the sub-list for method output_type 16, // [16:17] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name @@ -1228,13 +1236,13 @@ var file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs = []int32{ 0, // [0:16] is the sub-list for field type_name } -func init() { file_aperture_flowcontrol_v1_flowcontrol_proto_init() } -func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { - if File_aperture_flowcontrol_v1_flowcontrol_proto != nil { +func init() { file_aperture_flowcontrol_check_v1_check_proto_init() } +func file_aperture_flowcontrol_check_v1_check_proto_init() { + if File_aperture_flowcontrol_check_v1_check_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CheckRequest); i { case 0: return &v.state @@ -1246,7 +1254,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CheckResponse); i { case 0: return &v.state @@ -1258,7 +1266,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ControlPointInfo); i { case 0: return &v.state @@ -1270,7 +1278,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassifierInfo); i { case 0: return &v.state @@ -1282,7 +1290,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LimiterDecision); i { case 0: return &v.state @@ -1294,7 +1302,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FluxMeterInfo); i { case 0: return &v.state @@ -1306,7 +1314,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LimiterDecision_RateLimiterInfo); i { case 0: return &v.state @@ -1318,7 +1326,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { return nil } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LimiterDecision_ConcurrencyLimiterInfo); i { case 0: return &v.state @@ -1331,7 +1339,7 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { } } } - file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_aperture_flowcontrol_check_v1_check_proto_msgTypes[4].OneofWrappers = []interface{}{ (*LimiterDecision_RateLimiterInfo_)(nil), (*LimiterDecision_ConcurrencyLimiterInfo_)(nil), } @@ -1339,19 +1347,19 @@ func file_aperture_flowcontrol_v1_flowcontrol_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc, + RawDescriptor: file_aperture_flowcontrol_check_v1_check_proto_rawDesc, NumEnums: 6, NumMessages: 10, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_aperture_flowcontrol_v1_flowcontrol_proto_goTypes, - DependencyIndexes: file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs, - EnumInfos: file_aperture_flowcontrol_v1_flowcontrol_proto_enumTypes, - MessageInfos: file_aperture_flowcontrol_v1_flowcontrol_proto_msgTypes, + GoTypes: file_aperture_flowcontrol_check_v1_check_proto_goTypes, + DependencyIndexes: file_aperture_flowcontrol_check_v1_check_proto_depIdxs, + EnumInfos: file_aperture_flowcontrol_check_v1_check_proto_enumTypes, + MessageInfos: file_aperture_flowcontrol_check_v1_check_proto_msgTypes, }.Build() - File_aperture_flowcontrol_v1_flowcontrol_proto = out.File - file_aperture_flowcontrol_v1_flowcontrol_proto_rawDesc = nil - file_aperture_flowcontrol_v1_flowcontrol_proto_goTypes = nil - file_aperture_flowcontrol_v1_flowcontrol_proto_depIdxs = nil + File_aperture_flowcontrol_check_v1_check_proto = out.File + file_aperture_flowcontrol_check_v1_check_proto_rawDesc = nil + file_aperture_flowcontrol_check_v1_check_proto_goTypes = nil + file_aperture_flowcontrol_check_v1_check_proto_depIdxs = nil } diff --git a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.json.go b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.json.go similarity index 97% rename from sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.json.go rename to sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.json.go index 3033b66043..a31b97dfe4 100644 --- a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol.pb.json.go +++ b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check.pb.json.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package flowcontrolv1 +package checkv1 import ( "google.golang.org/protobuf/encoding/protojson" diff --git a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_deepcopy.gen.go b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_deepcopy.gen.go similarity index 99% rename from api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_deepcopy.gen.go rename to sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_deepcopy.gen.go index fadafe06f9..200f7a5004 100644 --- a/api/gen/proto/go/aperture/flowcontrol/v1/flowcontrol_deepcopy.gen.go +++ b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_deepcopy.gen.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-deepcopy. DO NOT EDIT. -package flowcontrolv1 +package checkv1 import ( proto "google.golang.org/protobuf/proto" diff --git a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_grpc.pb.go b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_grpc.pb.go similarity index 92% rename from sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_grpc.pb.go rename to sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_grpc.pb.go index d5afe19ccf..008a323031 100644 --- a/sdks/aperture-go/gen/proto/flowcontrol/v1/flowcontrol_grpc.pb.go +++ b/sdks/aperture-go/gen/proto/flowcontrol/check/v1/check_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -package flowcontrolv1 +package checkv1 import ( context "context" @@ -32,7 +32,7 @@ func NewFlowControlServiceClient(cc grpc.ClientConnInterface) FlowControlService func (c *flowControlServiceClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) { out := new(CheckResponse) - err := c.cc.Invoke(ctx, "/aperture.flowcontrol.v1.FlowControlService/Check", in, out, opts...) + err := c.cc.Invoke(ctx, "/aperture.flowcontrol.check.v1.FlowControlService/Check", in, out, opts...) if err != nil { return nil, err } @@ -76,7 +76,7 @@ func _FlowControlService_Check_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/aperture.flowcontrol.v1.FlowControlService/Check", + FullMethod: "/aperture.flowcontrol.check.v1.FlowControlService/Check", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(FlowControlServiceServer).Check(ctx, req.(*CheckRequest)) @@ -88,7 +88,7 @@ func _FlowControlService_Check_Handler(srv interface{}, ctx context.Context, dec // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var FlowControlService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "aperture.flowcontrol.v1.FlowControlService", + ServiceName: "aperture.flowcontrol.check.v1.FlowControlService", HandlerType: (*FlowControlServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -97,5 +97,5 @@ var FlowControlService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "aperture/flowcontrol/v1/flowcontrol.proto", + Metadata: "aperture/flowcontrol/check/v1/check.proto", } diff --git a/sdks/aperture-go/sdk/client.go b/sdks/aperture-go/sdk/client.go index 506f058a30..2f8d3eec8a 100644 --- a/sdks/aperture-go/sdk/client.go +++ b/sdks/aperture-go/sdk/client.go @@ -16,7 +16,7 @@ import ( "go.opentelemetry.io/otel/trace" "google.golang.org/grpc" - flowcontrol "github.com/fluxninja/aperture-go/gen/proto/flowcontrol/v1" + flowcontrol "github.com/fluxninja/aperture-go/gen/proto/flowcontrol/check/v1" ) // Client is the interface that is provided to the user upon which they can perform Check calls for their service and eventually shut down in case of error. diff --git a/sdks/aperture-go/sdk/flow.go b/sdks/aperture-go/sdk/flow.go index 57173a94c6..fde29d83e3 100644 --- a/sdks/aperture-go/sdk/flow.go +++ b/sdks/aperture-go/sdk/flow.go @@ -4,7 +4,7 @@ import ( "errors" "time" - flowcontrol "github.com/fluxninja/aperture-go/gen/proto/flowcontrol/v1" + flowcontrol "github.com/fluxninja/aperture-go/gen/proto/flowcontrol/check/v1" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/armeria/RpcUtils.java b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/armeria/RpcUtils.java index 37addcca42..b0efbb0cb7 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/armeria/RpcUtils.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/armeria/RpcUtils.java @@ -1,6 +1,6 @@ package com.fluxninja.aperture.armeria; -import com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse; +import com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse; import com.fluxninja.aperture.sdk.ApertureSDKException; import com.fluxninja.aperture.sdk.FeatureFlow; import com.fluxninja.aperture.sdk.FlowStatus; @@ -11,26 +11,26 @@ import java.util.Map; class RpcUtils { - protected static HttpStatus handleRejectedFlow(FeatureFlow flow) { - CheckResponse.RejectReason reason = flow.checkResponse().getRejectReason(); - try { - flow.end(FlowStatus.Unset); - } catch (ApertureSDKException e) { - e.printStackTrace(); - } - switch (reason) { - case REJECT_REASON_RATE_LIMITED: - return HttpStatus.TOO_MANY_REQUESTS; - case REJECT_REASON_CONCURRENCY_LIMITED: - return HttpStatus.SERVICE_UNAVAILABLE; - default: - return HttpStatus.FORBIDDEN; - } + protected static HttpStatus handleRejectedFlow(FeatureFlow flow) { + CheckResponse.RejectReason reason = flow.checkResponse().getRejectReason(); + try { + flow.end(FlowStatus.Unset); + } catch (ApertureSDKException e) { + e.printStackTrace(); } - - protected static Map labelsFromRequest(RpcRequest req) { - Map labels = new HashMap<>(); - labels.put("rpc.method", req.method()); - return labels; + switch (reason) { + case REJECT_REASON_RATE_LIMITED: + return HttpStatus.TOO_MANY_REQUESTS; + case REJECT_REASON_CONCURRENCY_LIMITED: + return HttpStatus.SERVICE_UNAVAILABLE; + default: + return HttpStatus.FORBIDDEN; } + } + + protected static Map labelsFromRequest(RpcRequest req) { + Map labels = new HashMap<>(); + labels.put("rpc.method", req.method()); + return labels; + } } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDK.java b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDK.java index 6a93db83da..447d4d2ca5 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDK.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDK.java @@ -1,8 +1,8 @@ package com.fluxninja.aperture.sdk; -import com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest; -import com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse; -import com.fluxninja.generated.aperture.flowcontrol.v1.FlowControlServiceGrpc; +import com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest; +import com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse; +import com.fluxninja.generated.aperture.flowcontrol.check.v1.FlowControlServiceGrpc; import com.fluxninja.generated.envoy.service.auth.v3.AttributeContext; import com.fluxninja.generated.envoy.service.auth.v3.AuthorizationGrpc; import com.fluxninja.generated.google.rpc.Status; @@ -40,7 +40,8 @@ public final class ApertureSDK { } /** - * Returns a new {@link ApertureSDKBuilder} for configuring an instance of {@linkplain + * Returns a new {@link ApertureSDKBuilder} for configuring an instance of + * {@linkplain * ApertureSDK the Aperture SDK}. */ public static ApertureSDKBuilder builder() { @@ -50,12 +51,13 @@ public static ApertureSDKBuilder builder() { public FeatureFlow startFlow(String feature, Map explicitLabels) { Map labels = new HashMap<>(); - for (Map.Entry entry: Baggage.current().asMap().entrySet()) { + for (Map.Entry entry : Baggage.current().asMap().entrySet()) { String value; try { value = URLDecoder.decode(entry.getValue().getValue(), StandardCharsets.UTF_8.name()); } catch (java.io.UnsupportedEncodingException e) { - // This should never happen, as `StandardCharsets.UTF_8.name()` is a valid encoding + // This should never happen, as `StandardCharsets.UTF_8.name()` is a valid + // encoding throw new RuntimeException(e); } labels.put(entry.getKey(), value); @@ -63,62 +65,60 @@ public FeatureFlow startFlow(String feature, Map explicitLabels) labels.putAll(explicitLabels); - CheckRequest req = CheckRequest.newBuilder() - .setFeature(feature) - .putAllLabels(labels) - .build(); + .setFeature(feature) + .putAllLabels(labels) + .build(); Span span = this.tracer.spanBuilder("Aperture Check").startSpan() - .setAttribute(FLOW_START_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()) - .setAttribute(SOURCE_LABEL, "sdk"); + .setAttribute(FLOW_START_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()) + .setAttribute(SOURCE_LABEL, "sdk"); CheckResponse res; try { res = this.flowControlClient - .withDeadlineAfter(timeout.toNanos(), TimeUnit.NANOSECONDS) - .check(req); + .withDeadlineAfter(timeout.toNanos(), TimeUnit.NANOSECONDS) + .check(req); } catch (StatusRuntimeException e) { // deadline exceeded or couldn't reach agent - request should not be blocked res = CheckResponse.newBuilder() - .setDecisionType(CheckResponse.DecisionType.DECISION_TYPE_ACCEPTED) - .build(); + .setDecisionType(CheckResponse.DecisionType.DECISION_TYPE_ACCEPTED) + .build(); } span.setAttribute(WORKLOAD_START_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()); return new FeatureFlow( - res, - span, - false - ); + res, + span, + false); } public TrafficFlow startTrafficFlow(AttributeContext attributes) { - com.fluxninja.generated.envoy.service.auth.v3.CheckRequest req = com.fluxninja.generated.envoy.service.auth.v3.CheckRequest.newBuilder() - .setAttributes(attributes) - .build(); + com.fluxninja.generated.envoy.service.auth.v3.CheckRequest req = com.fluxninja.generated.envoy.service.auth.v3.CheckRequest + .newBuilder() + .setAttributes(attributes) + .build(); Span span = this.tracer.spanBuilder("Aperture Check").startSpan() - .setAttribute(FLOW_START_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()) - .setAttribute(SOURCE_LABEL, "sdk"); + .setAttribute(FLOW_START_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()) + .setAttribute(SOURCE_LABEL, "sdk"); com.fluxninja.generated.envoy.service.auth.v3.CheckResponse res; try { res = this.envoyAuthzClient - .withDeadlineAfter(timeout.toNanos(), TimeUnit.NANOSECONDS) - .check(req); + .withDeadlineAfter(timeout.toNanos(), TimeUnit.NANOSECONDS) + .check(req); } catch (StatusRuntimeException e) { // deadline exceeded or couldn't reach agent - request should not be blocked res = com.fluxninja.generated.envoy.service.auth.v3.CheckResponse.newBuilder() - .setStatus(Status.newBuilder().setCode(Code.OK_VALUE).build()) - .build(); + .setStatus(Status.newBuilder().setCode(Code.OK_VALUE).build()) + .build(); } span.setAttribute(WORKLOAD_START_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()); return new TrafficFlow( - res, - span, - false - ); + res, + span, + false); } } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDKBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDKBuilder.java index 73b2737f7d..d66ff22948 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDKBuilder.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/ApertureSDKBuilder.java @@ -1,6 +1,6 @@ package com.fluxninja.aperture.sdk; -import com.fluxninja.generated.aperture.flowcontrol.v1.FlowControlServiceGrpc; +import com.fluxninja.generated.aperture.flowcontrol.check.v1.FlowControlServiceGrpc; import com.fluxninja.generated.envoy.service.auth.v3.AuthorizationGrpc; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; @@ -21,7 +21,8 @@ public final class ApertureSDKBuilder { private int port; private boolean useHttps = false; - ApertureSDKBuilder() {} + ApertureSDKBuilder() { + } public ApertureSDKBuilder setHost(String host) { this.host = host; @@ -55,7 +56,7 @@ public ApertureSDK build() throws ApertureSDKException { } String protocol = "http"; - if(this.useHttps) { + if (this.useHttps) { protocol = "https"; } @@ -65,21 +66,22 @@ public ApertureSDK build() throws ApertureSDKException { } ManagedChannel channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build(); - FlowControlServiceGrpc.FlowControlServiceBlockingStub flowControlClient = FlowControlServiceGrpc.newBlockingStub(channel); + FlowControlServiceGrpc.FlowControlServiceBlockingStub flowControlClient = FlowControlServiceGrpc + .newBlockingStub(channel); AuthorizationGrpc.AuthorizationBlockingStub envoyAuthzClient = AuthorizationGrpc.newBlockingStub(channel); OtlpGrpcSpanExporter spanExporter = OtlpGrpcSpanExporter.builder() - .setEndpoint(String.format("%s://%s:%d", protocol, host, port)) - .build(); + .setEndpoint(String.format("%s://%s:%d", protocol, host, port)) + .build(); SdkTracerProvider traceProvider = SdkTracerProvider.builder() - .addSpanProcessor(SimpleSpanProcessor.create(spanExporter)) - .build(); + .addSpanProcessor(SimpleSpanProcessor.create(spanExporter)) + .build(); Tracer tracer = traceProvider.tracerBuilder(LIBRARY_NAME).build(); return new ApertureSDK( - flowControlClient, - envoyAuthzClient, - tracer, - timeout); + flowControlClient, + envoyAuthzClient, + tracer, + timeout); } } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/FeatureFlow.java b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/FeatureFlow.java index 42b9ca1d81..06676c8b53 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/FeatureFlow.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/aperture/sdk/FeatureFlow.java @@ -1,6 +1,6 @@ package com.fluxninja.aperture.sdk; -import com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse; +import com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse; import com.google.protobuf.util.JsonFormat; import io.opentelemetry.api.trace.Span; @@ -12,9 +12,9 @@ public final class FeatureFlow { private boolean ended; FeatureFlow( - CheckResponse checkResponse, - Span span, - boolean ended) { + CheckResponse checkResponse, + Span span, + boolean ended) { this.checkResponse = checkResponse; this.span = span; this.ended = ended; @@ -45,8 +45,8 @@ public void end(FlowStatus statusCode) throws ApertureSDKException { } this.span.setAttribute(FEATURE_STATUS_LABEL, statusCode.name()) - .setAttribute(CHECK_RESPONSE_LABEL, checkResponseJSONBytes) - .setAttribute(FLOW_STOP_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()); + .setAttribute(CHECK_RESPONSE_LABEL, checkResponseJSONBytes) + .setAttribute(FLOW_STOP_TIMESTAMP_LABEL, Utils.getCurrentEpochNanos()); this.span.end(); } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckProto.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckProto.java new file mode 100644 index 0000000000..8cb7077e03 --- /dev/null +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckProto.java @@ -0,0 +1,234 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aperture/flowcontrol/check/v1/check.proto + +package com.fluxninja.generated.aperture.flowcontrol.check.v1; + +public final class CheckProto { + private CheckProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_CheckRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_CheckRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_CheckRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_CheckResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_CheckResponse_TelemetryFlowLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)aperture/flowcontrol/check/v1/check.pr" + + "oto\022\035aperture.flowcontrol.check.v1\032\037goog" + + "le/protobuf/timestamp.proto\"\264\001\n\014CheckReq" + + "uest\022\030\n\007feature\030\001 \001(\tR\007feature\022O\n\006labels" + + "\030\002 \003(\01327.aperture.flowcontrol.check.v1.C" + + "heckRequest.LabelsEntryR\006labels\0329\n\013Label" + + "sEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR" + + "\005value:\0028\001\"\335\n\n\rCheckResponse\0220\n\005start\030\001 " + + "\001(\0132\032.google.protobuf.TimestampR\005start\022," + + "\n\003end\030\002 \001(\0132\032.google.protobuf.TimestampR" + + "\003end\022H\n\005error\030\003 \001(\01622.aperture.flowcontr" + + "ol.check.v1.CheckResponse.ErrorR\005error\022\032" + + "\n\010services\030\004 \003(\tR\010services\022]\n\022control_po" + + "int_info\030\005 \001(\0132/.aperture.flowcontrol.ch" + + "eck.v1.ControlPointInfoR\020controlPointInf" + + "o\022&\n\017flow_label_keys\030\006 \003(\tR\rflowLabelKey" + + "s\022y\n\025telemetry_flow_labels\030\007 \003(\0132E.apert" + + "ure.flowcontrol.check.v1.CheckResponse.T" + + "elemetryFlowLabelsEntryR\023telemetryFlowLa" + + "bels\022^\n\rdecision_type\030\010 \001(\01629.aperture.f" + + "lowcontrol.check.v1.CheckResponse.Decisi" + + "onTypeR\014decisionType\022^\n\rreject_reason\030\t " + + "\001(\01629.aperture.flowcontrol.check.v1.Chec" + + "kResponse.RejectReasonR\014rejectReason\022X\n\020" + + "classifier_infos\030\n \003(\0132-.aperture.flowco" + + "ntrol.check.v1.ClassifierInfoR\017classifie" + + "rInfos\022V\n\020flux_meter_infos\030\013 \003(\0132,.apert" + + "ure.flowcontrol.check.v1.FluxMeterInfoR\016" + + "fluxMeterInfos\022[\n\021limiter_decisions\030\014 \003(" + + "\0132..aperture.flowcontrol.check.v1.Limite" + + "rDecisionR\020limiterDecisions\032F\n\030Telemetry" + + "FlowLabelsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + + "ue\030\002 \001(\tR\005value:\0028\001\"\265\001\n\005Error\022\016\n\nERROR_N" + + "ONE\020\000\022#\n\037ERROR_MISSING_TRAFFIC_DIRECTION" + + "\020\001\022#\n\037ERROR_INVALID_TRAFFIC_DIRECTION\020\002\022" + + "\037\n\033ERROR_CONVERT_TO_MAP_STRUCT\020\003\022\035\n\031ERRO" + + "R_CONVERT_TO_REGO_AST\020\004\022\022\n\016ERROR_CLASSIF" + + "Y\020\005\"m\n\014RejectReason\022\026\n\022REJECT_REASON_NON" + + "E\020\000\022\036\n\032REJECT_REASON_RATE_LIMITED\020\001\022%\n!R" + + "EJECT_REASON_CONCURRENCY_LIMITED\020\002\"F\n\014De" + + "cisionType\022\032\n\026DECISION_TYPE_ACCEPTED\020\000\022\032" + + "\n\026DECISION_TYPE_REJECTED\020\001\"\305\001\n\020ControlPo" + + "intInfo\022H\n\004type\030\001 \001(\01624.aperture.flowcon" + + "trol.check.v1.ControlPointInfo.TypeR\004typ" + + "e\022\030\n\007feature\030\002 \001(\tR\007feature\"M\n\004Type\022\020\n\014T" + + "YPE_UNKNOWN\020\000\022\020\n\014TYPE_FEATURE\020\001\022\020\n\014TYPE_" + + "INGRESS\020\002\022\017\n\013TYPE_EGRESS\020\003\"\212\003\n\016Classifie" + + "rInfo\022\037\n\013policy_name\030\001 \001(\tR\npolicyName\022\037" + + "\n\013policy_hash\030\002 \001(\tR\npolicyHash\022)\n\020class" + + "ifier_index\030\003 \001(\003R\017classifierIndex\022\033\n\tla" + + "bel_key\030\004 \001(\tR\010labelKey\022I\n\005error\030\005 \001(\01623" + + ".aperture.flowcontrol.check.v1.Classifie" + + "rInfo.ErrorR\005error\"\242\001\n\005Error\022\016\n\nERROR_NO" + + "NE\020\000\022\025\n\021ERROR_EVAL_FAILED\020\001\022\031\n\025ERROR_EMP" + + "TY_RESULTSET\020\002\022\035\n\031ERROR_AMBIGUOUS_RESULT" + + "SET\020\003\022\032\n\026ERROR_MULTI_EXPRESSION\020\004\022\034\n\030ERR" + + "OR_EXPRESSION_NOT_MAP\020\005\"\336\005\n\017LimiterDecis" + + "ion\022\037\n\013policy_name\030\001 \001(\tR\npolicyName\022\037\n\013" + + "policy_hash\030\002 \001(\tR\npolicyHash\022\'\n\017compone" + + "nt_index\030\003 \001(\003R\016componentIndex\022\030\n\007droppe" + + "d\030\004 \001(\010R\007dropped\022T\n\006reason\030\005 \001(\0162<.apert" + + "ure.flowcontrol.check.v1.LimiterDecision" + + ".LimiterReasonR\006reason\022l\n\021rate_limiter_i" + + "nfo\030\006 \001(\0132>.aperture.flowcontrol.check.v" + + "1.LimiterDecision.RateLimiterInfoH\000R\017rat" + + "eLimiterInfo\022\201\001\n\030concurrency_limiter_inf" + + "o\030\007 \001(\0132E.aperture.flowcontrol.check.v1." + + "LimiterDecision.ConcurrencyLimiterInfoH\000" + + "R\026concurrencyLimiterInfo\032_\n\017RateLimiterI" + + "nfo\022\034\n\tremaining\030\001 \001(\003R\tremaining\022\030\n\007cur" + + "rent\030\002 \001(\003R\007current\022\024\n\005label\030\003 \001(\tR\005labe" + + "l\032?\n\026ConcurrencyLimiterInfo\022%\n\016workload_" + + "index\030\001 \001(\tR\rworkloadIndex\"Q\n\rLimiterRea" + + "son\022\036\n\032LIMITER_REASON_UNSPECIFIED\020\000\022 \n\034L" + + "IMITER_REASON_KEY_NOT_FOUND\020\001B\t\n\007details" + + "\"7\n\rFluxMeterInfo\022&\n\017flux_meter_name\030\001 \001" + + "(\tR\rfluxMeterName2z\n\022FlowControlService\022" + + "d\n\005Check\022+.aperture.flowcontrol.check.v1" + + ".CheckRequest\032,.aperture.flowcontrol.che" + + "ck.v1.CheckResponse\"\000B\260\002\n5com.fluxninja." + + "generated.aperture.flowcontrol.check.v1B" + + "\nCheckProtoP\001ZTgithub.com/fluxninja/aper" + + "ture/api/gen/proto/go/aperture/flowcontr" + + "ol/check/v1;checkv1\242\002\003AFC\252\002\035Aperture.Flo" + + "wcontrol.Check.V1\312\002\035Aperture\\Flowcontrol" + + "\\Check\\V1\342\002)Aperture\\Flowcontrol\\Check\\V" + + "1\\GPBMetadata\352\002 Aperture::Flowcontrol::C" + + "heck::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_aperture_flowcontrol_check_v1_CheckRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor, + new java.lang.String[] { "Feature", "Labels", }); + internal_static_aperture_flowcontrol_check_v1_CheckRequest_LabelsEntry_descriptor = + internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor.getNestedTypes().get(0); + internal_static_aperture_flowcontrol_check_v1_CheckRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_CheckRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_aperture_flowcontrol_check_v1_CheckResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor, + new java.lang.String[] { "Start", "End", "Error", "Services", "ControlPointInfo", "FlowLabelKeys", "TelemetryFlowLabels", "DecisionType", "RejectReason", "ClassifierInfos", "FluxMeterInfos", "LimiterDecisions", }); + internal_static_aperture_flowcontrol_check_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor = + internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor.getNestedTypes().get(0); + internal_static_aperture_flowcontrol_check_v1_CheckResponse_TelemetryFlowLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_descriptor, + new java.lang.String[] { "Type", "Feature", }); + internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_descriptor, + new java.lang.String[] { "PolicyName", "PolicyHash", "ClassifierIndex", "LabelKey", "Error", }); + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor, + new java.lang.String[] { "PolicyName", "PolicyHash", "ComponentIndex", "Dropped", "Reason", "RateLimiterInfo", "ConcurrencyLimiterInfo", "Details", }); + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_descriptor = + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor.getNestedTypes().get(0); + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_descriptor, + new java.lang.String[] { "Remaining", "Current", "Label", }); + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor = + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor.getNestedTypes().get(1); + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor, + new java.lang.String[] { "WorkloadIndex", }); + internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_descriptor, + new java.lang.String[] { "FluxMeterName", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckRequest.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckRequest.java similarity index 84% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckRequest.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckRequest.java index a45527d287..93ab56e3a1 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckRequest.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckRequest.java @@ -1,18 +1,18 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; /** *
  * CheckRequest contains fields required to perform Check call.
  * 
* - * Protobuf type {@code aperture.flowcontrol.v1.CheckRequest} + * Protobuf type {@code aperture.flowcontrol.check.v1.CheckRequest} */ public final class CheckRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.CheckRequest) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.CheckRequest) CheckRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CheckRequest.newBuilder() to construct. @@ -96,7 +96,7 @@ private CheckRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -114,9 +114,9 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckRequest_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.class, com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.Builder.class); } public static final int FEATURE_FIELD_NUMBER = 1; @@ -163,7 +163,7 @@ private static final class LabelsDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckRequest_LabelsEntry_descriptor, + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckRequest_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -293,10 +293,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest other = (com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest) obj; if (!getFeature() .equals(other.getFeature())) return false; @@ -324,69 +324,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -399,7 +399,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parse public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -419,15 +419,15 @@ protected Builder newBuilderForType( * CheckRequest contains fields required to perform Check call. * * - * Protobuf type {@code aperture.flowcontrol.v1.CheckRequest} + * Protobuf type {@code aperture.flowcontrol.check.v1.CheckRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.CheckRequest) - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.CheckRequest) + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -455,12 +455,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckRequest_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.class, com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -487,17 +487,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckRequest_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest build() { - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -505,8 +505,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest build() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest result = new com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest(this); int from_bitField0_ = bitField0_; result.feature_ = feature_; result.labels_ = internalGetLabels(); @@ -549,16 +549,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.getDefaultInstance()) return this; if (!other.getFeature().isEmpty()) { feature_ = other.feature_; onChanged(); @@ -580,11 +580,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -814,16 +814,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.CheckRequest) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.CheckRequest) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.CheckRequest) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.CheckRequest) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -848,7 +848,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckRequestOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckRequestOrBuilder.java similarity index 90% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckRequestOrBuilder.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckRequestOrBuilder.java index 9b847afc5c..aeffabcb17 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckRequestOrBuilder.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckRequestOrBuilder.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; public interface CheckRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.CheckRequest) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.CheckRequest) com.google.protobuf.MessageOrBuilder { /** diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckResponse.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckResponse.java similarity index 78% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckResponse.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckResponse.java index 851283afba..99e7d3a94e 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckResponse.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckResponse.java @@ -1,18 +1,18 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; /** *
  * CheckResponse contains fields that represent decision made by Check call.
  * 
* - * Protobuf type {@code aperture.flowcontrol.v1.CheckResponse} + * Protobuf type {@code aperture.flowcontrol.check.v1.CheckResponse} */ public final class CheckResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.CheckResponse) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.CheckResponse) CheckResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckResponse.newBuilder() to construct. @@ -103,11 +103,11 @@ private CheckResponse( break; } case 42: { - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder subBuilder = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder subBuilder = null; if (controlPointInfo_ != null) { subBuilder = controlPointInfo_.toBuilder(); } - controlPointInfo_ = input.readMessage(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.parser(), extensionRegistry); + controlPointInfo_ = input.readMessage(com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(controlPointInfo_); controlPointInfo_ = subBuilder.buildPartial(); @@ -151,29 +151,29 @@ private CheckResponse( } case 82: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { - classifierInfos_ = new java.util.ArrayList(); + classifierInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } classifierInfos_.add( - input.readMessage(com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.parser(), extensionRegistry)); + input.readMessage(com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.parser(), extensionRegistry)); break; } case 90: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { - fluxMeterInfos_ = new java.util.ArrayList(); + fluxMeterInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } fluxMeterInfos_.add( - input.readMessage(com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.parser(), extensionRegistry)); + input.readMessage(com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.parser(), extensionRegistry)); break; } case 98: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { - limiterDecisions_ = new java.util.ArrayList(); + limiterDecisions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } limiterDecisions_.add( - input.readMessage(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.parser(), extensionRegistry)); + input.readMessage(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.parser(), extensionRegistry)); break; } default: { @@ -214,7 +214,7 @@ private CheckResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -232,9 +232,9 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckResponse_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.class, com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Builder.class); } /** @@ -242,7 +242,7 @@ protected com.google.protobuf.MapField internalGetMapField( * Error information. * * - * Protobuf enum {@code aperture.flowcontrol.v1.CheckResponse.Error} + * Protobuf enum {@code aperture.flowcontrol.check.v1.CheckResponse.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { @@ -359,7 +359,7 @@ public Error findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.getDescriptor().getEnumTypes().get(0); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); @@ -382,7 +382,7 @@ private Error(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.v1.CheckResponse.Error) + // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.check.v1.CheckResponse.Error) } /** @@ -390,7 +390,7 @@ private Error(int value) { * RejectReason contains fields that give further information about rejection. * * - * Protobuf enum {@code aperture.flowcontrol.v1.CheckResponse.RejectReason} + * Protobuf enum {@code aperture.flowcontrol.check.v1.CheckResponse.RejectReason} */ public enum RejectReason implements com.google.protobuf.ProtocolMessageEnum { @@ -480,7 +480,7 @@ public RejectReason findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.getDescriptor().getEnumTypes().get(1); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.getDescriptor().getEnumTypes().get(1); } private static final RejectReason[] VALUES = values(); @@ -503,7 +503,7 @@ private RejectReason(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.v1.CheckResponse.RejectReason) + // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.check.v1.CheckResponse.RejectReason) } /** @@ -511,7 +511,7 @@ private RejectReason(int value) { * DecisionType contains fields that represent decision made by Check call. * * - * Protobuf enum {@code aperture.flowcontrol.v1.CheckResponse.DecisionType} + * Protobuf enum {@code aperture.flowcontrol.check.v1.CheckResponse.DecisionType} */ public enum DecisionType implements com.google.protobuf.ProtocolMessageEnum { @@ -592,7 +592,7 @@ public DecisionType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.getDescriptor().getEnumTypes().get(2); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.getDescriptor().getEnumTypes().get(2); } private static final DecisionType[] VALUES = values(); @@ -615,7 +615,7 @@ private DecisionType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.v1.CheckResponse.DecisionType) + // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.check.v1.CheckResponse.DecisionType) } public static final int START_FIELD_NUMBER = 1; @@ -701,7 +701,7 @@ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { @@ -712,13 +712,13 @@ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return The error. */ - @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error getError() { + @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error getError() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error result = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error.valueOf(error_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error result = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error.valueOf(error_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error.UNRECOGNIZED : result; } public static final int SERVICES_FIELD_NUMBER = 4; @@ -773,13 +773,13 @@ public java.lang.String getServices(int index) { } public static final int CONTROL_POINT_INFO_FIELD_NUMBER = 5; - private com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo controlPointInfo_; + private com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo controlPointInfo_; /** *
    * control_point of request
    * 
* - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; * @return Whether the controlPointInfo field is set. */ @java.lang.Override @@ -791,22 +791,22 @@ public boolean hasControlPointInfo() { * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; * @return The controlPointInfo. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getControlPointInfo() { - return controlPointInfo_ == null ? com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.getDefaultInstance() : controlPointInfo_; + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo getControlPointInfo() { + return controlPointInfo_ == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.getDefaultInstance() : controlPointInfo_; } /** *
    * control_point of request
    * 
* - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder getControlPointInfoOrBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder getControlPointInfoOrBuilder() { return getControlPointInfo(); } @@ -867,7 +867,7 @@ private static final class TelemetryFlowLabelsDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor, + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -965,7 +965,7 @@ public java.lang.String getTelemetryFlowLabelsOrThrow( * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return The enum numeric value on the wire for decisionType. */ @java.lang.Override public int getDecisionTypeValue() { @@ -976,13 +976,13 @@ public java.lang.String getTelemetryFlowLabelsOrThrow( * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return The decisionType. */ - @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType getDecisionType() { + @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType getDecisionType() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType result = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType.valueOf(decisionType_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType result = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType.valueOf(decisionType_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType.UNRECOGNIZED : result; } public static final int REJECT_REASON_FIELD_NUMBER = 9; @@ -992,7 +992,7 @@ public java.lang.String getTelemetryFlowLabelsOrThrow( * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return The enum numeric value on the wire for rejectReason. */ @java.lang.Override public int getRejectReasonValue() { @@ -1003,26 +1003,26 @@ public java.lang.String getTelemetryFlowLabelsOrThrow( * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return The rejectReason. */ - @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason getRejectReason() { + @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason getRejectReason() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason result = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason.valueOf(rejectReason_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason result = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason.valueOf(rejectReason_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason.UNRECOGNIZED : result; } public static final int CLASSIFIER_INFOS_FIELD_NUMBER = 10; - private java.util.List classifierInfos_; + private java.util.List classifierInfos_; /** *
    * classifiers that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ @java.lang.Override - public java.util.List getClassifierInfosList() { + public java.util.List getClassifierInfosList() { return classifierInfos_; } /** @@ -1030,10 +1030,10 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ @java.lang.Override - public java.util.List + public java.util.List getClassifierInfosOrBuilderList() { return classifierInfos_; } @@ -1042,7 +1042,7 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ @java.lang.Override public int getClassifierInfosCount() { @@ -1053,10 +1053,10 @@ public int getClassifierInfosCount() { * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getClassifierInfos(int index) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo getClassifierInfos(int index) { return classifierInfos_.get(index); } /** @@ -1064,25 +1064,25 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getClassif * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder getClassifierInfosOrBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder getClassifierInfosOrBuilder( int index) { return classifierInfos_.get(index); } public static final int FLUX_METER_INFOS_FIELD_NUMBER = 11; - private java.util.List fluxMeterInfos_; + private java.util.List fluxMeterInfos_; /** *
    * flux meters that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ @java.lang.Override - public java.util.List getFluxMeterInfosList() { + public java.util.List getFluxMeterInfosList() { return fluxMeterInfos_; } /** @@ -1090,10 +1090,10 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ @java.lang.Override - public java.util.List + public java.util.List getFluxMeterInfosOrBuilderList() { return fluxMeterInfos_; } @@ -1102,7 +1102,7 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ @java.lang.Override public int getFluxMeterInfosCount() { @@ -1113,10 +1113,10 @@ public int getFluxMeterInfosCount() { * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getFluxMeterInfos(int index) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo getFluxMeterInfos(int index) { return fluxMeterInfos_.get(index); } /** @@ -1124,25 +1124,25 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getFluxMete * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder getFluxMeterInfosOrBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder getFluxMeterInfosOrBuilder( int index) { return fluxMeterInfos_.get(index); } public static final int LIMITER_DECISIONS_FIELD_NUMBER = 12; - private java.util.List limiterDecisions_; + private java.util.List limiterDecisions_; /** *
    * limiter_decisions contains information about decision made by each limiter.
    * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ @java.lang.Override - public java.util.List getLimiterDecisionsList() { + public java.util.List getLimiterDecisionsList() { return limiterDecisions_; } /** @@ -1150,10 +1150,10 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ @java.lang.Override - public java.util.List + public java.util.List getLimiterDecisionsOrBuilderList() { return limiterDecisions_; } @@ -1162,7 +1162,7 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ @java.lang.Override public int getLimiterDecisionsCount() { @@ -1173,10 +1173,10 @@ public int getLimiterDecisionsCount() { * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getLimiterDecisions(int index) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision getLimiterDecisions(int index) { return limiterDecisions_.get(index); } /** @@ -1184,10 +1184,10 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getLimite * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder getLimiterDecisionsOrBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder getLimiterDecisionsOrBuilder( int index) { return limiterDecisions_.get(index); } @@ -1212,7 +1212,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (end_ != null) { output.writeMessage(2, getEnd()); } - if (error_ != com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error.ERROR_NONE.getNumber()) { + if (error_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error.ERROR_NONE.getNumber()) { output.writeEnum(3, error_); } for (int i = 0; i < services_.size(); i++) { @@ -1230,10 +1230,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetTelemetryFlowLabels(), TelemetryFlowLabelsDefaultEntryHolder.defaultEntry, 7); - if (decisionType_ != com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType.DECISION_TYPE_ACCEPTED.getNumber()) { + if (decisionType_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType.DECISION_TYPE_ACCEPTED.getNumber()) { output.writeEnum(8, decisionType_); } - if (rejectReason_ != com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason.REJECT_REASON_NONE.getNumber()) { + if (rejectReason_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason.REJECT_REASON_NONE.getNumber()) { output.writeEnum(9, rejectReason_); } for (int i = 0; i < classifierInfos_.size(); i++) { @@ -1262,7 +1262,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEnd()); } - if (error_ != com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error.ERROR_NONE.getNumber()) { + if (error_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error.ERROR_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, error_); } @@ -1296,11 +1296,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, telemetryFlowLabels__); } - if (decisionType_ != com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType.DECISION_TYPE_ACCEPTED.getNumber()) { + if (decisionType_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType.DECISION_TYPE_ACCEPTED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, decisionType_); } - if (rejectReason_ != com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason.REJECT_REASON_NONE.getNumber()) { + if (rejectReason_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason.REJECT_REASON_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, rejectReason_); } @@ -1326,10 +1326,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse other = (com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { @@ -1419,69 +1419,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1494,7 +1494,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse pars public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1514,15 +1514,15 @@ protected Builder newBuilderForType( * CheckResponse contains fields that represent decision made by Check call. * * - * Protobuf type {@code aperture.flowcontrol.v1.CheckResponse} + * Protobuf type {@code aperture.flowcontrol.check.v1.CheckResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.CheckResponse) - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.CheckResponse) + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1550,12 +1550,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckResponse_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.class, com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1629,17 +1629,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_CheckResponse_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse build() { - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1647,8 +1647,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse build() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse result = new com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse(this); int from_bitField0_ = bitField0_; if (startBuilder_ == null) { result.start_ = start_; @@ -1745,16 +1745,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.getDefaultInstance()) return this; if (other.hasStart()) { mergeStart(other.getStart()); } @@ -1888,11 +1888,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2219,7 +2219,7 @@ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { @@ -2230,7 +2230,7 @@ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @param value The enum numeric value on the wire for error to set. * @return This builder for chaining. */ @@ -2245,25 +2245,25 @@ public Builder setErrorValue(int value) { * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return The error. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error getError() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error getError() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error result = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error.valueOf(error_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error result = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error.valueOf(error_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error.UNRECOGNIZED : result; } /** *
      * error information.
      * 
* - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @param value The error to set. * @return This builder for chaining. */ - public Builder setError(com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error value) { + public Builder setError(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error value) { if (value == null) { throw new NullPointerException(); } @@ -2277,7 +2277,7 @@ public Builder setError(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRes * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return This builder for chaining. */ public Builder clearError() { @@ -2433,15 +2433,15 @@ public Builder addServicesBytes( return this; } - private com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo controlPointInfo_; + private com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo controlPointInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder> controlPointInfoBuilder_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder> controlPointInfoBuilder_; /** *
      * control_point of request
      * 
* - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; * @return Whether the controlPointInfo field is set. */ public boolean hasControlPointInfo() { @@ -2452,12 +2452,12 @@ public boolean hasControlPointInfo() { * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; * @return The controlPointInfo. */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getControlPointInfo() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo getControlPointInfo() { if (controlPointInfoBuilder_ == null) { - return controlPointInfo_ == null ? com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.getDefaultInstance() : controlPointInfo_; + return controlPointInfo_ == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.getDefaultInstance() : controlPointInfo_; } else { return controlPointInfoBuilder_.getMessage(); } @@ -2467,9 +2467,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getContr * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ - public Builder setControlPointInfo(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo value) { + public Builder setControlPointInfo(com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo value) { if (controlPointInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2487,10 +2487,10 @@ public Builder setControlPointInfo(com.fluxninja.generated.aperture.flowcontrol. * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ public Builder setControlPointInfo( - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder builderForValue) { + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder builderForValue) { if (controlPointInfoBuilder_ == null) { controlPointInfo_ = builderForValue.build(); onChanged(); @@ -2505,13 +2505,13 @@ public Builder setControlPointInfo( * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ - public Builder mergeControlPointInfo(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo value) { + public Builder mergeControlPointInfo(com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo value) { if (controlPointInfoBuilder_ == null) { if (controlPointInfo_ != null) { controlPointInfo_ = - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.newBuilder(controlPointInfo_).mergeFrom(value).buildPartial(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.newBuilder(controlPointInfo_).mergeFrom(value).buildPartial(); } else { controlPointInfo_ = value; } @@ -2527,7 +2527,7 @@ public Builder mergeControlPointInfo(com.fluxninja.generated.aperture.flowcontro * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ public Builder clearControlPointInfo() { if (controlPointInfoBuilder_ == null) { @@ -2545,9 +2545,9 @@ public Builder clearControlPointInfo() { * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder getControlPointInfoBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder getControlPointInfoBuilder() { onChanged(); return getControlPointInfoFieldBuilder().getBuilder(); @@ -2557,14 +2557,14 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder getControlPointInfoOrBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder getControlPointInfoOrBuilder() { if (controlPointInfoBuilder_ != null) { return controlPointInfoBuilder_.getMessageOrBuilder(); } else { return controlPointInfo_ == null ? - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.getDefaultInstance() : controlPointInfo_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.getDefaultInstance() : controlPointInfo_; } } /** @@ -2572,14 +2572,14 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder> + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder> getControlPointInfoFieldBuilder() { if (controlPointInfoBuilder_ == null) { controlPointInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder>( + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder>( getControlPointInfo(), getParentForChildren(), isClean()); @@ -2899,7 +2899,7 @@ public Builder putAllTelemetryFlowLabels( * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return The enum numeric value on the wire for decisionType. */ @java.lang.Override public int getDecisionTypeValue() { @@ -2910,7 +2910,7 @@ public Builder putAllTelemetryFlowLabels( * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @param value The enum numeric value on the wire for decisionType to set. * @return This builder for chaining. */ @@ -2925,25 +2925,25 @@ public Builder setDecisionTypeValue(int value) { * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return The decisionType. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType getDecisionType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType getDecisionType() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType result = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType.valueOf(decisionType_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType result = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType.valueOf(decisionType_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType.UNRECOGNIZED : result; } /** *
      * decision_type contains what the decision was.
      * 
* - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @param value The decisionType to set. * @return This builder for chaining. */ - public Builder setDecisionType(com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType value) { + public Builder setDecisionType(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType value) { if (value == null) { throw new NullPointerException(); } @@ -2957,7 +2957,7 @@ public Builder setDecisionType(com.fluxninja.generated.aperture.flowcontrol.v1.C * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return This builder for chaining. */ public Builder clearDecisionType() { @@ -2973,7 +2973,7 @@ public Builder clearDecisionType() { * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return The enum numeric value on the wire for rejectReason. */ @java.lang.Override public int getRejectReasonValue() { @@ -2984,7 +2984,7 @@ public Builder clearDecisionType() { * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @param value The enum numeric value on the wire for rejectReason to set. * @return This builder for chaining. */ @@ -2999,25 +2999,25 @@ public Builder setRejectReasonValue(int value) { * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return The rejectReason. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason getRejectReason() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason getRejectReason() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason result = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason.valueOf(rejectReason_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason result = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason.valueOf(rejectReason_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason.UNRECOGNIZED : result; } /** *
      * reject_reason contains the reason for the rejection.
      * 
* - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @param value The rejectReason to set. * @return This builder for chaining. */ - public Builder setRejectReason(com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason value) { + public Builder setRejectReason(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason value) { if (value == null) { throw new NullPointerException(); } @@ -3031,7 +3031,7 @@ public Builder setRejectReason(com.fluxninja.generated.aperture.flowcontrol.v1.C * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return This builder for chaining. */ public Builder clearRejectReason() { @@ -3041,26 +3041,26 @@ public Builder clearRejectReason() { return this; } - private java.util.List classifierInfos_ = + private java.util.List classifierInfos_ = java.util.Collections.emptyList(); private void ensureClassifierInfosIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - classifierInfos_ = new java.util.ArrayList(classifierInfos_); + classifierInfos_ = new java.util.ArrayList(classifierInfos_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder> classifierInfosBuilder_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder> classifierInfosBuilder_; /** *
      * classifiers that were matched for this request.
      * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public java.util.List getClassifierInfosList() { + public java.util.List getClassifierInfosList() { if (classifierInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(classifierInfos_); } else { @@ -3072,7 +3072,7 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public int getClassifierInfosCount() { if (classifierInfosBuilder_ == null) { @@ -3086,9 +3086,9 @@ public int getClassifierInfosCount() { * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getClassifierInfos(int index) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo getClassifierInfos(int index) { if (classifierInfosBuilder_ == null) { return classifierInfos_.get(index); } else { @@ -3100,10 +3100,10 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getClassif * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder setClassifierInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo value) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo value) { if (classifierInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3121,10 +3121,10 @@ public Builder setClassifierInfos( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder setClassifierInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder builderForValue) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder builderForValue) { if (classifierInfosBuilder_ == null) { ensureClassifierInfosIsMutable(); classifierInfos_.set(index, builderForValue.build()); @@ -3139,9 +3139,9 @@ public Builder setClassifierInfos( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public Builder addClassifierInfos(com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo value) { + public Builder addClassifierInfos(com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo value) { if (classifierInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3159,10 +3159,10 @@ public Builder addClassifierInfos(com.fluxninja.generated.aperture.flowcontrol.v * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder addClassifierInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo value) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo value) { if (classifierInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3180,10 +3180,10 @@ public Builder addClassifierInfos( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder addClassifierInfos( - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder builderForValue) { + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder builderForValue) { if (classifierInfosBuilder_ == null) { ensureClassifierInfosIsMutable(); classifierInfos_.add(builderForValue.build()); @@ -3198,10 +3198,10 @@ public Builder addClassifierInfos( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder addClassifierInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder builderForValue) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder builderForValue) { if (classifierInfosBuilder_ == null) { ensureClassifierInfosIsMutable(); classifierInfos_.add(index, builderForValue.build()); @@ -3216,10 +3216,10 @@ public Builder addClassifierInfos( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder addAllClassifierInfos( - java.lang.Iterable values) { + java.lang.Iterable values) { if (classifierInfosBuilder_ == null) { ensureClassifierInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3235,7 +3235,7 @@ public Builder addAllClassifierInfos( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder clearClassifierInfos() { if (classifierInfosBuilder_ == null) { @@ -3252,7 +3252,7 @@ public Builder clearClassifierInfos() { * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ public Builder removeClassifierInfos(int index) { if (classifierInfosBuilder_ == null) { @@ -3269,9 +3269,9 @@ public Builder removeClassifierInfos(int index) { * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder getClassifierInfosBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder getClassifierInfosBuilder( int index) { return getClassifierInfosFieldBuilder().getBuilder(index); } @@ -3280,9 +3280,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder ge * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder getClassifierInfosOrBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder getClassifierInfosOrBuilder( int index) { if (classifierInfosBuilder_ == null) { return classifierInfos_.get(index); } else { @@ -3294,9 +3294,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder g * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public java.util.List + public java.util.List getClassifierInfosOrBuilderList() { if (classifierInfosBuilder_ != null) { return classifierInfosBuilder_.getMessageOrBuilderList(); @@ -3309,41 +3309,41 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder g * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder addClassifierInfosBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder addClassifierInfosBuilder() { return getClassifierInfosFieldBuilder().addBuilder( - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.getDefaultInstance()); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.getDefaultInstance()); } /** *
      * classifiers that were matched for this request.
      * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder addClassifierInfosBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder addClassifierInfosBuilder( int index) { return getClassifierInfosFieldBuilder().addBuilder( - index, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.getDefaultInstance()); + index, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.getDefaultInstance()); } /** *
      * classifiers that were matched for this request.
      * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - public java.util.List + public java.util.List getClassifierInfosBuilderList() { return getClassifierInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder> + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder> getClassifierInfosFieldBuilder() { if (classifierInfosBuilder_ == null) { classifierInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder>( + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder>( classifierInfos_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3353,26 +3353,26 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder ad return classifierInfosBuilder_; } - private java.util.List fluxMeterInfos_ = + private java.util.List fluxMeterInfos_ = java.util.Collections.emptyList(); private void ensureFluxMeterInfosIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - fluxMeterInfos_ = new java.util.ArrayList(fluxMeterInfos_); + fluxMeterInfos_ = new java.util.ArrayList(fluxMeterInfos_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder> fluxMeterInfosBuilder_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder> fluxMeterInfosBuilder_; /** *
      * flux meters that were matched for this request.
      * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public java.util.List getFluxMeterInfosList() { + public java.util.List getFluxMeterInfosList() { if (fluxMeterInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(fluxMeterInfos_); } else { @@ -3384,7 +3384,7 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public int getFluxMeterInfosCount() { if (fluxMeterInfosBuilder_ == null) { @@ -3398,9 +3398,9 @@ public int getFluxMeterInfosCount() { * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getFluxMeterInfos(int index) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo getFluxMeterInfos(int index) { if (fluxMeterInfosBuilder_ == null) { return fluxMeterInfos_.get(index); } else { @@ -3412,10 +3412,10 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getFluxMete * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder setFluxMeterInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo value) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo value) { if (fluxMeterInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3433,10 +3433,10 @@ public Builder setFluxMeterInfos( * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder setFluxMeterInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder builderForValue) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder builderForValue) { if (fluxMeterInfosBuilder_ == null) { ensureFluxMeterInfosIsMutable(); fluxMeterInfos_.set(index, builderForValue.build()); @@ -3451,9 +3451,9 @@ public Builder setFluxMeterInfos( * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public Builder addFluxMeterInfos(com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo value) { + public Builder addFluxMeterInfos(com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo value) { if (fluxMeterInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3471,10 +3471,10 @@ public Builder addFluxMeterInfos(com.fluxninja.generated.aperture.flowcontrol.v1 * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder addFluxMeterInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo value) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo value) { if (fluxMeterInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3492,10 +3492,10 @@ public Builder addFluxMeterInfos( * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder addFluxMeterInfos( - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder builderForValue) { + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder builderForValue) { if (fluxMeterInfosBuilder_ == null) { ensureFluxMeterInfosIsMutable(); fluxMeterInfos_.add(builderForValue.build()); @@ -3510,10 +3510,10 @@ public Builder addFluxMeterInfos( * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder addFluxMeterInfos( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder builderForValue) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder builderForValue) { if (fluxMeterInfosBuilder_ == null) { ensureFluxMeterInfosIsMutable(); fluxMeterInfos_.add(index, builderForValue.build()); @@ -3528,10 +3528,10 @@ public Builder addFluxMeterInfos( * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder addAllFluxMeterInfos( - java.lang.Iterable values) { + java.lang.Iterable values) { if (fluxMeterInfosBuilder_ == null) { ensureFluxMeterInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3547,7 +3547,7 @@ public Builder addAllFluxMeterInfos( * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder clearFluxMeterInfos() { if (fluxMeterInfosBuilder_ == null) { @@ -3564,7 +3564,7 @@ public Builder clearFluxMeterInfos() { * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ public Builder removeFluxMeterInfos(int index) { if (fluxMeterInfosBuilder_ == null) { @@ -3581,9 +3581,9 @@ public Builder removeFluxMeterInfos(int index) { * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder getFluxMeterInfosBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder getFluxMeterInfosBuilder( int index) { return getFluxMeterInfosFieldBuilder().getBuilder(index); } @@ -3592,9 +3592,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder get * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder getFluxMeterInfosOrBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder getFluxMeterInfosOrBuilder( int index) { if (fluxMeterInfosBuilder_ == null) { return fluxMeterInfos_.get(index); } else { @@ -3606,9 +3606,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder ge * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public java.util.List + public java.util.List getFluxMeterInfosOrBuilderList() { if (fluxMeterInfosBuilder_ != null) { return fluxMeterInfosBuilder_.getMessageOrBuilderList(); @@ -3621,41 +3621,41 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder ge * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder addFluxMeterInfosBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder addFluxMeterInfosBuilder() { return getFluxMeterInfosFieldBuilder().addBuilder( - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.getDefaultInstance()); + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.getDefaultInstance()); } /** *
      * flux meters that were matched for this request.
      * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder addFluxMeterInfosBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder addFluxMeterInfosBuilder( int index) { return getFluxMeterInfosFieldBuilder().addBuilder( - index, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.getDefaultInstance()); + index, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.getDefaultInstance()); } /** *
      * flux meters that were matched for this request.
      * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - public java.util.List + public java.util.List getFluxMeterInfosBuilderList() { return getFluxMeterInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder> + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder> getFluxMeterInfosFieldBuilder() { if (fluxMeterInfosBuilder_ == null) { fluxMeterInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder>( + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder>( fluxMeterInfos_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3665,26 +3665,26 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder add return fluxMeterInfosBuilder_; } - private java.util.List limiterDecisions_ = + private java.util.List limiterDecisions_ = java.util.Collections.emptyList(); private void ensureLimiterDecisionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - limiterDecisions_ = new java.util.ArrayList(limiterDecisions_); + limiterDecisions_ = new java.util.ArrayList(limiterDecisions_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder> limiterDecisionsBuilder_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder> limiterDecisionsBuilder_; /** *
      * limiter_decisions contains information about decision made by each limiter.
      * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public java.util.List getLimiterDecisionsList() { + public java.util.List getLimiterDecisionsList() { if (limiterDecisionsBuilder_ == null) { return java.util.Collections.unmodifiableList(limiterDecisions_); } else { @@ -3696,7 +3696,7 @@ public java.util.List * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public int getLimiterDecisionsCount() { if (limiterDecisionsBuilder_ == null) { @@ -3710,9 +3710,9 @@ public int getLimiterDecisionsCount() { * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getLimiterDecisions(int index) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision getLimiterDecisions(int index) { if (limiterDecisionsBuilder_ == null) { return limiterDecisions_.get(index); } else { @@ -3724,10 +3724,10 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getLimite * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder setLimiterDecisions( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision value) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision value) { if (limiterDecisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3745,10 +3745,10 @@ public Builder setLimiterDecisions( * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder setLimiterDecisions( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder builderForValue) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder builderForValue) { if (limiterDecisionsBuilder_ == null) { ensureLimiterDecisionsIsMutable(); limiterDecisions_.set(index, builderForValue.build()); @@ -3763,9 +3763,9 @@ public Builder setLimiterDecisions( * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public Builder addLimiterDecisions(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision value) { + public Builder addLimiterDecisions(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision value) { if (limiterDecisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3783,10 +3783,10 @@ public Builder addLimiterDecisions(com.fluxninja.generated.aperture.flowcontrol. * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder addLimiterDecisions( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision value) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision value) { if (limiterDecisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3804,10 +3804,10 @@ public Builder addLimiterDecisions( * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder addLimiterDecisions( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder builderForValue) { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder builderForValue) { if (limiterDecisionsBuilder_ == null) { ensureLimiterDecisionsIsMutable(); limiterDecisions_.add(builderForValue.build()); @@ -3822,10 +3822,10 @@ public Builder addLimiterDecisions( * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder addLimiterDecisions( - int index, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder builderForValue) { + int index, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder builderForValue) { if (limiterDecisionsBuilder_ == null) { ensureLimiterDecisionsIsMutable(); limiterDecisions_.add(index, builderForValue.build()); @@ -3840,10 +3840,10 @@ public Builder addLimiterDecisions( * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder addAllLimiterDecisions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (limiterDecisionsBuilder_ == null) { ensureLimiterDecisionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3859,7 +3859,7 @@ public Builder addAllLimiterDecisions( * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder clearLimiterDecisions() { if (limiterDecisionsBuilder_ == null) { @@ -3876,7 +3876,7 @@ public Builder clearLimiterDecisions() { * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ public Builder removeLimiterDecisions(int index) { if (limiterDecisionsBuilder_ == null) { @@ -3893,9 +3893,9 @@ public Builder removeLimiterDecisions(int index) { * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder getLimiterDecisionsBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder getLimiterDecisionsBuilder( int index) { return getLimiterDecisionsFieldBuilder().getBuilder(index); } @@ -3904,9 +3904,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder g * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder getLimiterDecisionsOrBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder getLimiterDecisionsOrBuilder( int index) { if (limiterDecisionsBuilder_ == null) { return limiterDecisions_.get(index); } else { @@ -3918,9 +3918,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public java.util.List + public java.util.List getLimiterDecisionsOrBuilderList() { if (limiterDecisionsBuilder_ != null) { return limiterDecisionsBuilder_.getMessageOrBuilderList(); @@ -3933,41 +3933,41 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder addLimiterDecisionsBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder addLimiterDecisionsBuilder() { return getLimiterDecisionsFieldBuilder().addBuilder( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.getDefaultInstance()); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.getDefaultInstance()); } /** *
      * limiter_decisions contains information about decision made by each limiter.
      * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder addLimiterDecisionsBuilder( + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder addLimiterDecisionsBuilder( int index) { return getLimiterDecisionsFieldBuilder().addBuilder( - index, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.getDefaultInstance()); + index, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.getDefaultInstance()); } /** *
      * limiter_decisions contains information about decision made by each limiter.
      * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - public java.util.List + public java.util.List getLimiterDecisionsBuilderList() { return getLimiterDecisionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder> + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder> getLimiterDecisionsFieldBuilder() { if (limiterDecisionsBuilder_ == null) { limiterDecisionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder>( + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder>( limiterDecisions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3989,16 +3989,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.CheckResponse) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.CheckResponse) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.CheckResponse) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.CheckResponse) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4023,7 +4023,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckResponseOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckResponseOrBuilder.java similarity index 65% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckResponseOrBuilder.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckResponseOrBuilder.java index b534797241..96149b2507 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/CheckResponseOrBuilder.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/CheckResponseOrBuilder.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; public interface CheckResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.CheckResponse) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.CheckResponse) com.google.protobuf.MessageOrBuilder { /** @@ -66,7 +66,7 @@ public interface CheckResponseOrBuilder extends * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return The enum numeric value on the wire for error. */ int getErrorValue(); @@ -75,10 +75,10 @@ public interface CheckResponseOrBuilder extends * error information. * * - * .aperture.flowcontrol.v1.CheckResponse.Error error = 3 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.CheckResponse.Error error = 3 [json_name = "error"]; * @return The error. */ - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.Error getError(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.Error getError(); /** *
@@ -126,7 +126,7 @@ public interface CheckResponseOrBuilder extends
    * control_point of request
    * 
* - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; * @return Whether the controlPointInfo field is set. */ boolean hasControlPointInfo(); @@ -135,18 +135,18 @@ public interface CheckResponseOrBuilder extends * control_point of request * * - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; * @return The controlPointInfo. */ - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getControlPointInfo(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo getControlPointInfo(); /** *
    * control_point of request
    * 
* - * .aperture.flowcontrol.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo control_point_info = 5 [json_name = "controlPointInfo"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder getControlPointInfoOrBuilder(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder getControlPointInfoOrBuilder(); /** *
@@ -250,7 +250,7 @@ java.lang.String getTelemetryFlowLabelsOrThrow(
    * decision_type contains what the decision was.
    * 
* - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return The enum numeric value on the wire for decisionType. */ int getDecisionTypeValue(); @@ -259,17 +259,17 @@ java.lang.String getTelemetryFlowLabelsOrThrow( * decision_type contains what the decision was. * * - * .aperture.flowcontrol.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; + * .aperture.flowcontrol.check.v1.CheckResponse.DecisionType decision_type = 8 [json_name = "decisionType"]; * @return The decisionType. */ - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.DecisionType getDecisionType(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.DecisionType getDecisionType(); /** *
    * reject_reason contains the reason for the rejection.
    * 
* - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return The enum numeric value on the wire for rejectReason. */ int getRejectReasonValue(); @@ -278,34 +278,34 @@ java.lang.String getTelemetryFlowLabelsOrThrow( * reject_reason contains the reason for the rejection. * * - * .aperture.flowcontrol.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; + * .aperture.flowcontrol.check.v1.CheckResponse.RejectReason reject_reason = 9 [json_name = "rejectReason"]; * @return The rejectReason. */ - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.RejectReason getRejectReason(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.RejectReason getRejectReason(); /** *
    * classifiers that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - java.util.List + java.util.List getClassifierInfosList(); /** *
    * classifiers that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getClassifierInfos(int index); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo getClassifierInfos(int index); /** *
    * classifiers that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ int getClassifierInfosCount(); /** @@ -313,18 +313,18 @@ java.lang.String getTelemetryFlowLabelsOrThrow( * classifiers that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - java.util.List + java.util.List getClassifierInfosOrBuilderList(); /** *
    * classifiers that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; + * repeated .aperture.flowcontrol.check.v1.ClassifierInfo classifier_infos = 10 [json_name = "classifierInfos"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder getClassifierInfosOrBuilder( + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder getClassifierInfosOrBuilder( int index); /** @@ -332,24 +332,24 @@ com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder getClass * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - java.util.List + java.util.List getFluxMeterInfosList(); /** *
    * flux meters that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getFluxMeterInfos(int index); + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo getFluxMeterInfos(int index); /** *
    * flux meters that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ int getFluxMeterInfosCount(); /** @@ -357,18 +357,18 @@ com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder getClass * flux meters that were matched for this request. * * - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - java.util.List + java.util.List getFluxMeterInfosOrBuilderList(); /** *
    * flux meters that were matched for this request.
    * 
* - * repeated .aperture.flowcontrol.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; + * repeated .aperture.flowcontrol.check.v1.FluxMeterInfo flux_meter_infos = 11 [json_name = "fluxMeterInfos"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder getFluxMeterInfosOrBuilder( + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder getFluxMeterInfosOrBuilder( int index); /** @@ -376,24 +376,24 @@ com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder getFluxMe * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - java.util.List + java.util.List getLimiterDecisionsList(); /** *
    * limiter_decisions contains information about decision made by each limiter.
    * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getLimiterDecisions(int index); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision getLimiterDecisions(int index); /** *
    * limiter_decisions contains information about decision made by each limiter.
    * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ int getLimiterDecisionsCount(); /** @@ -401,17 +401,17 @@ com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder getFluxMe * limiter_decisions contains information about decision made by each limiter. * * - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - java.util.List + java.util.List getLimiterDecisionsOrBuilderList(); /** *
    * limiter_decisions contains information about decision made by each limiter.
    * 
* - * repeated .aperture.flowcontrol.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; + * repeated .aperture.flowcontrol.check.v1.LimiterDecision limiter_decisions = 12 [json_name = "limiterDecisions"]; */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder getLimiterDecisionsOrBuilder( + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder getLimiterDecisionsOrBuilder( int index); } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ClassifierInfo.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ClassifierInfo.java similarity index 83% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ClassifierInfo.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ClassifierInfo.java index 6f2bee5d94..c785ca8a90 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ClassifierInfo.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ClassifierInfo.java @@ -1,18 +1,18 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; /** *
  * ClassifierInfo describes details for each ClassifierInfo.
  * 
* - * Protobuf type {@code aperture.flowcontrol.v1.ClassifierInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.ClassifierInfo} */ public final class ClassifierInfo extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.ClassifierInfo) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.ClassifierInfo) ClassifierInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ClassifierInfo.newBuilder() to construct. @@ -108,15 +108,15 @@ private ClassifierInfo( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ClassifierInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ClassifierInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder.class); } /** @@ -124,7 +124,7 @@ private ClassifierInfo( * Error information. * * - * Protobuf enum {@code aperture.flowcontrol.v1.ClassifierInfo.Error} + * Protobuf enum {@code aperture.flowcontrol.check.v1.ClassifierInfo.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { @@ -241,7 +241,7 @@ public Error findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.getDescriptor().getEnumTypes().get(0); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); @@ -264,7 +264,7 @@ private Error(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.v1.ClassifierInfo.Error) + // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.check.v1.ClassifierInfo.Error) } public static final int POLICY_NAME_FIELD_NUMBER = 1; @@ -395,20 +395,20 @@ public java.lang.String getLabelKey() { public static final int ERROR_FIELD_NUMBER = 5; private int error_; /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return The error. */ - @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error getError() { + @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error getError() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error result = com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error.valueOf(error_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error result = com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error.valueOf(error_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -437,7 +437,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, labelKey_); } - if (error_ != com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error.ERROR_NONE.getNumber()) { + if (error_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error.ERROR_NONE.getNumber()) { output.writeEnum(5, error_); } unknownFields.writeTo(output); @@ -462,7 +462,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, labelKey_); } - if (error_ != com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error.ERROR_NONE.getNumber()) { + if (error_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error.ERROR_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, error_); } @@ -476,10 +476,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo other = (com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo) obj; if (!getPolicyName() .equals(other.getPolicyName())) return false; @@ -517,69 +517,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -592,7 +592,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo par public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -612,26 +612,26 @@ protected Builder newBuilderForType( * ClassifierInfo describes details for each ClassifierInfo. * * - * Protobuf type {@code aperture.flowcontrol.v1.ClassifierInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.ClassifierInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.ClassifierInfo) - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfoOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.ClassifierInfo) + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ClassifierInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ClassifierInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -665,17 +665,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ClassifierInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ClassifierInfo_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo build() { - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -683,8 +683,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo build() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo result = new com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo(this); result.policyName_ = policyName_; result.policyHash_ = policyHash_; result.classifierIndex_ = classifierIndex_; @@ -728,16 +728,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.getDefaultInstance()) return this; if (!other.getPolicyName().isEmpty()) { policyName_ = other.policyName_; onChanged(); @@ -771,11 +771,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1046,14 +1046,14 @@ public Builder setLabelKeyBytes( private int error_ = 0; /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @param value The enum numeric value on the wire for error to set. * @return This builder for chaining. */ @@ -1064,21 +1064,21 @@ public Builder setErrorValue(int value) { return this; } /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return The error. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error getError() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error getError() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error result = com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error.valueOf(error_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error result = com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error.valueOf(error_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error.UNRECOGNIZED : result; } /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @param value The error to set. * @return This builder for chaining. */ - public Builder setError(com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error value) { + public Builder setError(com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error value) { if (value == null) { throw new NullPointerException(); } @@ -1088,7 +1088,7 @@ public Builder setError(com.fluxninja.generated.aperture.flowcontrol.v1.Classifi return this; } /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return This builder for chaining. */ public Builder clearError() { @@ -1110,16 +1110,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.ClassifierInfo) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.ClassifierInfo) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.ClassifierInfo) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.ClassifierInfo) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1144,7 +1144,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ClassifierInfoOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ClassifierInfoOrBuilder.java similarity index 76% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ClassifierInfoOrBuilder.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ClassifierInfoOrBuilder.java index 8b902d0436..d6c6a2afcb 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ClassifierInfoOrBuilder.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ClassifierInfoOrBuilder.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; public interface ClassifierInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.ClassifierInfo) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.ClassifierInfo) com.google.protobuf.MessageOrBuilder { /** @@ -50,13 +50,13 @@ public interface ClassifierInfoOrBuilder extends getLabelKeyBytes(); /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return The enum numeric value on the wire for error. */ int getErrorValue(); /** - * .aperture.flowcontrol.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; + * .aperture.flowcontrol.check.v1.ClassifierInfo.Error error = 5 [json_name = "error"]; * @return The error. */ - com.fluxninja.generated.aperture.flowcontrol.v1.ClassifierInfo.Error getError(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ClassifierInfo.Error getError(); } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ControlPointInfo.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ControlPointInfo.java similarity index 76% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ControlPointInfo.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ControlPointInfo.java index 56d3c3b8db..e0fabf0e46 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ControlPointInfo.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ControlPointInfo.java @@ -1,14 +1,14 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; /** - * Protobuf type {@code aperture.flowcontrol.v1.ControlPointInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.ControlPointInfo} */ public final class ControlPointInfo extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.ControlPointInfo) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.ControlPointInfo) ControlPointInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ControlPointInfo.newBuilder() to construct. @@ -85,15 +85,15 @@ private ControlPointInfo( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ControlPointInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ControlPointInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder.class); } /** @@ -101,7 +101,7 @@ private ControlPointInfo( * Type contains fields that represent type of ControlPointInfo. * * - * Protobuf enum {@code aperture.flowcontrol.v1.ControlPointInfo.Type} + * Protobuf enum {@code aperture.flowcontrol.check.v1.ControlPointInfo.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { @@ -200,7 +200,7 @@ public Type findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.getDescriptor().getEnumTypes().get(0); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); @@ -223,26 +223,26 @@ private Type(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.v1.ControlPointInfo.Type) + // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.check.v1.ControlPointInfo.Type) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return The type. */ - @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type getType() { + @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type getType() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type result = com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type.valueOf(type_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type result = com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type.valueOf(type_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type.UNRECOGNIZED : result; } public static final int FEATURE_FIELD_NUMBER = 2; @@ -297,7 +297,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type.TYPE_UNKNOWN.getNumber()) { + if (type_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type.TYPE_UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feature_)) { @@ -312,7 +312,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type.TYPE_UNKNOWN.getNumber()) { + if (type_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type.TYPE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } @@ -329,10 +329,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo other = (com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo) obj; if (type_ != other.type_) return false; if (!getFeature() @@ -357,69 +357,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -432,7 +432,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo p public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -448,26 +448,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code aperture.flowcontrol.v1.ControlPointInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.ControlPointInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.ControlPointInfo) - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfoOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.ControlPointInfo) + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ControlPointInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ControlPointInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -495,17 +495,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_ControlPointInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_ControlPointInfo_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo build() { - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -513,8 +513,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo build() } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo result = new com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo(this); result.type_ = type_; result.feature_ = feature_; onBuilt(); @@ -555,16 +555,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -587,11 +587,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,14 +603,14 @@ public Builder mergeFrom( private int type_ = 0; /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -621,21 +621,21 @@ public Builder setTypeValue(int value) { return this; } /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return The type. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type getType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type getType() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type result = com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type.valueOf(type_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type result = com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type.valueOf(type_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type.UNRECOGNIZED : result; } /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type value) { + public Builder setType(com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type value) { if (value == null) { throw new NullPointerException(); } @@ -645,7 +645,7 @@ public Builder setType(com.fluxninja.generated.aperture.flowcontrol.v1.ControlPo return this; } /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return This builder for chaining. */ public Builder clearType() { @@ -743,16 +743,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.ControlPointInfo) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.ControlPointInfo) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.ControlPointInfo) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.ControlPointInfo) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -777,7 +777,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ControlPointInfoOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ControlPointInfoOrBuilder.java similarity index 59% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ControlPointInfoOrBuilder.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ControlPointInfoOrBuilder.java index bb3ba182f5..fdeff3deaf 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/ControlPointInfoOrBuilder.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/ControlPointInfoOrBuilder.java @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; public interface ControlPointInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.ControlPointInfo) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.ControlPointInfo) com.google.protobuf.MessageOrBuilder { /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * .aperture.flowcontrol.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; + * .aperture.flowcontrol.check.v1.ControlPointInfo.Type type = 1 [json_name = "type"]; * @return The type. */ - com.fluxninja.generated.aperture.flowcontrol.v1.ControlPointInfo.Type getType(); + com.fluxninja.generated.aperture.flowcontrol.check.v1.ControlPointInfo.Type getType(); /** * string feature = 2 [json_name = "feature"]; diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowControlServiceGrpc.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FlowControlServiceGrpc.java similarity index 85% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowControlServiceGrpc.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FlowControlServiceGrpc.java index b26961b9f8..1bbbacbdda 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowControlServiceGrpc.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FlowControlServiceGrpc.java @@ -1,4 +1,4 @@ -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; @@ -9,38 +9,38 @@ */ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.49.1)", - comments = "Source: aperture/flowcontrol/v1/flowcontrol.proto") + comments = "Source: aperture/flowcontrol/check/v1/check.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FlowControlServiceGrpc { private FlowControlServiceGrpc() {} - public static final String SERVICE_NAME = "aperture.flowcontrol.v1.FlowControlService"; + public static final String SERVICE_NAME = "aperture.flowcontrol.check.v1.FlowControlService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCheckMethod; + private static volatile io.grpc.MethodDescriptor getCheckMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Check", - requestType = com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.class, - responseType = com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.class, + requestType = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.class, + responseType = com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCheckMethod() { - io.grpc.MethodDescriptor getCheckMethod; + public static io.grpc.MethodDescriptor getCheckMethod() { + io.grpc.MethodDescriptor getCheckMethod; if ((getCheckMethod = FlowControlServiceGrpc.getCheckMethod) == null) { synchronized (FlowControlServiceGrpc.class) { if ((getCheckMethod = FlowControlServiceGrpc.getCheckMethod) == null) { FlowControlServiceGrpc.getCheckMethod = getCheckMethod = - io.grpc.MethodDescriptor.newBuilder() + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Check")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest.getDefaultInstance())) + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse.getDefaultInstance())) + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse.getDefaultInstance())) .setSchemaDescriptor(new FlowControlServiceMethodDescriptorSupplier("Check")) .build(); } @@ -105,8 +105,8 @@ public static abstract class FlowControlServiceImplBase implements io.grpc.Binda * Check wraps the given arbitrary resource and matches the given labels against Flow Control Limiters to makes a decision whether to allow/deny. * */ - public void check(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void check(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckMethod(), responseObserver); } @@ -116,8 +116,8 @@ public void check(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest r getCheckMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest, - com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse>( + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest, + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse>( this, METHODID_CHECK))) .build(); } @@ -145,8 +145,8 @@ protected FlowControlServiceStub build( * Check wraps the given arbitrary resource and matches the given labels against Flow Control Limiters to makes a decision whether to allow/deny. * */ - public void check(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void check(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCheckMethod(), getCallOptions()), request, responseObserver); } @@ -174,7 +174,7 @@ protected FlowControlServiceBlockingStub build( * Check wraps the given arbitrary resource and matches the given labels against Flow Control Limiters to makes a decision whether to allow/deny. * */ - public com.fluxninja.generated.aperture.flowcontrol.v1.CheckResponse check(com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest request) { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckResponse check(com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCheckMethod(), getCallOptions(), request); } @@ -202,8 +202,8 @@ protected FlowControlServiceFutureStub build( * Check wraps the given arbitrary resource and matches the given labels against Flow Control Limiters to makes a decision whether to allow/deny. * */ - public com.google.common.util.concurrent.ListenableFuture check( - com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest request) { + public com.google.common.util.concurrent.ListenableFuture check( + com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCheckMethod(), getCallOptions()), request); } @@ -229,8 +229,8 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CHECK: - serviceImpl.check((com.fluxninja.generated.aperture.flowcontrol.v1.CheckRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.check((com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -254,7 +254,7 @@ private static abstract class FlowControlServiceBaseDescriptorSupplier @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.getDescriptor(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.getDescriptor(); } @java.lang.Override diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FluxMeterInfo.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FluxMeterInfo.java similarity index 78% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FluxMeterInfo.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FluxMeterInfo.java index 72c8e4c56b..91961bf76f 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FluxMeterInfo.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FluxMeterInfo.java @@ -1,18 +1,18 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; /** *
  * FluxMeterInfo describes detail for each FluxMeterInfo.
  * 
* - * Protobuf type {@code aperture.flowcontrol.v1.FluxMeterInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.FluxMeterInfo} */ public final class FluxMeterInfo extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.FluxMeterInfo) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.FluxMeterInfo) FluxMeterInfoOrBuilder { private static final long serialVersionUID = 0L; // Use FluxMeterInfo.newBuilder() to construct. @@ -82,15 +82,15 @@ private FluxMeterInfo( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_FluxMeterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_FluxMeterInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder.class); } public static final int FLUX_METER_NAME_FIELD_NUMBER = 1; @@ -170,10 +170,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo other = (com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo) obj; if (!getFluxMeterName() .equals(other.getFluxMeterName())) return false; @@ -195,69 +195,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -270,7 +270,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo pars public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -290,26 +290,26 @@ protected Builder newBuilderForType( * FluxMeterInfo describes detail for each FluxMeterInfo. * * - * Protobuf type {@code aperture.flowcontrol.v1.FluxMeterInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.FluxMeterInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.FluxMeterInfo) - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfoOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.FluxMeterInfo) + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_FluxMeterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_FluxMeterInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -335,17 +335,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_FluxMeterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_FluxMeterInfo_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo build() { - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -353,8 +353,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo build() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo result = new com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo(this); result.fluxMeterName_ = fluxMeterName_; onBuilt(); return result; @@ -394,16 +394,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo.getDefaultInstance()) return this; if (!other.getFluxMeterName().isEmpty()) { fluxMeterName_ = other.fluxMeterName_; onChanged(); @@ -423,11 +423,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,16 +525,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.FluxMeterInfo) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.FluxMeterInfo) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.FluxMeterInfo) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.FluxMeterInfo) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -559,7 +559,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.FluxMeterInfo getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.FluxMeterInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FluxMeterInfoOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FluxMeterInfoOrBuilder.java similarity index 79% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FluxMeterInfoOrBuilder.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FluxMeterInfoOrBuilder.java index 64266742b3..27811672c3 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FluxMeterInfoOrBuilder.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/FluxMeterInfoOrBuilder.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; public interface FluxMeterInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.FluxMeterInfo) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.FluxMeterInfo) com.google.protobuf.MessageOrBuilder { /** diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecision.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecision.java similarity index 73% rename from sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecision.java rename to sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecision.java index 88cf69d641..e95a1e334e 100644 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecision.java +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecision.java @@ -1,18 +1,18 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto +// source: aperture/flowcontrol/check/v1/check.proto -package com.fluxninja.generated.aperture.flowcontrol.v1; +package com.fluxninja.generated.aperture.flowcontrol.check.v1; /** *
  * LimiterDecision describes details for each limiter.
  * 
* - * Protobuf type {@code aperture.flowcontrol.v1.LimiterDecision} + * Protobuf type {@code aperture.flowcontrol.check.v1.LimiterDecision} */ public final class LimiterDecision extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.LimiterDecision) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.LimiterDecision) LimiterDecisionOrBuilder { private static final long serialVersionUID = 0L; // Use LimiterDecision.newBuilder() to construct. @@ -84,28 +84,28 @@ private LimiterDecision( break; } case 50: { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder subBuilder = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder subBuilder = null; if (detailsCase_ == 6) { - subBuilder = ((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_).toBuilder(); + subBuilder = ((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_).toBuilder(); } details_ = - input.readMessage(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.parser(), extensionRegistry); + input.readMessage(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_); + subBuilder.mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_); details_ = subBuilder.buildPartial(); } detailsCase_ = 6; break; } case 58: { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder subBuilder = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder subBuilder = null; if (detailsCase_ == 7) { - subBuilder = ((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_).toBuilder(); + subBuilder = ((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_).toBuilder(); } details_ = - input.readMessage(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.parser(), extensionRegistry); + input.readMessage(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_); + subBuilder.mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_); details_ = subBuilder.buildPartial(); } detailsCase_ = 7; @@ -134,19 +134,19 @@ private LimiterDecision( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.class, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder.class); } /** - * Protobuf enum {@code aperture.flowcontrol.v1.LimiterDecision.LimiterReason} + * Protobuf enum {@code aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason} */ public enum LimiterReason implements com.google.protobuf.ProtocolMessageEnum { @@ -227,7 +227,7 @@ public LimiterReason findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.getDescriptor().getEnumTypes().get(0); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.getDescriptor().getEnumTypes().get(0); } private static final LimiterReason[] VALUES = values(); @@ -250,11 +250,11 @@ private LimiterReason(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.v1.LimiterDecision.LimiterReason) + // @@protoc_insertion_point(enum_scope:aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason) } public interface RateLimiterInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) com.google.protobuf.MessageOrBuilder { /** @@ -282,11 +282,11 @@ public interface RateLimiterInfoOrBuilder extends getLabelBytes(); } /** - * Protobuf type {@code aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo} */ public static final class RateLimiterInfo extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) RateLimiterInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RateLimiterInfo.newBuilder() to construct. @@ -366,15 +366,15 @@ private RateLimiterInfo( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder.class); } public static final int REMAINING_FIELD_NUMBER = 1; @@ -490,10 +490,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo other = (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) obj; if (getRemaining() != other.getRemaining()) return false; @@ -525,69 +525,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -600,7 +600,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Ra public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -616,26 +616,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -665,17 +665,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_RateLimiterInfo_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo build() { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -683,8 +683,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimit } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo result = new com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo(this); result.remaining_ = remaining_; result.current_ = current_; result.label_ = label_; @@ -726,16 +726,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance()) return this; if (other.getRemaining() != 0L) { setRemaining(other.getRemaining()); } @@ -761,11 +761,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -925,16 +925,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -959,14 +959,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConcurrencyLimiterInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) com.google.protobuf.MessageOrBuilder { /** @@ -982,11 +982,11 @@ public interface ConcurrencyLimiterInfoOrBuilder extends getWorkloadIndexBytes(); } /** - * Protobuf type {@code aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo} */ public static final class ConcurrencyLimiterInfo extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) + // @@protoc_insertion_point(message_implements:aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) ConcurrencyLimiterInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ConcurrencyLimiterInfo.newBuilder() to construct. @@ -1056,15 +1056,15 @@ private ConcurrencyLimiterInfo( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder.class); } public static final int WORKLOAD_INDEX_FIELD_NUMBER = 1; @@ -1144,10 +1144,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo other = (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) obj; if (!getWorkloadIndex() .equals(other.getWorkloadIndex())) return false; @@ -1169,69 +1169,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1244,7 +1244,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Co public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1260,26 +1260,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo} + * Protobuf type {@code aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1305,17 +1305,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo build() { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1323,8 +1323,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Concurren } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo result = new com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo(this); result.workloadIndex_ = workloadIndex_; onBuilt(); return result; @@ -1364,16 +1364,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance()) return this; if (!other.getWorkloadIndex().isEmpty()) { workloadIndex_ = other.workloadIndex_; onChanged(); @@ -1393,11 +1393,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1495,16 +1495,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1529,7 +1529,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1677,25 +1677,25 @@ public boolean getDropped() { public static final int REASON_FIELD_NUMBER = 5; private int reason_; /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @return The reason. */ - @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason getReason() { + @java.lang.Override public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason getReason() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason result = com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason.valueOf(reason_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason result = com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason.valueOf(reason_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason.UNRECOGNIZED : result; } public static final int RATE_LIMITER_INFO_FIELD_NUMBER = 6; /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; * @return Whether the rateLimiterInfo field is set. */ @java.lang.Override @@ -1703,30 +1703,30 @@ public boolean hasRateLimiterInfo() { return detailsCase_ == 6; } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; * @return The rateLimiterInfo. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo getRateLimiterInfo() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo getRateLimiterInfo() { if (detailsCase_ == 6) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder getRateLimiterInfoOrBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder getRateLimiterInfoOrBuilder() { if (detailsCase_ == 6) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } public static final int CONCURRENCY_LIMITER_INFO_FIELD_NUMBER = 7; /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; * @return Whether the concurrencyLimiterInfo field is set. */ @java.lang.Override @@ -1734,25 +1734,25 @@ public boolean hasConcurrencyLimiterInfo() { return detailsCase_ == 7; } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; * @return The concurrencyLimiterInfo. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo getConcurrencyLimiterInfo() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo getConcurrencyLimiterInfo() { if (detailsCase_ == 7) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder getConcurrencyLimiterInfoOrBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder getConcurrencyLimiterInfoOrBuilder() { if (detailsCase_ == 7) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1781,14 +1781,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (dropped_ != false) { output.writeBool(4, dropped_); } - if (reason_ != com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason.LIMITER_REASON_UNSPECIFIED.getNumber()) { + if (reason_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason.LIMITER_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(5, reason_); } if (detailsCase_ == 6) { - output.writeMessage(6, (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_); + output.writeMessage(6, (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_); } if (detailsCase_ == 7) { - output.writeMessage(7, (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_); + output.writeMessage(7, (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_); } unknownFields.writeTo(output); } @@ -1813,17 +1813,17 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, dropped_); } - if (reason_ != com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason.LIMITER_REASON_UNSPECIFIED.getNumber()) { + if (reason_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason.LIMITER_REASON_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, reason_); } if (detailsCase_ == 6) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_); + .computeMessageSize(6, (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_); } if (detailsCase_ == 7) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_); + .computeMessageSize(7, (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1835,10 +1835,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision)) { + if (!(obj instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision)) { return super.equals(obj); } - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision other = (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision) obj; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision other = (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision) obj; if (!getPolicyName() .equals(other.getPolicyName())) return false; @@ -1902,69 +1902,69 @@ public int hashCode() { return hash; } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom(byte[] data) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseDelimitedFrom(java.io.InputStream input) + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseDelimitedFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parseFrom( + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1977,7 +1977,7 @@ public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision prototype) { + public static Builder newBuilder(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1997,26 +1997,26 @@ protected Builder newBuilderForType( * LimiterDecision describes details for each limiter. * * - * Protobuf type {@code aperture.flowcontrol.v1.LimiterDecision} + * Protobuf type {@code aperture.flowcontrol.check.v1.LimiterDecision} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.v1.LimiterDecision) - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecisionOrBuilder { + // @@protoc_insertion_point(builder_implements:aperture.flowcontrol.check.v1.LimiterDecision) + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecisionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_fieldAccessorTable + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.class, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.Builder.class); + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.class, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.Builder.class); } - // Construct using com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.newBuilder() + // Construct using com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2052,17 +2052,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.FlowcontrolProto.internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor; + return com.fluxninja.generated.aperture.flowcontrol.check.v1.CheckProto.internal_static_aperture_flowcontrol_check_v1_LimiterDecision_descriptor; } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getDefaultInstanceForType() { - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.getDefaultInstance(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision getDefaultInstanceForType() { + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.getDefaultInstance(); } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision build() { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision result = buildPartial(); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision build() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2070,8 +2070,8 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision build() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision buildPartial() { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision result = new com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision(this); + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision buildPartial() { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision result = new com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision(this); result.policyName_ = policyName_; result.policyHash_ = policyHash_; result.componentIndex_ = componentIndex_; @@ -2130,16 +2130,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision) { - return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision)other); + if (other instanceof com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision) { + return mergeFrom((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision other) { - if (other == com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.getDefaultInstance()) return this; + public Builder mergeFrom(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision other) { + if (other == com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.getDefaultInstance()) return this; if (!other.getPolicyName().isEmpty()) { policyName_ = other.policyName_; onChanged(); @@ -2185,11 +2185,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision parsedMessage = null; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision) e.getUnfinishedMessage(); + parsedMessage = (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2430,14 +2430,14 @@ public Builder clearDropped() { private int reason_ = 0; /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -2448,21 +2448,21 @@ public Builder setReasonValue(int value) { return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @return The reason. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason getReason() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason getReason() { @SuppressWarnings("deprecation") - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason result = com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason.valueOf(reason_); - return result == null ? com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason.UNRECOGNIZED : result; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason result = com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason.valueOf(reason_); + return result == null ? com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason.UNRECOGNIZED : result; } /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason value) { + public Builder setReason(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason value) { if (value == null) { throw new NullPointerException(); } @@ -2472,7 +2472,7 @@ public Builder setReason(com.fluxninja.generated.aperture.flowcontrol.v1.Limiter return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; * @return This builder for chaining. */ public Builder clearReason() { @@ -2483,9 +2483,9 @@ public Builder clearReason() { } private com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder> rateLimiterInfoBuilder_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder> rateLimiterInfoBuilder_; /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; * @return Whether the rateLimiterInfo field is set. */ @java.lang.Override @@ -2493,27 +2493,27 @@ public boolean hasRateLimiterInfo() { return detailsCase_ == 6; } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; * @return The rateLimiterInfo. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo getRateLimiterInfo() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo getRateLimiterInfo() { if (rateLimiterInfoBuilder_ == null) { if (detailsCase_ == 6) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } else { if (detailsCase_ == 6) { return rateLimiterInfoBuilder_.getMessage(); } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ - public Builder setRateLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo value) { + public Builder setRateLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo value) { if (rateLimiterInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2527,10 +2527,10 @@ public Builder setRateLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.v return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ public Builder setRateLimiterInfo( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder builderForValue) { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder builderForValue) { if (rateLimiterInfoBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2541,13 +2541,13 @@ public Builder setRateLimiterInfo( return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ - public Builder mergeRateLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo value) { + public Builder mergeRateLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo value) { if (rateLimiterInfoBuilder_ == null) { if (detailsCase_ == 6 && - details_ != com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance()) { - details_ = com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.newBuilder((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_) + details_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance()) { + details_ = com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.newBuilder((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_) .mergeFrom(value).buildPartial(); } else { details_ = value; @@ -2564,7 +2564,7 @@ public Builder mergeRateLimiterInfo(com.fluxninja.generated.aperture.flowcontrol return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ public Builder clearRateLimiterInfo() { if (rateLimiterInfoBuilder_ == null) { @@ -2583,38 +2583,38 @@ public Builder clearRateLimiterInfo() { return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder getRateLimiterInfoBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder getRateLimiterInfoBuilder() { return getRateLimiterInfoFieldBuilder().getBuilder(); } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder getRateLimiterInfoOrBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder getRateLimiterInfoOrBuilder() { if ((detailsCase_ == 6) && (rateLimiterInfoBuilder_ != null)) { return rateLimiterInfoBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 6) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } } /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder> + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder> getRateLimiterInfoFieldBuilder() { if (rateLimiterInfoBuilder_ == null) { if (!(detailsCase_ == 6)) { - details_ = com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); + details_ = com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.getDefaultInstance(); } rateLimiterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder>( - (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo) details_, + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder>( + (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo) details_, getParentForChildren(), isClean()); details_ = null; @@ -2625,9 +2625,9 @@ public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimit } private com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder> concurrencyLimiterInfoBuilder_; + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder> concurrencyLimiterInfoBuilder_; /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; * @return Whether the concurrencyLimiterInfo field is set. */ @java.lang.Override @@ -2635,27 +2635,27 @@ public boolean hasConcurrencyLimiterInfo() { return detailsCase_ == 7; } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; * @return The concurrencyLimiterInfo. */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo getConcurrencyLimiterInfo() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo getConcurrencyLimiterInfo() { if (concurrencyLimiterInfoBuilder_ == null) { if (detailsCase_ == 7) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } else { if (detailsCase_ == 7) { return concurrencyLimiterInfoBuilder_.getMessage(); } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ - public Builder setConcurrencyLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo value) { + public Builder setConcurrencyLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo value) { if (concurrencyLimiterInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2669,10 +2669,10 @@ public Builder setConcurrencyLimiterInfo(com.fluxninja.generated.aperture.flowco return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ public Builder setConcurrencyLimiterInfo( - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder builderForValue) { + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder builderForValue) { if (concurrencyLimiterInfoBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2683,13 +2683,13 @@ public Builder setConcurrencyLimiterInfo( return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ - public Builder mergeConcurrencyLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo value) { + public Builder mergeConcurrencyLimiterInfo(com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo value) { if (concurrencyLimiterInfoBuilder_ == null) { if (detailsCase_ == 7 && - details_ != com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance()) { - details_ = com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.newBuilder((com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_) + details_ != com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance()) { + details_ = com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.newBuilder((com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_) .mergeFrom(value).buildPartial(); } else { details_ = value; @@ -2706,7 +2706,7 @@ public Builder mergeConcurrencyLimiterInfo(com.fluxninja.generated.aperture.flow return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ public Builder clearConcurrencyLimiterInfo() { if (concurrencyLimiterInfoBuilder_ == null) { @@ -2725,38 +2725,38 @@ public Builder clearConcurrencyLimiterInfo() { return this; } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder getConcurrencyLimiterInfoBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder getConcurrencyLimiterInfoBuilder() { return getConcurrencyLimiterInfoFieldBuilder().getBuilder(); } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder getConcurrencyLimiterInfoOrBuilder() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder getConcurrencyLimiterInfoOrBuilder() { if ((detailsCase_ == 7) && (concurrencyLimiterInfoBuilder_ != null)) { return concurrencyLimiterInfoBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 7) { - return (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; + return (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_; } - return com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + return com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } } /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder> + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder> getConcurrencyLimiterInfoFieldBuilder() { if (concurrencyLimiterInfoBuilder_ == null) { if (!(detailsCase_ == 7)) { - details_ = com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); + details_ = com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.getDefaultInstance(); } concurrencyLimiterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder>( - (com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo) details_, + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo.Builder, com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder>( + (com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo) details_, getParentForChildren(), isClean()); details_ = null; @@ -2778,16 +2778,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.v1.LimiterDecision) + // @@protoc_insertion_point(builder_scope:aperture.flowcontrol.check.v1.LimiterDecision) } - // @@protoc_insertion_point(class_scope:aperture.flowcontrol.v1.LimiterDecision) - private static final com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:aperture.flowcontrol.check.v1.LimiterDecision) + private static final com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision(); + DEFAULT_INSTANCE = new com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision(); } - public static com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getDefaultInstance() { + public static com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2812,7 +2812,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision getDefaultInstanceForType() { + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecisionOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecisionOrBuilder.java new file mode 100644 index 0000000000..ae71ece4b6 --- /dev/null +++ b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/check/v1/LimiterDecisionOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aperture/flowcontrol/check/v1/check.proto + +package com.fluxninja.generated.aperture.flowcontrol.check.v1; + +public interface LimiterDecisionOrBuilder extends + // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.check.v1.LimiterDecision) + com.google.protobuf.MessageOrBuilder { + + /** + * string policy_name = 1 [json_name = "policyName"]; + * @return The policyName. + */ + java.lang.String getPolicyName(); + /** + * string policy_name = 1 [json_name = "policyName"]; + * @return The bytes for policyName. + */ + com.google.protobuf.ByteString + getPolicyNameBytes(); + + /** + * string policy_hash = 2 [json_name = "policyHash"]; + * @return The policyHash. + */ + java.lang.String getPolicyHash(); + /** + * string policy_hash = 2 [json_name = "policyHash"]; + * @return The bytes for policyHash. + */ + com.google.protobuf.ByteString + getPolicyHashBytes(); + + /** + * int64 component_index = 3 [json_name = "componentIndex"]; + * @return The componentIndex. + */ + long getComponentIndex(); + + /** + * bool dropped = 4 [json_name = "dropped"]; + * @return The dropped. + */ + boolean getDropped(); + + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * @return The enum numeric value on the wire for reason. + */ + int getReasonValue(); + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; + * @return The reason. + */ + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.LimiterReason getReason(); + + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * @return Whether the rateLimiterInfo field is set. + */ + boolean hasRateLimiterInfo(); + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + * @return The rateLimiterInfo. + */ + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo getRateLimiterInfo(); + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; + */ + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.RateLimiterInfoOrBuilder getRateLimiterInfoOrBuilder(); + + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * @return Whether the concurrencyLimiterInfo field is set. + */ + boolean hasConcurrencyLimiterInfo(); + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + * @return The concurrencyLimiterInfo. + */ + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo getConcurrencyLimiterInfo(); + /** + * .aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; + */ + com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder getConcurrencyLimiterInfoOrBuilder(); + + public com.fluxninja.generated.aperture.flowcontrol.check.v1.LimiterDecision.DetailsCase getDetailsCase(); +} diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowcontrolProto.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowcontrolProto.java deleted file mode 100644 index 52d732760c..0000000000 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/FlowcontrolProto.java +++ /dev/null @@ -1,231 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto - -package com.fluxninja.generated.aperture.flowcontrol.v1; - -public final class FlowcontrolProto { - private FlowcontrolProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_CheckRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_CheckRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_CheckRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_CheckResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_CheckResponse_TelemetryFlowLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_ControlPointInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_ControlPointInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_ClassifierInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_ClassifierInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_LimiterDecision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_aperture_flowcontrol_v1_FluxMeterInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_aperture_flowcontrol_v1_FluxMeterInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)aperture/flowcontrol/v1/flowcontrol.pr" + - "oto\022\027aperture.flowcontrol.v1\032\037google/pro" + - "tobuf/timestamp.proto\"\256\001\n\014CheckRequest\022\030" + - "\n\007feature\030\001 \001(\tR\007feature\022I\n\006labels\030\002 \003(\013" + - "21.aperture.flowcontrol.v1.CheckRequest." + - "LabelsEntryR\006labels\0329\n\013LabelsEntry\022\020\n\003ke" + - "y\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\255" + - "\n\n\rCheckResponse\0220\n\005start\030\001 \001(\0132\032.google" + - ".protobuf.TimestampR\005start\022,\n\003end\030\002 \001(\0132" + - "\032.google.protobuf.TimestampR\003end\022B\n\005erro" + - "r\030\003 \001(\0162,.aperture.flowcontrol.v1.CheckR" + - "esponse.ErrorR\005error\022\032\n\010services\030\004 \003(\tR\010" + - "services\022W\n\022control_point_info\030\005 \001(\0132).a" + - "perture.flowcontrol.v1.ControlPointInfoR" + - "\020controlPointInfo\022&\n\017flow_label_keys\030\006 \003" + - "(\tR\rflowLabelKeys\022s\n\025telemetry_flow_labe" + - "ls\030\007 \003(\0132?.aperture.flowcontrol.v1.Check" + - "Response.TelemetryFlowLabelsEntryR\023telem" + - "etryFlowLabels\022X\n\rdecision_type\030\010 \001(\01623." + - "aperture.flowcontrol.v1.CheckResponse.De" + - "cisionTypeR\014decisionType\022X\n\rreject_reaso" + - "n\030\t \001(\01623.aperture.flowcontrol.v1.CheckR" + - "esponse.RejectReasonR\014rejectReason\022R\n\020cl" + - "assifier_infos\030\n \003(\0132\'.aperture.flowcont" + - "rol.v1.ClassifierInfoR\017classifierInfos\022P" + - "\n\020flux_meter_infos\030\013 \003(\0132&.aperture.flow" + - "control.v1.FluxMeterInfoR\016fluxMeterInfos" + - "\022U\n\021limiter_decisions\030\014 \003(\0132(.aperture.f" + - "lowcontrol.v1.LimiterDecisionR\020limiterDe" + - "cisions\032F\n\030TelemetryFlowLabelsEntry\022\020\n\003k" + - "ey\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"" + - "\265\001\n\005Error\022\016\n\nERROR_NONE\020\000\022#\n\037ERROR_MISSI" + - "NG_TRAFFIC_DIRECTION\020\001\022#\n\037ERROR_INVALID_" + - "TRAFFIC_DIRECTION\020\002\022\037\n\033ERROR_CONVERT_TO_" + - "MAP_STRUCT\020\003\022\035\n\031ERROR_CONVERT_TO_REGO_AS" + - "T\020\004\022\022\n\016ERROR_CLASSIFY\020\005\"m\n\014RejectReason\022" + - "\026\n\022REJECT_REASON_NONE\020\000\022\036\n\032REJECT_REASON" + - "_RATE_LIMITED\020\001\022%\n!REJECT_REASON_CONCURR" + - "ENCY_LIMITED\020\002\"F\n\014DecisionType\022\032\n\026DECISI" + - "ON_TYPE_ACCEPTED\020\000\022\032\n\026DECISION_TYPE_REJE" + - "CTED\020\001\"\277\001\n\020ControlPointInfo\022B\n\004type\030\001 \001(" + - "\0162..aperture.flowcontrol.v1.ControlPoint" + - "Info.TypeR\004type\022\030\n\007feature\030\002 \001(\tR\007featur" + - "e\"M\n\004Type\022\020\n\014TYPE_UNKNOWN\020\000\022\020\n\014TYPE_FEAT" + - "URE\020\001\022\020\n\014TYPE_INGRESS\020\002\022\017\n\013TYPE_EGRESS\020\003" + - "\"\204\003\n\016ClassifierInfo\022\037\n\013policy_name\030\001 \001(\t" + - "R\npolicyName\022\037\n\013policy_hash\030\002 \001(\tR\npolic" + - "yHash\022)\n\020classifier_index\030\003 \001(\003R\017classif" + - "ierIndex\022\033\n\tlabel_key\030\004 \001(\tR\010labelKey\022C\n" + - "\005error\030\005 \001(\0162-.aperture.flowcontrol.v1.C" + - "lassifierInfo.ErrorR\005error\"\242\001\n\005Error\022\016\n\n" + - "ERROR_NONE\020\000\022\025\n\021ERROR_EVAL_FAILED\020\001\022\031\n\025E" + - "RROR_EMPTY_RESULTSET\020\002\022\035\n\031ERROR_AMBIGUOU" + - "S_RESULTSET\020\003\022\032\n\026ERROR_MULTI_EXPRESSION\020" + - "\004\022\034\n\030ERROR_EXPRESSION_NOT_MAP\020\005\"\313\005\n\017Limi" + - "terDecision\022\037\n\013policy_name\030\001 \001(\tR\npolicy" + - "Name\022\037\n\013policy_hash\030\002 \001(\tR\npolicyHash\022\'\n" + - "\017component_index\030\003 \001(\003R\016componentIndex\022\030" + - "\n\007dropped\030\004 \001(\010R\007dropped\022N\n\006reason\030\005 \001(\016" + - "26.aperture.flowcontrol.v1.LimiterDecisi" + - "on.LimiterReasonR\006reason\022f\n\021rate_limiter" + - "_info\030\006 \001(\01328.aperture.flowcontrol.v1.Li" + - "miterDecision.RateLimiterInfoH\000R\017rateLim" + - "iterInfo\022{\n\030concurrency_limiter_info\030\007 \001" + - "(\0132?.aperture.flowcontrol.v1.LimiterDeci" + - "sion.ConcurrencyLimiterInfoH\000R\026concurren" + - "cyLimiterInfo\032_\n\017RateLimiterInfo\022\034\n\trema" + - "ining\030\001 \001(\003R\tremaining\022\030\n\007current\030\002 \001(\003R" + - "\007current\022\024\n\005label\030\003 \001(\tR\005label\032?\n\026Concur" + - "rencyLimiterInfo\022%\n\016workload_index\030\001 \001(\t" + - "R\rworkloadIndex\"Q\n\rLimiterReason\022\036\n\032LIMI" + - "TER_REASON_UNSPECIFIED\020\000\022 \n\034LIMITER_REAS" + - "ON_KEY_NOT_FOUND\020\001B\t\n\007details\"7\n\rFluxMet" + - "erInfo\022&\n\017flux_meter_name\030\001 \001(\tR\rfluxMet" + - "erName2n\n\022FlowControlService\022X\n\005Check\022%." + - "aperture.flowcontrol.v1.CheckRequest\032&.a" + - "perture.flowcontrol.v1.CheckResponse\"\000B\227" + - "\002\n/com.fluxninja.generated.aperture.flow" + - "control.v1B\020FlowcontrolProtoP\001ZTgithub.c" + - "om/fluxninja/aperture/api/gen/proto/go/a" + - "perture/flowcontrol/v1;flowcontrolv1\242\002\003A" + - "FX\252\002\027Aperture.Flowcontrol.V1\312\002\027Aperture\\" + - "Flowcontrol\\V1\342\002#Aperture\\Flowcontrol\\V1" + - "\\GPBMetadata\352\002\031Aperture::Flowcontrol::V1" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_aperture_flowcontrol_v1_CheckRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor, - new java.lang.String[] { "Feature", "Labels", }); - internal_static_aperture_flowcontrol_v1_CheckRequest_LabelsEntry_descriptor = - internal_static_aperture_flowcontrol_v1_CheckRequest_descriptor.getNestedTypes().get(0); - internal_static_aperture_flowcontrol_v1_CheckRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_CheckRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_aperture_flowcontrol_v1_CheckResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor, - new java.lang.String[] { "Start", "End", "Error", "Services", "ControlPointInfo", "FlowLabelKeys", "TelemetryFlowLabels", "DecisionType", "RejectReason", "ClassifierInfos", "FluxMeterInfos", "LimiterDecisions", }); - internal_static_aperture_flowcontrol_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor = - internal_static_aperture_flowcontrol_v1_CheckResponse_descriptor.getNestedTypes().get(0); - internal_static_aperture_flowcontrol_v1_CheckResponse_TelemetryFlowLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_CheckResponse_TelemetryFlowLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_aperture_flowcontrol_v1_ControlPointInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_aperture_flowcontrol_v1_ControlPointInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_ControlPointInfo_descriptor, - new java.lang.String[] { "Type", "Feature", }); - internal_static_aperture_flowcontrol_v1_ClassifierInfo_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_aperture_flowcontrol_v1_ClassifierInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_ClassifierInfo_descriptor, - new java.lang.String[] { "PolicyName", "PolicyHash", "ClassifierIndex", "LabelKey", "Error", }); - internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_aperture_flowcontrol_v1_LimiterDecision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor, - new java.lang.String[] { "PolicyName", "PolicyHash", "ComponentIndex", "Dropped", "Reason", "RateLimiterInfo", "ConcurrencyLimiterInfo", "Details", }); - internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_descriptor = - internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor.getNestedTypes().get(0); - internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_LimiterDecision_RateLimiterInfo_descriptor, - new java.lang.String[] { "Remaining", "Current", "Label", }); - internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor = - internal_static_aperture_flowcontrol_v1_LimiterDecision_descriptor.getNestedTypes().get(1); - internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_LimiterDecision_ConcurrencyLimiterInfo_descriptor, - new java.lang.String[] { "WorkloadIndex", }); - internal_static_aperture_flowcontrol_v1_FluxMeterInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_aperture_flowcontrol_v1_FluxMeterInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_aperture_flowcontrol_v1_FluxMeterInfo_descriptor, - new java.lang.String[] { "FluxMeterName", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecisionOrBuilder.java b/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecisionOrBuilder.java deleted file mode 100644 index fec96d8dcf..0000000000 --- a/sdks/aperture-java/src/main/java/com/fluxninja/generated/aperture/flowcontrol/v1/LimiterDecisionOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: aperture/flowcontrol/v1/flowcontrol.proto - -package com.fluxninja.generated.aperture.flowcontrol.v1; - -public interface LimiterDecisionOrBuilder extends - // @@protoc_insertion_point(interface_extends:aperture.flowcontrol.v1.LimiterDecision) - com.google.protobuf.MessageOrBuilder { - - /** - * string policy_name = 1 [json_name = "policyName"]; - * @return The policyName. - */ - java.lang.String getPolicyName(); - /** - * string policy_name = 1 [json_name = "policyName"]; - * @return The bytes for policyName. - */ - com.google.protobuf.ByteString - getPolicyNameBytes(); - - /** - * string policy_hash = 2 [json_name = "policyHash"]; - * @return The policyHash. - */ - java.lang.String getPolicyHash(); - /** - * string policy_hash = 2 [json_name = "policyHash"]; - * @return The bytes for policyHash. - */ - com.google.protobuf.ByteString - getPolicyHashBytes(); - - /** - * int64 component_index = 3 [json_name = "componentIndex"]; - * @return The componentIndex. - */ - long getComponentIndex(); - - /** - * bool dropped = 4 [json_name = "dropped"]; - * @return The dropped. - */ - boolean getDropped(); - - /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; - * @return The enum numeric value on the wire for reason. - */ - int getReasonValue(); - /** - * .aperture.flowcontrol.v1.LimiterDecision.LimiterReason reason = 5 [json_name = "reason"]; - * @return The reason. - */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.LimiterReason getReason(); - - /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; - * @return Whether the rateLimiterInfo field is set. - */ - boolean hasRateLimiterInfo(); - /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; - * @return The rateLimiterInfo. - */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo getRateLimiterInfo(); - /** - * .aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfo rate_limiter_info = 6 [json_name = "rateLimiterInfo"]; - */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.RateLimiterInfoOrBuilder getRateLimiterInfoOrBuilder(); - - /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; - * @return Whether the concurrencyLimiterInfo field is set. - */ - boolean hasConcurrencyLimiterInfo(); - /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; - * @return The concurrencyLimiterInfo. - */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo getConcurrencyLimiterInfo(); - /** - * .aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfo concurrency_limiter_info = 7 [json_name = "concurrencyLimiterInfo"]; - */ - com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.ConcurrencyLimiterInfoOrBuilder getConcurrencyLimiterInfoOrBuilder(); - - public com.fluxninja.generated.aperture.flowcontrol.v1.LimiterDecision.DetailsCase getDetailsCase(); -} diff --git a/test/aperture_suite_test.go b/test/aperture_suite_test.go index 18c65e6a14..d3f9581403 100644 --- a/test/aperture_suite_test.go +++ b/test/aperture_suite_test.go @@ -25,8 +25,8 @@ import ( "github.com/fluxninja/aperture/pkg/otelcollector" "github.com/fluxninja/aperture/pkg/platform" "github.com/fluxninja/aperture/pkg/policies/flowcontrol" - "github.com/fluxninja/aperture/pkg/policies/flowcontrol/api" "github.com/fluxninja/aperture/pkg/policies/flowcontrol/resources/classifier" + "github.com/fluxninja/aperture/pkg/policies/flowcontrol/service" "github.com/fluxninja/aperture/pkg/status" "github.com/fluxninja/aperture/pkg/utils" "github.com/fluxninja/aperture/test/harness" @@ -142,7 +142,7 @@ var _ = BeforeSuite(func() { ), ), classifier.Module(), - api.Module(), + service.Module(), fx.Provide( clockwork.NewRealClock, agent.AgentOTELComponents, From 9d4545441e430eb034c7ca0bdaa8b2e7b5f96a52 Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Fri, 4 Nov 2022 17:00:03 -0700 Subject: [PATCH 5/5] precommit: run go mod tidy --- Makefile | 2 ++ go.mod | 3 --- go.sum | 7 ------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index ca62d6a674..444cc72866 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,8 @@ go-mod-tidy: @echo Download go.mod dependencies @go mod tidy @cd tools/go && go mod tidy + @cd sdks/aperture-go && go mod tidy + @cd playground/demo_app && go mod tidy go-test: @echo Running go tests diff --git a/go.mod b/go.mod index 823096e50b..071b7e25f2 100644 --- a/go.mod +++ b/go.mod @@ -104,8 +104,6 @@ require ( github.com/prometheus/prometheus v0.39.1 // indirect github.com/tchap/go-patricia/v2 v2.3.1 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.11.1 // indirect - go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1 // indirect golang.org/x/tools v0.2.0 // indirect gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect gonum.org/v1/gonum v0.12.0 // indirect @@ -258,7 +256,6 @@ require ( go.opentelemetry.io/collector/semconv v0.63.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.36.4 // indirect go.opentelemetry.io/contrib/zpages v0.36.4 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1 go.opentelemetry.io/otel/exporters/prometheus v0.33.0 // indirect go.opentelemetry.io/otel/metric v0.33.0 // indirect go.opentelemetry.io/otel/sdk v1.11.1 // indirect diff --git a/go.sum b/go.sum index 901039eb22..9e1fe6e28f 100644 --- a/go.sum +++ b/go.sum @@ -841,13 +841,6 @@ go.opentelemetry.io/contrib/zpages v0.36.4 h1:Z2VK5WsDhWs9VwZ1p0TM5RyusTOgAQfdMM go.opentelemetry.io/contrib/zpages v0.36.4/go.mod h1:h1gnOu0cOfDGEncNgLsjQ5H/9eAzt9LXsa1WvH7I5KU= go.opentelemetry.io/otel v1.11.1 h1:4WLLAmcfkmDk2ukNXJyq3/kiz/3UzCaYq6PskJsaou4= go.opentelemetry.io/otel v1.11.1/go.mod h1:1nNhXBbWSD0nsL38H6btgnFN2k4i0sNLHNNMZMSbUGE= -go.opentelemetry.io/otel/exporters/otlp v0.20.0 h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85vbdQU/nVfxDyqg= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1 h1:X2GndnMCsUPh6CiY2a+frAbNsXaPLbB0soHRYhAZ5Ig= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1/go.mod h1:i8vjiSzbiUC7wOQplijSXMYUpNM93DtlS5CbUT+C6oQ= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1 h1:MEQNafcNCB0uQIti/oHgU7CZpUMYQ7qigBwMVKycHvc= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1/go.mod h1:19O5I2U5iys38SsmT2uDJja/300woyzE1KPIQxEUBUc= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1 h1:LYyG/f1W/jzAix16jbksJfMQFpOH/Ma6T639pVPMgfI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1/go.mod h1:QrRRQiY3kzAoYPNLP0W/Ikg0gR6V3LMc+ODSxr7yyvg= go.opentelemetry.io/otel/exporters/prometheus v0.33.0 h1:xXhPj7SLKWU5/Zd4Hxmd+X1C4jdmvc0Xy+kvjFx2z60= go.opentelemetry.io/otel/exporters/prometheus v0.33.0/go.mod h1:ZSmYfKdYWEdSDBB4njLBIwTf4AU2JNsH3n2quVQDebI= go.opentelemetry.io/otel/metric v0.33.0 h1:xQAyl7uGEYvrLAiV/09iTJlp1pZnQ9Wl793qbVvED1E=