Skip to content

Commit

Permalink
style: Address lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfucraig committed Dec 16, 2024
1 parent f72f537 commit 08944e4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ message EventGroup {
option (google.api.resource) = {
type: "reporting.halo-cmm.org/EventGroup"
pattern: "measurementConsumers/{measurement_consumer}/eventGroups/{event_group}"
singular: "eventGroup"
plural: "eventGroups"
};

// Resource name.
string name = 1;
string name = 1 [
(google.api.field_behavior) = IDENTIFIER,
(google.api.field_behavior) = IMMUTABLE
];

// Resource name of the corresponding `EventGroup` in the CMMS API.
string cmms_event_group = 2 [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ syntax = "proto3";

package wfa.measurement.reporting.v2alpha;

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
import "google/api/resource.proto";
import "wfa/measurement/reporting/v2alpha/event_group.proto";

Expand Down Expand Up @@ -53,15 +53,15 @@ message ListEventGroupsRequest {
// than this value. If unspecified, at most 50 `EventGroup`s will be
// returned. The maximum value is 1000; values above 1000 will be coerced to
// 1000.
int32 page_size = 2;
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];

// A token from a previous call, specified to retrieve the next page. See
// https://aip.dev/158.
string page_token = 3;
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];

// Result filter. Raw CEL expression that is applied to a message which has a
// field for each event group template.
string filter = 4;
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for `ListEventGroups` method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ message ReportingSet {
option (google.api.resource) = {
type: "reporting.halo-cmm.org/ReportingSet"
pattern: "measurementConsumers/{measurement_consumer}/reportingSets/{reporting_set}"
singular: "reportingSet"
plural: "reportingSets"
};

// Resource name.
string name = 1;
string name = 1 [
(google.api.field_behavior) = IDENTIFIER,
(google.api.field_behavior) = IMMUTABLE
];

// Human-readable name for display purposes.
string display_name = 2;
string display_name = 2 [(google.api.field_behavior) = OPTIONAL];

// A map of arbitrary key-value pairs to support tagging of ReportingSets
// for upstream use by UIs and other rich clients.
Expand Down Expand Up @@ -88,7 +93,7 @@ message ReportingSet {
Operand lhs = 3 [(google.api.field_behavior) = REQUIRED];
// Right-hand side operand of the operation. If not specified, implies the
// empty set.
Operand rhs = 4;
Operand rhs = 4 [(google.api.field_behavior) = OPTIONAL];
}

// Describes a set expression with a event filter. It's a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ syntax = "proto3";

package wfa.measurement.reporting.v2alpha;

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
import "google/api/resource.proto";
import "wfa/measurement/reporting/v2alpha/reporting_set.proto";

Expand Down Expand Up @@ -51,7 +51,8 @@ service ReportingSets {
post: "/v2alpha/{parent=measurementConsumers/*}/reportingSets"
body: "reporting_set"
};
option (google.api.method_signature) = "parent,reporting_set";
option (google.api.method_signature) =
"parent,reporting_set,reporting_set_id";
}
}

Expand All @@ -69,14 +70,14 @@ message ListReportingSetsRequest {
// than this value.
// If unspecified, at most 50 reportingSets will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
int32 page_size = 2;
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];

// A page token, received from a previous `ListReportingSets` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListReportingSets` must
// match the call that provided the page token.
string page_token = 3;
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for `ListReportingSet` method.
Expand Down Expand Up @@ -111,6 +112,7 @@ message CreateReportingSetRequest {
ReportingSet reporting_set = 3 [(google.api.field_behavior) = REQUIRED];
}

// Request message for 'GetReportingSetRequeest' method.
message GetReportingSetRequest {
// The name of the `ReportingSet` to retrieve.
// Format:
Expand Down

0 comments on commit 08944e4

Please sign in to comment.