|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.places.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Encapsulates a set of optional conditions to satisfy when calculating the routes. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Places API (New). For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleMapsPlacesV1RouteModifiers extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. When set to true, avoids ferries where reasonable, giving preference to routes not |
| 34 | + * containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.Boolean avoidFerries; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. When set to true, avoids highways where reasonable, giving preference to routes not |
| 42 | + * containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.Boolean avoidHighways; |
| 47 | + |
| 48 | + /** |
| 49 | + * Optional. When set to true, avoids navigating indoors where reasonable, giving preference to |
| 50 | + * routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.Boolean avoidIndoor; |
| 55 | + |
| 56 | + /** |
| 57 | + * Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not |
| 58 | + * containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private java.lang.Boolean avoidTolls; |
| 63 | + |
| 64 | + /** |
| 65 | + * Optional. When set to true, avoids ferries where reasonable, giving preference to routes not |
| 66 | + * containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 67 | + * @return value or {@code null} for none |
| 68 | + */ |
| 69 | + public java.lang.Boolean getAvoidFerries() { |
| 70 | + return avoidFerries; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * Optional. When set to true, avoids ferries where reasonable, giving preference to routes not |
| 75 | + * containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 76 | + * @param avoidFerries avoidFerries or {@code null} for none |
| 77 | + */ |
| 78 | + public GoogleMapsPlacesV1RouteModifiers setAvoidFerries(java.lang.Boolean avoidFerries) { |
| 79 | + this.avoidFerries = avoidFerries; |
| 80 | + return this; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Optional. When set to true, avoids highways where reasonable, giving preference to routes not |
| 85 | + * containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 86 | + * @return value or {@code null} for none |
| 87 | + */ |
| 88 | + public java.lang.Boolean getAvoidHighways() { |
| 89 | + return avoidHighways; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Optional. When set to true, avoids highways where reasonable, giving preference to routes not |
| 94 | + * containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 95 | + * @param avoidHighways avoidHighways or {@code null} for none |
| 96 | + */ |
| 97 | + public GoogleMapsPlacesV1RouteModifiers setAvoidHighways(java.lang.Boolean avoidHighways) { |
| 98 | + this.avoidHighways = avoidHighways; |
| 99 | + return this; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Optional. When set to true, avoids navigating indoors where reasonable, giving preference to |
| 104 | + * routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`. |
| 105 | + * @return value or {@code null} for none |
| 106 | + */ |
| 107 | + public java.lang.Boolean getAvoidIndoor() { |
| 108 | + return avoidIndoor; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Optional. When set to true, avoids navigating indoors where reasonable, giving preference to |
| 113 | + * routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`. |
| 114 | + * @param avoidIndoor avoidIndoor or {@code null} for none |
| 115 | + */ |
| 116 | + public GoogleMapsPlacesV1RouteModifiers setAvoidIndoor(java.lang.Boolean avoidIndoor) { |
| 117 | + this.avoidIndoor = avoidIndoor; |
| 118 | + return this; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not |
| 123 | + * containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 124 | + * @return value or {@code null} for none |
| 125 | + */ |
| 126 | + public java.lang.Boolean getAvoidTolls() { |
| 127 | + return avoidTolls; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not |
| 132 | + * containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`. |
| 133 | + * @param avoidTolls avoidTolls or {@code null} for none |
| 134 | + */ |
| 135 | + public GoogleMapsPlacesV1RouteModifiers setAvoidTolls(java.lang.Boolean avoidTolls) { |
| 136 | + this.avoidTolls = avoidTolls; |
| 137 | + return this; |
| 138 | + } |
| 139 | + |
| 140 | + @Override |
| 141 | + public GoogleMapsPlacesV1RouteModifiers set(String fieldName, Object value) { |
| 142 | + return (GoogleMapsPlacesV1RouteModifiers) super.set(fieldName, value); |
| 143 | + } |
| 144 | + |
| 145 | + @Override |
| 146 | + public GoogleMapsPlacesV1RouteModifiers clone() { |
| 147 | + return (GoogleMapsPlacesV1RouteModifiers) super.clone(); |
| 148 | + } |
| 149 | + |
| 150 | +} |
0 commit comments