Slot specification
Stay organized with collections
Save and categorize content based on your preferences.
Slot contains the information to identify an inventory slot.
// 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;
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 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```"]]