-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
627 additions
and
627 deletions.
There are no files selected for viewing
22 changes: 11 additions & 11 deletions
22
...services/accommodation/v1alpha/info.proto → .../cmp/services/accommodation/v1/info.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...services/accommodation/v1alpha/list.proto → .../cmp/services/accommodation/v1/list.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 17 additions & 17 deletions
34
...ion/v1alpha/search_parameters_types.proto → ...modation/v1/search_parameters_types.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.services.accommodation.v1alpha; | ||
package cmp.services.accommodation.v1; | ||
|
||
import "cmp/types/v1alpha/location.proto"; | ||
import "cmp/types/v1alpha/meal_plan.proto"; | ||
import "cmp/types/v1alpha/product_code.proto"; | ||
import "cmp/types/v1alpha/rate.proto"; | ||
import "cmp/types/v1/location.proto"; | ||
import "cmp/types/v1/meal_plan.proto"; | ||
import "cmp/types/v1/product_code.proto"; | ||
import "cmp/types/v1/rate.proto"; | ||
|
||
// This type is used in search requests for parameters like location, meal plan | ||
// codes etc. | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha/search_parameters_types.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha/search_parameters_types.proto.dot.svg) | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1/search_parameters_types.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1/search_parameters_types.proto.dot.svg) | ||
message AccommodationSearchParameters { | ||
// Geo Location for search, set only one of the fields at once. | ||
// | ||
// This "one of" field enforces only one of the fields below. They all share | ||
// memory, setting one will remove the others. | ||
oneof geo_location { | ||
// A list of location codes or just one code. | ||
cmp.types.v1alpha.LocationCodes location_codes = 1; | ||
cmp.types.v1.LocationCodes location_codes = 1; | ||
|
||
// Single geographic point represented by two double fields. | ||
cmp.types.v1alpha.Coordinates location_coordinates = 2; | ||
cmp.types.v1.Coordinates location_coordinates = 2; | ||
|
||
// Geo tree type, represented by Country, Region, and City_or_Resort. | ||
cmp.types.v1alpha.GeoTree location_geo_tree = 3; | ||
cmp.types.v1.GeoTree location_geo_tree = 3; | ||
|
||
// Geo circle. Represented by a coordinate and a distance for radius | ||
cmp.types.v1alpha.GeoCircle location_geo_circle = 4; | ||
cmp.types.v1.GeoCircle location_geo_circle = 4; | ||
|
||
// Geo polygon. Represented by a list of coordinate points. | ||
cmp.types.v1alpha.GeoPolygon location_geo_polygon = 5; | ||
cmp.types.v1.GeoPolygon location_geo_polygon = 5; | ||
} | ||
|
||
// Mealplan codes | ||
repeated cmp.types.v1alpha.MealPlan meal_plan_codes = 6; | ||
repeated cmp.types.v1.MealPlan meal_plan_codes = 6; | ||
|
||
// Rate plans | ||
repeated cmp.types.v1alpha.RatePlan rate_plans = 7; | ||
repeated cmp.types.v1.RatePlan rate_plans = 7; | ||
|
||
// Rate Rules | ||
// To be used when searching for specific rates like refundable or resellable offers | ||
repeated cmp.types.v1alpha.RateRule rate_rules = 8; | ||
repeated cmp.types.v1.RateRule rate_rules = 8; | ||
|
||
// Product code list | ||
// Here a list of property codes would be used that could be of different types | ||
repeated cmp.types.v1alpha.ProductCode product_codes = 9; | ||
repeated cmp.types.v1.ProductCode product_codes = 9; | ||
|
||
// Or a list of provider codes would be used | ||
repeated cmp.types.v1alpha.SupplierProductCode supplier_codes = 10; | ||
repeated cmp.types.v1.SupplierProductCode supplier_codes = 10; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.