Skip to content

Commit

Permalink
Update all files to use fully qualified names (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
havan authored Sep 23, 2024
1 parent 29d4cbd commit f960cf1
Show file tree
Hide file tree
Showing 51 changed files with 134 additions and 134 deletions.
2 changes: 1 addition & 1 deletion proto/cmp/services/accommodation/v1/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ message AccommodationProductInfoResponse {
cmp.types.v1.ResponseHeader header = 1;

// Product list: Properties
repeated PropertyExtendedInfo properties = 2;
repeated cmp.services.accommodation.v1.PropertyExtendedInfo properties = 2;
}

// Accommodation product info service definition
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/accommodation/v1/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ message AccommodationProductListResponse {
cmp.types.v1.ResponseHeader header = 1;

// Product list: Properties
repeated Property properties = 2;
repeated cmp.services.accommodation.v1.Property properties = 2;
}

// Accommodation product list service definition
Expand Down
16 changes: 8 additions & 8 deletions proto/cmp/services/accommodation/v1/property_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ message Property {
// Ex: "Hilton"
string chain = 5;

// Ex: CategoryRating.CATEGORY_RATING_4_5
CategoryRating category_rating = 6;
// Ex: CATEGORY_RATING_4_5
cmp.services.accommodation.v1.CategoryRating category_rating = 6;

// Ex: CategoryUnit.CATEGORY_UNIT_PALMS
CategoryUnit category_unit = 7;
// Ex: CATEGORY_UNIT_PALMS
cmp.services.accommodation.v1.CategoryUnit category_unit = 7;

// Contact Info: phone, address, email, links
cmp.types.v1.ContactInfo contact_info = 8;
Expand Down Expand Up @@ -89,7 +89,7 @@ enum CategoryUnit {
// This message type contains extended info about a property
message PropertyExtendedInfo {
// Property
Property property = 1;
cmp.services.accommodation.v1.Property property = 1;

// Images
repeated cmp.types.v1.Image images = 2;
Expand All @@ -110,7 +110,7 @@ message PropertyExtendedInfo {
string payment_type = 7;

// Rooms
repeated Room rooms = 8;
repeated cmp.services.accommodation.v1.Room rooms = 8;
}

message Room {
Expand Down Expand Up @@ -146,7 +146,7 @@ message Room {
repeated cmp.types.v1.Bed beds = 8;

// Occupancy
Occupancy total_occupancy = 9;
cmp.services.accommodation.v1.Occupancy total_occupancy = 9;

// Services
repeated cmp.types.v1.ServiceFact services = 10;
Expand All @@ -172,7 +172,7 @@ message Occupancy {
bool infant_counted_in_total_guests = 5;

// Occupancy options
repeated OccupancyOption occupancy_options = 6;
repeated cmp.services.accommodation.v1.OccupancyOption occupancy_options = 6;
}

message OccupancyOption {
Expand Down
4 changes: 2 additions & 2 deletions proto/cmp/services/accommodation/v1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ message AccommodationSearchRequest {

// This field represents a list of search queries that can be used to create
// multiroom multi location searches.
repeated AccommodationSearchQuery queries = 4;
repeated cmp.services.accommodation.v1.AccommodationSearchQuery queries = 4;
}

// The `Accommodation Search Response` message type facilitates the response for
Expand All @@ -106,7 +106,7 @@ message AccommodationSearchResponse {
cmp.types.v1.SearchResponseMetadata metadata = 2;

// Unique combinations of bookable search results, like property,
repeated AccommodationSearchResult results = 3;
repeated cmp.services.accommodation.v1.AccommodationSearchResult results = 3;

// Global definition of the travellers for all results to be used via the traveller_id each unit.
repeated cmp.types.v1.BasicTraveller travellers = 4;
Expand Down
4 changes: 2 additions & 2 deletions proto/cmp/services/accommodation/v1/search_query_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ message AccommodationSearchQuery {

// Accommodation specific search parameters Ex: Specific search parameters like
// geo location, meal plan, rate plan and rate rules.
AccommodationSearchParameters search_parameters_accommodation = 2;
cmp.services.accommodation.v1.AccommodationSearchParameters search_parameters_accommodation = 2;

// Travel period
cmp.types.v1.TravelPeriod travel_period = 3;
Expand All @@ -25,5 +25,5 @@ message AccommodationSearchQuery {
int32 unit_count = 5;

// Type of the unit, like room or holiday home
UnitType unit_type = 6;
cmp.services.accommodation.v1.UnitType unit_type = 6;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ message AccommodationSearchResult {
int32 query_id = 2;

// Units for this search result
repeated Unit units = 3;
repeated cmp.services.accommodation.v1.Unit units = 3;

// ## Total price in detail, with breakdowns
cmp.types.v1.PriceDetail total_price_detail = 4;
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/accommodation/v1/unit_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "cmp/types/v1/travel_period.proto";
message Unit {
// Unit Type. Used to distinguish between hotel rooms and holiday homes.
// Ex: `UnitType.UNIT_TYPE_ROOM`
UnitType type = 1;
cmp.services.accommodation.v1.UnitType type = 1;

// Room code of the unit in case of hotel. Ex: "RMSDDB0000". This code must explicitly
// match the supplier_room_code in the ProductList and the ProductInfo messages, so that
Expand Down
16 changes: 8 additions & 8 deletions proto/cmp/services/activity/v1/activity_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,29 +98,29 @@ message PickupDropoffEvent {
// Activity static info
message ActivityExtendedInfo {
// Activity dynamic info references
Activity activity = 1;
cmp.services.activity.v1.Activity activity = 1;

// Available Units
repeated ActivityUnit units = 2;
repeated cmp.services.activity.v1.ActivityUnit units = 2;

// Available Services
repeated ActivityService services = 3;
repeated cmp.services.activity.v1.ActivityService services = 3;

// Transfer Zone(s) in which participants of the activity can be used for pick-up
// and drop-off
repeated TransferZone zones = 4;
repeated cmp.services.activity.v1.TransferZone zones = 4;

// Descriptions with different languages
repeated cmp.types.v1.LocalizedDescriptionSet descriptions = 5;

// Coordinates of where the activity takes place
ActivityLocation location = 6;
cmp.services.activity.v1.ActivityLocation location = 6;

// Activity Features
repeated ActivityFeature features = 7;
repeated cmp.services.activity.v1.ActivityFeature features = 7;

// Tags
repeated ActivityTag tags = 8;
repeated cmp.services.activity.v1.ActivityTag tags = 8;

// Languages
repeated cmp.types.v1.Language languages = 9;
Expand Down Expand Up @@ -233,7 +233,7 @@ message TransferZone {
cmp.types.v1.GeoTree geo_tree = 2;

// pick-up and drop-off information about location and time
repeated PickupDropoffEvent pickup_dropoff_events = 3;
repeated cmp.services.activity.v1.PickupDropoffEvent pickup_dropoff_events = 3;
}

message ActivityFeature {
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/activity/v1/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ message ActivityProductInfoResponse {
cmp.types.v1.ResponseHeader header = 1;

// Product list: Activities
repeated ActivityExtendedInfo activities = 2;
repeated cmp.services.activity.v1.ActivityExtendedInfo activities = 2;
}

// Activity product info service definition
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/activity/v1/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ message ActivityProductListResponse {
cmp.types.v1.ResponseHeader header = 1;

// Product list: Activities
repeated Activity activities = 2;
repeated cmp.services.activity.v1.Activity activities = 2;
}

// This service is used to get a product list for activities.
Expand Down
4 changes: 2 additions & 2 deletions proto/cmp/services/activity/v1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ message ActivitySearchRequest {
//
// Here we set for example a list of activity product codes that we want to search
// for, set min or mar duration or price.
ActivitySearchParameters search_parameters_activity = 4;
cmp.services.activity.v1.ActivitySearchParameters search_parameters_activity = 4;

// Travel period
cmp.types.v1.TravelPeriod travel_period = 5;
Expand Down Expand Up @@ -139,7 +139,7 @@ message ActivitySearchResponse {

// Unique combinations of bookable search results, each identified by a result_id
// that needs to be carried through to the validate request.
repeated ActivitySearchResult results = 3;
repeated cmp.services.activity.v1.ActivitySearchResult results = 3;

// The traveller_id is specified in each result and the ids are detailed with
// basic traveller data only once in the top-level search response to avoid
Expand Down
6 changes: 3 additions & 3 deletions proto/cmp/services/activity/v1/search_result_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ message ActivitySearchResult {
int32 result_id = 1;

// Activity basic info
Activity info = 2;
cmp.services.activity.v1.Activity info = 2;

// Schedule
cmp.types.v1.DateTimeRange schedule = 3;

// Activity location
ActivityLocation location = 4;
cmp.services.activity.v1.ActivityLocation location = 4;

// Pickup Dropoff
repeated PickupDropoffEvent pickup_dropoff_events = 5;
repeated cmp.services.activity.v1.PickupDropoffEvent pickup_dropoff_events = 5;

// Min participants
int32 min_participants = 6;
Expand Down
4 changes: 2 additions & 2 deletions proto/cmp/services/book/v1/validate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ message ValidationRequest {
cmp.types.v1.RequestHeader header = 1;

// Validation object
ValidationObject validation_object = 2;
cmp.services.book.v1.ValidationObject validation_object = 2;
}

message ValidationResponse {
Expand All @@ -24,7 +24,7 @@ message ValidationResponse {
cmp.types.v1.UUID validation_id = 2;

// Validation object
ValidationObject validation_object = 3;
cmp.services.book.v1.ValidationObject validation_object = 3;

// Price details for the validated product
cmp.types.v1.PriceDetail price_detail = 4;
Expand Down
12 changes: 6 additions & 6 deletions proto/cmp/services/info/v1/entry_requirements.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ message CountryEntryRequirementsResponse {
cmp.types.v1.UUID response_id = 2;

// Categories
repeated CountryEntryRequirementCategory categories = 3;
repeated cmp.services.info.v1.CountryEntryRequirementCategory categories = 3;

// Items
repeated CountryEntryRequirementItem items = 4;
repeated cmp.services.info.v1.CountryEntryRequirementItem items = 4;
}

// Types
Expand All @@ -77,21 +77,21 @@ message CountryEntryRequirementCategory {
repeated cmp.types.v1.LocalizedString names = 2;

// Items
repeated CountryEntryRequirementItem items = 3;
repeated cmp.services.info.v1.CountryEntryRequirementItem items = 3;

// Sub categories
repeated CountryEntryRequirementCategory sub_categories = 4;
repeated cmp.services.info.v1.CountryEntryRequirementCategory sub_categories = 4;
}

message CountryEntryRequirementItem {
// Item type key. FIXME: Can this field be an enum?
string key = 1;

// Language specific names and descriptions
repeated LocalizedItemInfo info = 2;
repeated cmp.services.info.v1.LocalizedItemInfo info = 2;

// Status of the item. TODO: Add more explanation, what it means if it's false?
ItemStatus status = 3;
cmp.services.info.v1.ItemStatus status = 3;

// Significant update date
google.protobuf.Timestamp last_significant_update = 4;
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/network/v1/fee.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ message GetNetworkFeeRequest {
}

message GetNetworkFeeResponse {
NetworkFee network_fee = 1;
cmp.services.network.v1.NetworkFee network_fee = 1;
int32 current_block_height = 2;
}

Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/partner/v1/partner_configuration.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ message GetPartnerConfigurationRequest {

message GetPartnerConfigurationResponse {
// Partner configuration
PartnerConfiguration partner_configuration = 1;
cmp.services.partner.v1.PartnerConfiguration partner_configuration = 1;

// Current block height. Distributors can keep this info for later reference.
int32 current_block_height = 2;
Expand Down
4 changes: 2 additions & 2 deletions proto/cmp/services/transport/v1/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ message TransportSearchRequest {
cmp.types.v1.SearchParameters search_parameters = 3;

// Multiple search queries for this search request
repeated TransportSearchQuery queries = 4;
repeated cmp.services.transport.v1.TransportSearchQuery queries = 4;

// Remarks
string remarks = 5;
Expand All @@ -56,7 +56,7 @@ message TransportSearchResponse {
repeated cmp.types.v1.ContentSourceType conten_source_types = 3;

// Transit search results
repeated TransportSearchResult results = 4;
repeated cmp.services.transport.v1.TransportSearchResult results = 4;

// Global definition of the travellers for all results to be used via the traveller_id
repeated cmp.types.v1.BasicTraveller travellers = 5;
Expand Down
8 changes: 4 additions & 4 deletions proto/cmp/services/transport/v1/search_query_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ message TransportSearchQuery {
repeated cmp.types.v1.BasicTraveller travellers = 2;

// Trips
repeated QueryTrip trips = 3;
repeated cmp.services.transport.v1.QueryTrip trips = 3;
}

// Version of `Trip` object in `trip_types.prot` for search request's queries. It
// contains only departure and arrival objects, lacking the segments field.
message QueryTrip {
// Departure event
QueryTransitEvent departure = 1;
cmp.services.transport.v1.QueryTransitEvent departure = 1;

// Arrival event
QueryTransitEvent arrival = 2;
cmp.services.transport.v1.QueryTransitEvent arrival = 2;

// Transport specific search parameters
TransportSearchParameters search_parameters_transport = 3;
cmp.services.transport.v1.TransportSearchParameters search_parameters_transport = 3;
}

// Represents a departure or arrival event for search request's query. This type is
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/transport/v1/search_result_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ message TransportSearchResult {
// we rent a car and do a road trip to San Fransisco and we take a flight from SFO
// to SYD, where afer a couple of days we move on to Indonesia, Thailand, Japan,
// Türkiye and back to Amsterdam again.
repeated Trip travelling_trips = 5;
repeated cmp.services.transport.v1.Trip travelling_trips = 5;

// Total Price
cmp.types.v1.PriceDetail total_price = 6;
Expand Down
6 changes: 3 additions & 3 deletions proto/cmp/services/transport/v1/trip_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import "google/protobuf/timestamp.proto";
message Trip {
// Departure and Arrival dates and times can be derrived from the first and last segments
// Trip segments are the legs offered
repeated TripSegment segments = 1;
repeated cmp.services.transport.v1.TripSegment segments = 1;
}

// Represents a departure or arrival event
Expand Down Expand Up @@ -70,10 +70,10 @@ message TripSegment {
cmp.types.v1.SupplierProductCode supplier_code = 6;

// Departure
TransitEvent departure = 7;
cmp.services.transport.v1.TransitEvent departure = 7;

// Arrival
TransitEvent arrival = 8;
cmp.services.transport.v1.TransitEvent arrival = 8;

// Flights, trains and transfers often offer different service types
// for a product. Think about economy or business for flights, first and second
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/types/v1/address.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ message Address {
string line_2 = 2;
string district = 3;
string zip_code = 5;
GeoTree geo_tree = 6;
cmp.types.v1.GeoTree geo_tree = 6;
}
2 changes: 1 addition & 1 deletion proto/cmp/types/v1/amenity.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package cmp.types.v1;
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1/amenity.proto.dot.svg)
message Amenity {
// Amenity type like INTERNET, POOL, FOOD_BEVERAGE
AmenityType type = 1;
cmp.types.v1.AmenityType type = 1;

// Attributes of the amenity
map<string, string> attributes = 2;
Expand Down
Loading

0 comments on commit f960cf1

Please sign in to comment.