DailySubEntityType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eDailySubEntityType encompasses the possible subentity types associated with DailyMetrics, which can be either dayOfWeek or timeOfDay.\u003c/p\u003e\n"],["\u003cp\u003edayOfWeek is represented by an enum indicating the day, like MONDAY or TUESDAY, and is not currently supported for any DailyMetrics.\u003c/p\u003e\n"],["\u003cp\u003etimeOfDay is represented by an object containing hours, minutes, seconds, and nanoseconds in 24-hour format, also not currently supported for any DailyMetrics.\u003c/p\u003e\n"],["\u003cp\u003eNeither dayOfWeek nor timeOfDay subentity types are currently supported for any DailyMetrics.\u003c/p\u003e\n"]]],["The core content describes `DailySubEntityType`, which can represent either a `DayOfWeek` or a `TimeOfDay`. `DayOfWeek` uses enums for each day (e.g., MONDAY, TUESDAY). `TimeOfDay` uses a JSON format with fields for hours (0-23), minutes (0-59), seconds (0-59, or 60 for leap-seconds), and nanoseconds (0-999,999,999). Currently, no `DailyMetrics` are supported for `dayOfWeek` and `timeOfDay`. The structure supports only one type at once.\n"],null,["# DailySubEntityType\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DayOfWeek](#DayOfWeek)\n- [TimeOfDay](#TimeOfDay)\n - [JSON representation](#TimeOfDay.SCHEMA_REPRESENTATION)\n\nRepresents all possible subentity types that are associated with DailyMetrics.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `Type` can be only one of the following: \"dayOfWeek\": enum (/my-business/reference/performance/rest/v1/DailySubEntityType#DayOfWeek), \"timeOfDay\": { object (/my-business/reference/performance/rest/v1/DailySubEntityType#TimeOfDay) } // End of list of possible types for union field `Type`. } ``` |\n\n| Fields ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `Type`. Represents that only one of the following proto fields must be present. The DailySubEntityType is not available for all metrics. `Type` can be only one of the following: ||\n| `dayOfWeek` | `enum (`[DayOfWeek](/my-business/reference/performance/rest/v1/DailySubEntityType#DayOfWeek)`)` Represents the day of the week. Eg: MONDAY. Currently supported DailyMetrics = NONE. |\n| `timeOfDay` | `object (`[TimeOfDay](/my-business/reference/performance/rest/v1/DailySubEntityType#TimeOfDay)`)` Represents the time of the day in 24 hour format. Eg: 13:34:20 Currently supported DailyMetrics = NONE. |\n\nDayOfWeek\n---------\n\nRepresents a day of the week.\n\n| Enums ||\n|---------------------------|-------------------------------------|\n| `DAY_OF_WEEK_UNSPECIFIED` | The day of the week is unspecified. |\n| `MONDAY` | Monday |\n| `TUESDAY` | Tuesday |\n| `WEDNESDAY` | Wednesday |\n| `THURSDAY` | Thursday |\n| `FRIDAY` | Friday |\n| `SATURDAY` | Saturday |\n| `SUNDAY` | Sunday |\n\nTimeOfDay\n---------\n\nRepresents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are [google.type.Date](/my-business/reference/performance/rest/v1/Date) and `google.protobuf.Timestamp`.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"hours\": integer, \"minutes\": integer, \"seconds\": integer, \"nanos\": integer } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `hours` | `integer` Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time. |\n| `minutes` | `integer` Minutes of hour of day. Must be from 0 to 59. |\n| `seconds` | `integer` Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. |\n| `nanos` | `integer` Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |"]]