مشخصات اسلات
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
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;
}
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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```"]]