Skip to content

Commit

Permalink
chore: regenerate places client (#23836)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Nov 8, 2024
1 parent 571453f commit 83d26ff
Show file tree
Hide file tree
Showing 9 changed files with 403 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-places/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-places</artifactId>
<version>v1-rev20241029-2.0.0</version>
<version>v1-rev20241106-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-places:v1-rev20241029-2.0.0'
implementation 'com.google.apis:google-api-services-places:v1-rev20241106-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@
@SuppressWarnings("javadoc")
public final class GoogleMapsPlacesV1AutocompletePlacesRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. Include pure service area businesses if the field is set to true. Pure service area
* business is a business that visits or delivers to customers directly but does not serve
* customers at their business address. For example, businesses like cleaning services or
* plumbers. Those businesses do not have a physical address or location on Google Maps. Places
* will not return fields including `location`, `plus_code`, and other location related fields for
* these businesses.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean includePureServiceAreaBusinesses;

/**
* Optional. If true, the response will include both Place and query predictions. Otherwise the
* response will only return Place predictions.
Expand Down Expand Up @@ -143,6 +155,33 @@ public final class GoogleMapsPlacesV1AutocompletePlacesRequest extends com.googl
@com.google.api.client.util.Key
private java.lang.String sessionToken;

/**
* Optional. Include pure service area businesses if the field is set to true. Pure service area
* business is a business that visits or delivers to customers directly but does not serve
* customers at their business address. For example, businesses like cleaning services or
* plumbers. Those businesses do not have a physical address or location on Google Maps. Places
* will not return fields including `location`, `plus_code`, and other location related fields for
* these businesses.
* @return value or {@code null} for none
*/
public java.lang.Boolean getIncludePureServiceAreaBusinesses() {
return includePureServiceAreaBusinesses;
}

/**
* Optional. Include pure service area businesses if the field is set to true. Pure service area
* business is a business that visits or delivers to customers directly but does not serve
* customers at their business address. For example, businesses like cleaning services or
* plumbers. Those businesses do not have a physical address or location on Google Maps. Places
* will not return fields including `location`, `plus_code`, and other location related fields for
* these businesses.
* @param includePureServiceAreaBusinesses includePureServiceAreaBusinesses or {@code null} for none
*/
public GoogleMapsPlacesV1AutocompletePlacesRequest setIncludePureServiceAreaBusinesses(java.lang.Boolean includePureServiceAreaBusinesses) {
this.includePureServiceAreaBusinesses = includePureServiceAreaBusinesses;
return this;
}

/**
* Optional. If true, the response will include both Place and query predictions. Otherwise the
* response will only return Place predictions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,19 @@ public final class GoogleMapsPlacesV1Place extends com.google.api.client.json.Ge
private java.util.List<GoogleMapsPlacesV1PlaceAttribution> attributions;

/**
* The business status for the place.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String businessStatus;

/**
* List of places in which the current place is located.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GoogleMapsPlacesV1PlaceContainingPlace> containingPlaces;

/**
* Specifies if the business supports curbside pickup.
* The value may be {@code null}.
Expand Down Expand Up @@ -335,6 +343,13 @@ public final class GoogleMapsPlacesV1Place extends com.google.api.client.json.Ge
@com.google.api.client.util.Key
private java.lang.String priceLevel;

/**
* The price range associated with a Place.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleMapsPlacesV1PriceRange priceRange;

/**
* The primary type of the given result. This type must one of the Places API supported types. For
* example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For
Expand All @@ -354,6 +369,16 @@ public final class GoogleMapsPlacesV1Place extends com.google.api.client.json.Ge
@com.google.api.client.util.Key
private GoogleTypeLocalizedText primaryTypeDisplayName;

/**
* Indicates whether the place is a pure service area business. Pure service area business is a
* business that visits or delivers to customers directly but does not serve customers at their
* business address. For example, businesses like cleaning services or plumbers. Those businesses
* may not have a physical address or location on Google Maps.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean pureServiceAreaBusiness;

/**
* A rating between 1.0 and 5.0, based on user reviews of this place.
* The value may be {@code null}.
Expand Down Expand Up @@ -679,20 +704,39 @@ public GoogleMapsPlacesV1Place setAttributions(java.util.List<GoogleMapsPlacesV1
}

/**
* The business status for the place.
* @return value or {@code null} for none
*/
public java.lang.String getBusinessStatus() {
return businessStatus;
}

/**
* The business status for the place.
* @param businessStatus businessStatus or {@code null} for none
*/
public GoogleMapsPlacesV1Place setBusinessStatus(java.lang.String businessStatus) {
this.businessStatus = businessStatus;
return this;
}

/**
* List of places in which the current place is located.
* @return value or {@code null} for none
*/
public java.util.List<GoogleMapsPlacesV1PlaceContainingPlace> getContainingPlaces() {
return containingPlaces;
}

/**
* List of places in which the current place is located.
* @param containingPlaces containingPlaces or {@code null} for none
*/
public GoogleMapsPlacesV1Place setContainingPlaces(java.util.List<GoogleMapsPlacesV1PlaceContainingPlace> containingPlaces) {
this.containingPlaces = containingPlaces;
return this;
}

/**
* Specifies if the business supports curbside pickup.
* @return value or {@code null} for none
Expand Down Expand Up @@ -1250,6 +1294,23 @@ public GoogleMapsPlacesV1Place setPriceLevel(java.lang.String priceLevel) {
return this;
}

/**
* The price range associated with a Place.
* @return value or {@code null} for none
*/
public GoogleMapsPlacesV1PriceRange getPriceRange() {
return priceRange;
}

/**
* The price range associated with a Place.
* @param priceRange priceRange or {@code null} for none
*/
public GoogleMapsPlacesV1Place setPriceRange(GoogleMapsPlacesV1PriceRange priceRange) {
this.priceRange = priceRange;
return this;
}

/**
* The primary type of the given result. This type must one of the Places API supported types. For
* example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For
Expand Down Expand Up @@ -1294,6 +1355,29 @@ public GoogleMapsPlacesV1Place setPrimaryTypeDisplayName(GoogleTypeLocalizedText
return this;
}

/**
* Indicates whether the place is a pure service area business. Pure service area business is a
* business that visits or delivers to customers directly but does not serve customers at their
* business address. For example, businesses like cleaning services or plumbers. Those businesses
* may not have a physical address or location on Google Maps.
* @return value or {@code null} for none
*/
public java.lang.Boolean getPureServiceAreaBusiness() {
return pureServiceAreaBusiness;
}

/**
* Indicates whether the place is a pure service area business. Pure service area business is a
* business that visits or delivers to customers directly but does not serve customers at their
* business address. For example, businesses like cleaning services or plumbers. Those businesses
* may not have a physical address or location on Google Maps.
* @param pureServiceAreaBusiness pureServiceAreaBusiness or {@code null} for none
*/
public GoogleMapsPlacesV1Place setPureServiceAreaBusiness(java.lang.Boolean pureServiceAreaBusiness) {
this.pureServiceAreaBusiness = pureServiceAreaBusiness;
return this;
}

/**
* A rating between 1.0 and 5.0, based on user reviews of this place.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.places.v1.model;

/**
* Info about the place in which this place is located.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Places API (New). For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleMapsPlacesV1PlaceContainingPlace extends com.google.api.client.json.GenericJson {

/**
* The place id of the place in which this place is located.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;

/**
* The resource name of the place in which this place is located.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* The place id of the place in which this place is located.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}

/**
* The place id of the place in which this place is located.
* @param id id or {@code null} for none
*/
public GoogleMapsPlacesV1PlaceContainingPlace setId(java.lang.String id) {
this.id = id;
return this;
}

/**
* The resource name of the place in which this place is located.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* The resource name of the place in which this place is located.
* @param name name or {@code null} for none
*/
public GoogleMapsPlacesV1PlaceContainingPlace setName(java.lang.String name) {
this.name = name;
return this;
}

@Override
public GoogleMapsPlacesV1PlaceContainingPlace set(String fieldName, Object value) {
return (GoogleMapsPlacesV1PlaceContainingPlace) super.set(fieldName, value);
}

@Override
public GoogleMapsPlacesV1PlaceContainingPlace clone() {
return (GoogleMapsPlacesV1PlaceContainingPlace) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@
@SuppressWarnings("javadoc")
public final class GoogleMapsPlacesV1PlaceOpeningHours extends com.google.api.client.json.GenericJson {

/**
* The next time the current opening hours period ends up to 7 days in the future. This field is
* only populated if the opening hours period is active at the time of serving the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String nextCloseTime;

/**
* The next time the current opening hours period starts up to 7 days in the future. This field is
* only populated if the opening hours period is not active at the time of serving the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String nextOpenTime;

/**
* Whether the opening hours period is currently active. For regular opening hours and current
* opening hours, this field means whether the place is open. For secondary opening hours and
Expand Down Expand Up @@ -74,6 +90,44 @@ public final class GoogleMapsPlacesV1PlaceOpeningHours extends com.google.api.cl
@com.google.api.client.util.Key
private java.util.List<java.lang.String> weekdayDescriptions;

/**
* The next time the current opening hours period ends up to 7 days in the future. This field is
* only populated if the opening hours period is active at the time of serving the request.
* @return value or {@code null} for none
*/
public String getNextCloseTime() {
return nextCloseTime;
}

/**
* The next time the current opening hours period ends up to 7 days in the future. This field is
* only populated if the opening hours period is active at the time of serving the request.
* @param nextCloseTime nextCloseTime or {@code null} for none
*/
public GoogleMapsPlacesV1PlaceOpeningHours setNextCloseTime(String nextCloseTime) {
this.nextCloseTime = nextCloseTime;
return this;
}

/**
* The next time the current opening hours period starts up to 7 days in the future. This field is
* only populated if the opening hours period is not active at the time of serving the request.
* @return value or {@code null} for none
*/
public String getNextOpenTime() {
return nextOpenTime;
}

/**
* The next time the current opening hours period starts up to 7 days in the future. This field is
* only populated if the opening hours period is not active at the time of serving the request.
* @param nextOpenTime nextOpenTime or {@code null} for none
*/
public GoogleMapsPlacesV1PlaceOpeningHours setNextOpenTime(String nextOpenTime) {
this.nextOpenTime = nextOpenTime;
return this;
}

/**
* Whether the opening hours period is currently active. For regular opening hours and current
* opening hours, this field means whether the place is open. For secondary opening hours and
Expand Down
Loading

0 comments on commit 83d26ff

Please sign in to comment.