1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.maps.places.v1; 18 19import "google/protobuf/timestamp.proto"; 20import "google/type/money.proto"; 21 22option cc_enable_arenas = true; 23option csharp_namespace = "Google.Maps.Places.V1"; 24option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; 25option java_multiple_files = true; 26option java_outer_classname = "FuelOptionsProto"; 27option java_package = "com.google.maps.places.v1"; 28option objc_class_prefix = "GMPSV1"; 29option php_namespace = "Google\\Maps\\Places\\V1"; 30 31// The most recent information about fuel options in a gas station. This 32// information is updated regularly. 33message FuelOptions { 34 // Fuel price information for a given type. 35 message FuelPrice { 36 // Types of fuel. 37 enum FuelType { 38 // Unspecified fuel type. 39 FUEL_TYPE_UNSPECIFIED = 0; 40 41 // Diesel fuel. 42 DIESEL = 1; 43 44 // Regular unleaded. 45 REGULAR_UNLEADED = 2; 46 47 // Midgrade. 48 MIDGRADE = 3; 49 50 // Premium. 51 PREMIUM = 4; 52 53 // SP 91. 54 SP91 = 5; 55 56 // SP 91 E10. 57 SP91_E10 = 6; 58 59 // SP 92. 60 SP92 = 7; 61 62 // SP 95. 63 SP95 = 8; 64 65 // SP95 E10. 66 SP95_E10 = 9; 67 68 // SP 98. 69 SP98 = 10; 70 71 // SP 99. 72 SP99 = 11; 73 74 // SP 100. 75 SP100 = 12; 76 77 // LPG. 78 LPG = 13; 79 80 // E 80. 81 E80 = 14; 82 83 // E 85. 84 E85 = 15; 85 86 // Methane. 87 METHANE = 16; 88 89 // Bio-diesel. 90 BIO_DIESEL = 17; 91 92 // Truck diesel. 93 TRUCK_DIESEL = 18; 94 } 95 96 // The type of fuel. 97 FuelType type = 1; 98 99 // The price of the fuel. 100 google.type.Money price = 2; 101 102 // The time the fuel price was last updated. 103 google.protobuf.Timestamp update_time = 3; 104 } 105 106 // The last known fuel price for each type of fuel this station has. There is 107 // one entry per fuel type this station has. Order is not important. 108 repeated FuelPrice fuel_prices = 1; 109} 110