| // This file was generated by Cobalt's Registry parser based on the registry YAML |
| // in the cobalt_config repository. Edit the YAML there to make changes. |
| |
| import java.util.Arrays; |
| import java.util.List; |
| |
| /** Constants defined in the Cobalt Registry. */ |
| @SuppressWarnings("javadoc") |
| @javax.annotation.Generated("https://fuchsia.googlesource.com/cobalt/+/refs/heads/master/src/bin/config_parser/src/source_generator/") |
| public final class GoldenForTesting { |
| public static final String CUSTOMER_NAME = "the_customer"; |
| public static final long CUSTOMER_ID = 10L; |
| public static final String PROJECT_NAME = "the_project"; |
| public static final long PROJECT_ID = 5L; |
| |
| // Linear bucket constants for linear buckets |
| public static final long LINEAR_BUCKETS_INT_BUCKETS_FLOOR = 0L; |
| public static final long LINEAR_BUCKETS_INT_BUCKETS_NUM_BUCKETS = 140L; |
| public static final long LINEAR_BUCKETS_INT_BUCKETS_STEP_SIZE = 5L; |
| |
| // Exponential bucket constants for exponential buckets report |
| public static final long EXPONENTIAL_BUCKETS_REPORT_INT_BUCKETS_FLOOR = 0L; |
| public static final long EXPONENTIAL_BUCKETS_REPORT_INT_BUCKETS_NUM_BUCKETS = 3L; |
| public static final long EXPONENTIAL_BUCKETS_REPORT_INT_BUCKETS_INITIAL_STEP = 2L; |
| public static final long EXPONENTIAL_BUCKETS_REPORT_INT_BUCKETS_STEP_MULTIPLIER = 2L; |
| |
| // Metric ID Constants |
| // the_metric_name |
| public static final long THE_METRIC_NAME_METRIC_ID = 100L; |
| // the_other_metric_name |
| public static final long THE_OTHER_METRIC_NAME_METRIC_ID = 200L; |
| // event groups |
| public static final long EVENT_GROUPS_METRIC_ID = 300L; |
| // linear buckets |
| public static final long LINEAR_BUCKETS_METRIC_ID = 400L; |
| // exponential buckets |
| public static final long EXPONENTIAL_BUCKETS_METRIC_ID = 500L; |
| // metric |
| public static final long METRIC_METRIC_ID = 600L; |
| // second metric |
| public static final long SECOND_METRIC_METRIC_ID = 601L; |
| |
| // Index into the list of Metrics. Used to look up Metrics in the registry proto directly. |
| public static final long THE_METRIC_NAME_METRIC_INDEX = 0L; |
| public static final long THE_OTHER_METRIC_NAME_METRIC_INDEX = 1L; |
| public static final long EVENT_GROUPS_METRIC_INDEX = 2L; |
| public static final long LINEAR_BUCKETS_METRIC_INDEX = 3L; |
| public static final long EXPONENTIAL_BUCKETS_METRIC_INDEX = 4L; |
| public static final long METRIC_METRIC_INDEX = 5L; |
| public static final long SECOND_METRIC_METRIC_INDEX = 6L; |
| |
| // Report ID Constants |
| // the_metric_name the_report |
| public static final long THE_METRIC_NAME_THE_REPORT_REPORT_ID = 10L; |
| // the_metric_name the_other_report |
| public static final long THE_METRIC_NAME_THE_OTHER_REPORT_REPORT_ID = 20L; |
| |
| // Index into the list of Reports. Used to look up Reports in the registry proto directly. |
| public static final long THE_METRIC_NAME_THE_REPORT_REPORT_INDEX = 0L; |
| public static final long THE_METRIC_NAME_THE_OTHER_REPORT_REPORT_INDEX = 1L; |
| |
| // Report ID Constants |
| // the_other_metric_name the_report |
| public static final long THE_OTHER_METRIC_NAME_THE_REPORT_REPORT_ID = 10L; |
| |
| // Index into the list of Reports. Used to look up Reports in the registry proto directly. |
| public static final long THE_OTHER_METRIC_NAME_THE_REPORT_REPORT_INDEX = 0L; |
| |
| // Report ID Constants |
| // event groups the_report |
| public static final long EVENT_GROUPS_THE_REPORT_REPORT_ID = 30L; |
| |
| // Index into the list of Reports. Used to look up Reports in the registry proto directly. |
| public static final long EVENT_GROUPS_THE_REPORT_REPORT_INDEX = 0L; |
| |
| // Report ID Constants |
| // exponential buckets report |
| public static final long EXPONENTIAL_BUCKETS_REPORT_REPORT_ID = 40L; |
| |
| // Index into the list of Reports. Used to look up Reports in the registry proto directly. |
| public static final long EXPONENTIAL_BUCKETS_REPORT_REPORT_INDEX = 0L; |
| |
| // Enum for the_other_metric_name (Metric Dimension 0) |
| public static enum TheOtherMetricNameMetricDimension0 { |
| AN_EVENT(0), |
| ANOTHER_EVENT(1), |
| A_THIRD_EVENT(2), |
| ; |
| |
| private final int code; |
| |
| private TheOtherMetricNameMetricDimension0(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int THE_OTHER_METRIC_NAME_METRIC_DIMENSION_0_AN_EVENT = TheOtherMetricNameMetricDimension0.AN_EVENT.code; |
| public static final int THE_OTHER_METRIC_NAME_METRIC_DIMENSION_0_ANOTHER_EVENT = TheOtherMetricNameMetricDimension0.ANOTHER_EVENT.code; |
| public static final int THE_OTHER_METRIC_NAME_METRIC_DIMENSION_0_A_THIRD_EVENT = TheOtherMetricNameMetricDimension0.A_THIRD_EVENT.code; |
| |
| // Enum for event groups (Metric Dimension The First Group) |
| public static enum EventGroupsMetricDimensionTheFirstGroup { |
| AN_EVENT(0), |
| ANOTHER_EVENT(1), |
| A_THIRD_EVENT(2), |
| ; |
| |
| private final int code; |
| |
| private EventGroupsMetricDimensionTheFirstGroup(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_THE_FIRST_GROUP_AN_EVENT = EventGroupsMetricDimensionTheFirstGroup.AN_EVENT.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_THE_FIRST_GROUP_ANOTHER_EVENT = EventGroupsMetricDimensionTheFirstGroup.ANOTHER_EVENT.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_THE_FIRST_GROUP_A_THIRD_EVENT = EventGroupsMetricDimensionTheFirstGroup.A_THIRD_EVENT.code; |
| |
| // Enum for event groups (Metric Dimension A second group) |
| public static enum EventGroupsMetricDimensionASecondGroup { |
| THIS(1), |
| IS(2), |
| ANOTHER(3), |
| TEST(4), |
| ; |
| |
| private final int code; |
| |
| private EventGroupsMetricDimensionASecondGroup(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_A_SECOND_GROUP_THIS = EventGroupsMetricDimensionASecondGroup.THIS.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_A_SECOND_GROUP_IS = EventGroupsMetricDimensionASecondGroup.IS.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_A_SECOND_GROUP_ANOTHER = EventGroupsMetricDimensionASecondGroup.ANOTHER.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_A_SECOND_GROUP_TEST = EventGroupsMetricDimensionASecondGroup.TEST.code; |
| |
| // Enum for event groups (Metric Dimension 2) |
| public static enum EventGroupsMetricDimension2 { |
| THIS_METRIC(0), |
| HAS_NO(2), |
| NAME(4), |
| ALIAS(HAS_NO.code), |
| ; |
| |
| private final int code; |
| |
| private EventGroupsMetricDimension2(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_2_THIS_METRIC = EventGroupsMetricDimension2.THIS_METRIC.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_2_HAS_NO = EventGroupsMetricDimension2.HAS_NO.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_2_NAME = EventGroupsMetricDimension2.NAME.code; |
| public static final int EVENT_GROUPS_METRIC_DIMENSION_2_ALIAS = EventGroupsMetricDimension2.ALIAS.code; |
| |
| // Enum for metric (Metric Dimension First) |
| public static enum MetricMetricDimensionFirst { |
| A(1), |
| SET(2), |
| OF_EVENT(3), |
| CODES(4), |
| ; |
| |
| private final int code; |
| |
| private MetricMetricDimensionFirst(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int METRIC_METRIC_DIMENSION_FIRST_A = MetricMetricDimensionFirst.A.code; |
| public static final int METRIC_METRIC_DIMENSION_FIRST_SET = MetricMetricDimensionFirst.SET.code; |
| public static final int METRIC_METRIC_DIMENSION_FIRST_OF_EVENT = MetricMetricDimensionFirst.OF_EVENT.code; |
| public static final int METRIC_METRIC_DIMENSION_FIRST_CODES = MetricMetricDimensionFirst.CODES.code; |
| |
| // Enum for second metric (Metric Dimension First) |
| public static enum SecondMetricMetricDimensionFirst { |
| A(1), |
| SET(2), |
| OF_EVENT(3), |
| CODES(4), |
| ; |
| |
| private final int code; |
| |
| private SecondMetricMetricDimensionFirst(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int SECOND_METRIC_METRIC_DIMENSION_FIRST_A = SecondMetricMetricDimensionFirst.A.code; |
| public static final int SECOND_METRIC_METRIC_DIMENSION_FIRST_SET = SecondMetricMetricDimensionFirst.SET.code; |
| public static final int SECOND_METRIC_METRIC_DIMENSION_FIRST_OF_EVENT = SecondMetricMetricDimensionFirst.OF_EVENT.code; |
| public static final int SECOND_METRIC_METRIC_DIMENSION_FIRST_CODES = SecondMetricMetricDimensionFirst.CODES.code; |
| |
| // Enum for metric (Metric Dimension Second) |
| public static enum MetricMetricDimensionSecond { |
| SOME(0), |
| MORE(4), |
| EVENT(8), |
| CODES(16), |
| ; |
| |
| private final int code; |
| |
| private MetricMetricDimensionSecond(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int METRIC_METRIC_DIMENSION_SECOND_SOME = MetricMetricDimensionSecond.SOME.code; |
| public static final int METRIC_METRIC_DIMENSION_SECOND_MORE = MetricMetricDimensionSecond.MORE.code; |
| public static final int METRIC_METRIC_DIMENSION_SECOND_EVENT = MetricMetricDimensionSecond.EVENT.code; |
| public static final int METRIC_METRIC_DIMENSION_SECOND_CODES = MetricMetricDimensionSecond.CODES.code; |
| |
| // Enum for second metric (Metric Dimension Second) |
| public static enum SecondMetricMetricDimensionSecond { |
| SOME(0), |
| MORE(4), |
| EVENT(8), |
| CODES(16), |
| ; |
| |
| private final int code; |
| |
| private SecondMetricMetricDimensionSecond(int code) { |
| this.code = code; |
| } |
| |
| public int getCode() { |
| return code; |
| } |
| } |
| public static final int SECOND_METRIC_METRIC_DIMENSION_SECOND_SOME = SecondMetricMetricDimensionSecond.SOME.code; |
| public static final int SECOND_METRIC_METRIC_DIMENSION_SECOND_MORE = SecondMetricMetricDimensionSecond.MORE.code; |
| public static final int SECOND_METRIC_METRIC_DIMENSION_SECOND_EVENT = SecondMetricMetricDimensionSecond.EVENT.code; |
| public static final int SECOND_METRIC_METRIC_DIMENSION_SECOND_CODES = SecondMetricMetricDimensionSecond.CODES.code; |
| |
| public static class EventGroupsEventCodes { |
| @javax.annotation.Nullable public EventGroupsMetricDimensionTheFirstGroup theFirstGroup; |
| @javax.annotation.Nullable public EventGroupsMetricDimensionASecondGroup aSecondGroup; |
| @javax.annotation.Nullable public EventGroupsMetricDimension2 dimension2; |
| |
| public List<Integer> toList() { |
| return Arrays.asList( |
| theFirstGroup != null ? theFirstGroup.code : 0, |
| aSecondGroup != null ? aSecondGroup.code : 0, |
| dimension2 != null ? dimension2.code : 0 |
| ); |
| } |
| } |
| |
| public static class MetricEventCodes { |
| @javax.annotation.Nullable public MetricMetricDimensionFirst first; |
| @javax.annotation.Nullable public MetricMetricDimensionSecond second; |
| |
| public List<Integer> toList() { |
| return Arrays.asList( |
| first != null ? first.code : 0, |
| second != null ? second.code : 0 |
| ); |
| } |
| } |
| |
| public static class SecondMetricEventCodes { |
| @javax.annotation.Nullable public SecondMetricMetricDimensionFirst first; |
| @javax.annotation.Nullable public SecondMetricMetricDimensionSecond second; |
| |
| public List<Integer> toList() { |
| return Arrays.asList( |
| first != null ? first.code : 0, |
| second != null ? second.code : 0 |
| ); |
| } |
| } |
| |
| /** Private constructor to prevent instantiation of static class. */ |
| private GoldenForTesting() {} |
| } |