|
| 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 | + * A navigation point is a location next to a road where navigation can end. |
| 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 GoogleMapsPlacesV1PlaceNavigationPoint extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * The display name of this navigation point. For example, "5th Ave" or "Gate B". |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private GoogleTypeLocalizedText displayName; |
| 38 | + |
| 39 | + /** |
| 40 | + * A point next to the road segment where navigation should end. The point is intentionally |
| 41 | + * slightly offset from the road's centerline to clearly mark the side of the road where the place |
| 42 | + * is located. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private GoogleTypeLatLng location; |
| 47 | + |
| 48 | + /** |
| 49 | + * A token that can be used to identify this navigation point. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key |
| 53 | + private java.lang.String navigationPointToken; |
| 54 | + |
| 55 | + /** |
| 56 | + * Travel modes that are appropriate for this navigation point. |
| 57 | + * The value may be {@code null}. |
| 58 | + */ |
| 59 | + @com.google.api.client.util.Key |
| 60 | + private java.util.List<java.lang.String> travelModes; |
| 61 | + |
| 62 | + /** |
| 63 | + * Lists `usages` supported by this navigation point. If empty, it does not necessarily mean its |
| 64 | + * usage is restricted in any way. All navigation points can be used for general navigation. |
| 65 | + * The value may be {@code null}. |
| 66 | + */ |
| 67 | + @com.google.api.client.util.Key |
| 68 | + private java.util.List<java.lang.String> usages; |
| 69 | + |
| 70 | + /** |
| 71 | + * The display name of this navigation point. For example, "5th Ave" or "Gate B". |
| 72 | + * @return value or {@code null} for none |
| 73 | + */ |
| 74 | + public GoogleTypeLocalizedText getDisplayName() { |
| 75 | + return displayName; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * The display name of this navigation point. For example, "5th Ave" or "Gate B". |
| 80 | + * @param displayName displayName or {@code null} for none |
| 81 | + */ |
| 82 | + public GoogleMapsPlacesV1PlaceNavigationPoint setDisplayName(GoogleTypeLocalizedText displayName) { |
| 83 | + this.displayName = displayName; |
| 84 | + return this; |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * A point next to the road segment where navigation should end. The point is intentionally |
| 89 | + * slightly offset from the road's centerline to clearly mark the side of the road where the place |
| 90 | + * is located. |
| 91 | + * @return value or {@code null} for none |
| 92 | + */ |
| 93 | + public GoogleTypeLatLng getLocation() { |
| 94 | + return location; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * A point next to the road segment where navigation should end. The point is intentionally |
| 99 | + * slightly offset from the road's centerline to clearly mark the side of the road where the place |
| 100 | + * is located. |
| 101 | + * @param location location or {@code null} for none |
| 102 | + */ |
| 103 | + public GoogleMapsPlacesV1PlaceNavigationPoint setLocation(GoogleTypeLatLng location) { |
| 104 | + this.location = location; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * A token that can be used to identify this navigation point. |
| 110 | + * @return value or {@code null} for none |
| 111 | + */ |
| 112 | + public java.lang.String getNavigationPointToken() { |
| 113 | + return navigationPointToken; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * A token that can be used to identify this navigation point. |
| 118 | + * @param navigationPointToken navigationPointToken or {@code null} for none |
| 119 | + */ |
| 120 | + public GoogleMapsPlacesV1PlaceNavigationPoint setNavigationPointToken(java.lang.String navigationPointToken) { |
| 121 | + this.navigationPointToken = navigationPointToken; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Travel modes that are appropriate for this navigation point. |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public java.util.List<java.lang.String> getTravelModes() { |
| 130 | + return travelModes; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Travel modes that are appropriate for this navigation point. |
| 135 | + * @param travelModes travelModes or {@code null} for none |
| 136 | + */ |
| 137 | + public GoogleMapsPlacesV1PlaceNavigationPoint setTravelModes(java.util.List<java.lang.String> travelModes) { |
| 138 | + this.travelModes = travelModes; |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Lists `usages` supported by this navigation point. If empty, it does not necessarily mean its |
| 144 | + * usage is restricted in any way. All navigation points can be used for general navigation. |
| 145 | + * @return value or {@code null} for none |
| 146 | + */ |
| 147 | + public java.util.List<java.lang.String> getUsages() { |
| 148 | + return usages; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * Lists `usages` supported by this navigation point. If empty, it does not necessarily mean its |
| 153 | + * usage is restricted in any way. All navigation points can be used for general navigation. |
| 154 | + * @param usages usages or {@code null} for none |
| 155 | + */ |
| 156 | + public GoogleMapsPlacesV1PlaceNavigationPoint setUsages(java.util.List<java.lang.String> usages) { |
| 157 | + this.usages = usages; |
| 158 | + return this; |
| 159 | + } |
| 160 | + |
| 161 | + @Override |
| 162 | + public GoogleMapsPlacesV1PlaceNavigationPoint set(String fieldName, Object value) { |
| 163 | + return (GoogleMapsPlacesV1PlaceNavigationPoint) super.set(fieldName, value); |
| 164 | + } |
| 165 | + |
| 166 | + @Override |
| 167 | + public GoogleMapsPlacesV1PlaceNavigationPoint clone() { |
| 168 | + return (GoogleMapsPlacesV1PlaceNavigationPoint) super.clone(); |
| 169 | + } |
| 170 | + |
| 171 | +} |
0 commit comments