Skip to content

Commit

Permalink
docs: Fix typo in PriceLevel enum
Browse files Browse the repository at this point in the history
docs: Document the maximum number of reviews and photos returned
docs: Correct requirements on Autocomplete and Details session token field

PiperOrigin-RevId: 620317804

Source-Link: googleapis/googleapis@828b4ba

Source-Link: googleapis/googleapis-gen@89965d3
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuTWFwcy5QbGFjZXMuVjEvLk93bEJvdC55YW1sIiwiaCI6Ijg5OTY1ZDNjYjAzOTRlZmJhYzA1YTA5ZTZiN2U4OTc2YzcwYzQyNTIifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Mar 29, 2024
1 parent f904f90 commit 2528532
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
8 changes: 5 additions & 3 deletions apis/Google.Maps.Places.V1/Google.Maps.Places.V1/Place.g.cs
Expand Up @@ -202,7 +202,7 @@ public enum PriceLevel {
/// </summary>
[pbr::OriginalName("PRICE_LEVEL_EXPENSIVE")] Expensive = 4,
/// <summary>
/// Place provides very expensive service s.
/// Place provides very expensive services.
/// </summary>
[pbr::OriginalName("PRICE_LEVEL_VERY_EXPENSIVE")] VeryExpensive = 5,
}
Expand Down Expand Up @@ -607,7 +607,8 @@ public sealed partial class Place : pb::IMessage<Place>
= pb::FieldCodec.ForMessage(426, global::Google.Maps.Places.V1.Review.Parser);
private readonly pbc::RepeatedField<global::Google.Maps.Places.V1.Review> reviews_ = new pbc::RepeatedField<global::Google.Maps.Places.V1.Review>();
/// <summary>
/// List of reviews about this place, sorted by relevance.
/// List of reviews about this place, sorted by relevance. A maximum of 5
/// reviews can be returned.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -668,7 +669,8 @@ public sealed partial class Place : pb::IMessage<Place>
= pb::FieldCodec.ForMessage(434, global::Google.Maps.Places.V1.Photo.Parser);
private readonly pbc::RepeatedField<global::Google.Maps.Places.V1.Photo> photos_ = new pbc::RepeatedField<global::Google.Maps.Places.V1.Photo>();
/// <summary>
/// Information (including references) about photos of this place.
/// Information (including references) about photos of this place. A maximum of
/// 10 photos can be returned.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down
53 changes: 29 additions & 24 deletions apis/Google.Maps.Places.V1/Google.Maps.Places.V1/PlacesService.g.cs
Expand Up @@ -3593,21 +3593,23 @@ public sealed partial class GetPlaceRequest : pb::IMessage<GetPlaceRequest>
public const int SessionTokenFieldNumber = 4;
private string sessionToken_ = "";
/// <summary>
/// Optional. An arbitrary string which identifies an autocomplete session for
/// billing purposes. Must be at most 36 characters in length. Otherwise an
/// INVALID_ARGUMENT error is returned.
/// Optional. A string which identifies an Autocomplete session for billing
/// purposes. Must be a URL and filename safe base64 string with at most 36
/// ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
/// returned.
///
/// The session begins when the user starts typing a query, and concludes when
/// they select a place and a call to Place Details or Address Validation is
/// made. Each session can have multiple queries, followed by one Place
/// selection. The credentials used for each request within a session must
/// belong to the same Google Cloud Console project. Once a session has
/// concluded, the token is no longer valid; your app must generate a fresh
/// token for each session. If the `session_token` parameter is omitted, or if
/// you reuse a session token, the session is charged as if no session token
/// was provided (each request is billed separately).
/// made. Each session can have multiple queries, followed by one Place Details
/// or Address Validation request. The credentials used for each request within
/// a session must belong to the same Google Cloud Console project. Once a
/// session has concluded, the token is no longer valid; your app must generate
/// a fresh token for each session. If the `session_token` parameter is
/// omitted, or if you reuse a session token, the session is charged as if no
/// session token was provided (each request is billed separately).
///
/// We recommend the following guidelines:
///
/// * Use session tokens for all Place Autocomplete calls.
/// * Generate a fresh token for each session. Using a version 4 UUID is
/// recommended.
Expand Down Expand Up @@ -3951,8 +3953,8 @@ public sealed partial class AutocompletePlacesRequest : pb::IMessage<Autocomplet
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField<string> includedPrimaryTypes_ = new pbc::RepeatedField<string>();
/// <summary>
/// Optional. Included primary Place type (e.g. "restaurant" or "gas_station")
/// from
/// Optional. Included primary Place type (for example, "restaurant" or
/// "gas_station") from
/// https://developers.google.com/maps/documentation/places/web-service/place-types.
/// A Place is only returned if its primary type is included in this list. Up
/// to 5 values can be specified. If no types are specified, all Place types
Expand Down Expand Up @@ -4073,21 +4075,23 @@ public sealed partial class AutocompletePlacesRequest : pb::IMessage<Autocomplet
public const int SessionTokenFieldNumber = 11;
private string sessionToken_ = "";
/// <summary>
/// Optional. An arbitrary string which identifies an autocomplete session for
/// billing purposes. Must be at most 36 characters in length. Otherwise an
/// INVALID_ARGUMENT error is returned.
/// Optional. A string which identifies an Autocomplete session for billing
/// purposes. Must be a URL and filename safe base64 string with at most 36
/// ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
/// returned.
///
/// The session begins when the user starts typing a query, and concludes when
/// they select a place and a call to Place Details or Address Validation is
/// made. Each session can have multiple queries, followed by one Place
/// selection. The credentials used for each request within a session must
/// belong to the same Google Cloud Console project. Once a session has
/// concluded, the token is no longer valid; your app must generate a fresh
/// token for each session. If the `session_token` parameter is omitted, or if
/// you reuse a session token, the session is charged as if no session token
/// was provided (each request is billed separately).
/// made. Each session can have multiple queries, followed by one Place Details
/// or Address Validation request. The credentials used for each request within
/// a session must belong to the same Google Cloud Console project. Once a
/// session has concluded, the token is no longer valid; your app must generate
/// a fresh token for each session. If the `session_token` parameter is
/// omitted, or if you reuse a session token, the session is charged as if no
/// session token was provided (each request is billed separately).
///
/// We recommend the following guidelines:
///
/// * Use session tokens for all Place Autocomplete calls.
/// * Generate a fresh token for each session. Using a version 4 UUID is
/// recommended.
Expand Down Expand Up @@ -5884,7 +5888,7 @@ public sealed partial class FormattableText : pb::IMessage<FormattableText>
/// A list of string ranges identifying where the input request matched in
/// `text`. The ranges can be used to format specific parts of `text`. The
/// substrings may not be exact matches of `input` if the matching was
/// determined by criteria other than string matching (e.g. spell
/// determined by criteria other than string matching (for example, spell
/// corrections or transliterations).
///
/// These values are Unicode character offsets of `text`. The ranges are
Expand Down Expand Up @@ -6792,7 +6796,8 @@ public sealed partial class QueryPrediction : pb::IMessage<QueryPrediction>
private global::Google.Maps.Places.V1.AutocompletePlacesResponse.Types.Suggestion.Types.FormattableText text_;
/// <summary>
/// The predicted text. This text does not represent a Place, but rather a
/// text query that could be used in a search endpoint (e.g. TextSearch).
/// text query that could be used in a search endpoint (for example,
/// TextSearch).
///
/// `text` is recommended for developers who wish to show a single UI
/// element. Developers who wish to show two separate, but related, UI
Expand Down

0 comments on commit 2528532

Please sign in to comment.