Refactor Collectible policy ID validators + AgentIdentifier message for Feed Configuration.
This changes all policy IDs to lower kebab case and renames AGENT_TYPE to ENDPOINT_TYPE (as agent is a pretty machine-specific term). Also wrap sampling_interval in PeriodicPolicy to make it less confusing and explicit.
PiperOrigin-RevId: 823561019
Change-Id: I2421d9f5c2db3451aee09f01ce3f5b4ec368efb5
diff --git a/tlbmc/service_messages.proto b/tlbmc/service_messages.proto
index ea1ee0a..8b6df5c 100644
--- a/tlbmc/service_messages.proto
+++ b/tlbmc/service_messages.proto
@@ -24,22 +24,22 @@
// Optional status, errors, etc.
}
-message AgentIdentifier {
- enum AgentType {
- AGENT_TYPE_UNSPECIFIED = 0;
- AGENT_TYPE_ICID = 1;
- AGENT_TYPE_BMCWEB = 2;
- AGENT_TYPE_GSYS = 3;
- AGENT_TYPE_PICTOR = 4;
- AGENT_TYPE_UHMM = 5;
- // Add more agent types here.
+message EndpointIdentifier {
+ enum EndpointType {
+ ENDPOINT_TYPE_UNSPECIFIED = 0;
+ ENDPOINT_TYPE_ICID = 1;
+ ENDPOINT_TYPE_BMCWEB = 2;
+ ENDPOINT_TYPE_GSYS = 3;
+ ENDPOINT_TYPE_PICTOR = 4;
+ ENDPOINT_TYPE_UHMM = 5;
+ // Add more endpoint types here.
}
- optional AgentType agent_type = 1;
+ optional EndpointType endpoint_type = 1;
}
message GetPoliciesRequest {
optional CollectionEntityId entity_id = 1;
- optional AgentIdentifier agent_identifier = 2;
+ optional EndpointIdentifier endpoint_identifier = 2;
}
message GetPoliciesResponse {