Especificação de horário
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O espaço contém as informações para identificar um espaço de inventário.
// An inventory slot
message Slot {
// ID of the merchant for the slot (required for CreateBooking)
string merchant_id = 1;
// ID of the merchant service (required for CreateBooking)
string service_id = 2;
// Start time of the appointment slot in seconds of UTC time since Unix epoch.
// (required for CreateBooking)
google.protobuf.Timestamp start_time = 3;
// Duration of the appointment slot (required for CreateBooking)
google.protobuf.Duration duration = 4;
// Opaque tag that identifies the availability slot and matches the value
// provided in the availability feed (optional)
string availability_tag = 5;
// The set of resources that disambiguates the appointment slot, e.g. by
// indicating the staff member and room selected by the user (optional)
Resources resources = 6;
reserved 7;
}
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eSlot\u003c/code\u003e message identifies an inventory slot with details like merchant ID, service ID, start time, and duration.\u003c/p\u003e\n"],["\u003cp\u003eIt uses \u003ccode\u003estart_time\u003c/code\u003e and \u003ccode\u003eduration\u003c/code\u003e to define the appointment slot's timeframe, expressed in UTC and as a duration respectively.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eavailability_tag\u003c/code\u003e can link the slot to its source in an availability feed.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eresources\u003c/code\u003e field allows for specification of staff, room, or other resources associated with the slot.\u003c/p\u003e\n"]]],["The `Slot` message identifies an inventory slot using several fields. It requires `merchant_id`, `service_id`, `start_time`, and `duration` for booking creation. `availability_tag` can be provided to match a slot in an availability feed. An optional `resources` field further specifies the slot, such as the selected staff member or room. Field 7 is reserved for future use. These components identify and help book an available appointment.\n"],null,["# Slot specification\n\nSlot contains the information to identify an inventory slot. \n\n```scilab\n// An inventory slot\nmessage Slot {\n // ID of the merchant for the slot (required for CreateBooking)\n string merchant_id = 1;\n\n // ID of the merchant service (required for CreateBooking)\n string service_id = 2;\n\n // Start time of the appointment slot in seconds of UTC time since Unix epoch.\n // (required for CreateBooking)\n google.protobuf.Timestamp start_time = 3;\n\n // Duration of the appointment slot (required for CreateBooking)\n google.protobuf.Duration duration = 4;\n\n // Opaque tag that identifies the availability slot and matches the value\n // provided in the availability feed (optional)\n string availability_tag = 5;\n\n // The set of resources that disambiguates the appointment slot, e.g. by\n // indicating the staff member and room selected by the user (optional)\n Resources resources = 6;\n\n reserved 7;\n}\n```"]]