[−][src]Crate google_mybusiness4
This documentation was generated from My Business crate version 1.0.12+0, where 0 is the exact revision of the mybusiness:v4 schema built by the mako code generator v1.0.12.
Everything else about the My Business v4 API can be found at the official documentation site. The original source code is on github.
Features
Handle the following Resources with ease from the central hub ...
- accounts
- admins create, admins delete, admins list, admins patch, create, delete notifications, generate account number, get, get notifications, invitations accept, invitations decline, invitations list, list, list recommend google locations, locations admins create, locations admins delete, locations admins list, locations admins patch, locations associate, locations batch get, locations batch get reviews, locations clear association, locations create, locations delete, locations fetch verification options, locations find matches, locations followers get metadata, locations get, locations get google updated, locations list, locations local posts create, locations local posts delete, locations local posts get, locations local posts list, locations local posts patch, locations local posts report insights, locations media create, locations media customers get, locations media customers list, locations media delete, locations media get, locations media list, locations media patch, locations media start upload, locations patch, locations questions answers delete, locations questions answers list, locations questions answers upsert, locations questions create, locations questions delete, locations questions list, locations questions patch, locations report insights, locations reviews delete reply, locations reviews get, locations reviews list, locations reviews update reply, locations transfer, locations verifications complete, locations verifications list, locations verify, update and update notifications
- attributes
- list
- categories
- list
- chains
- get and search
- google locations
- report and search
- verification tokens
- generate
Not what you are looking for ? Find all other Google APIs in their Rust documentation index.
Structure of this Library
The API is structured into the following primary items:
- Hub
- a central object to maintain state and allow accessing all Activities
- creates Method Builders which in turn allow access to individual Call Builders
- Resources
- primary types that you can apply Activities to
- a collection of properties and Parts
- Parts
- a collection of properties
- never directly used in Activities
- Activities
- operations to apply to Resources
All structures are marked with applicable traits to further categorize them and ease browsing.
Generally speaking, you can invoke Activities like this:
let r = hub.resource().activity(...).doit()
Or specifically ...
let r = hub.accounts().locations_batch_get(...).doit() let r = hub.accounts().locations_reviews_delete_reply(...).doit() let r = hub.accounts().locations_patch(...).doit() let r = hub.accounts().locations_questions_patch(...).doit() let r = hub.accounts().locations_verifications_complete(...).doit() let r = hub.accounts().locations_get_google_updated(...).doit() let r = hub.accounts().locations_followers_get_metadata(...).doit() let r = hub.accounts().generate_account_number(...).doit() let r = hub.accounts().create(...).doit() let r = hub.accounts().locations_questions_create(...).doit() let r = hub.accounts().locations_media_create(...).doit() let r = hub.accounts().locations_local_posts_get(...).doit() let r = hub.accounts().locations_reviews_update_reply(...).doit() let r = hub.accounts().locations_list(...).doit() let r = hub.accounts().invitations_decline(...).doit() let r = hub.accounts().locations_questions_list(...).doit() let r = hub.accounts().locations_create(...).doit() let r = hub.accounts().locations_media_get(...).doit() let r = hub.accounts().locations_local_posts_report_insights(...).doit() let r = hub.accounts().locations_questions_delete(...).doit() let r = hub.accounts().admins_list(...).doit() let r = hub.accounts().locations_questions_answers_delete(...).doit() let r = hub.accounts().locations_media_customers_get(...).doit() let r = hub.accounts().list(...).doit() let r = hub.accounts().locations_local_posts_patch(...).doit() let r = hub.accounts().list_recommend_google_locations(...).doit() let r = hub.accounts().locations_reviews_get(...).doit() let r = hub.accounts().locations_local_posts_create(...).doit() let r = hub.accounts().locations_questions_answers_upsert(...).doit() let r = hub.accounts().admins_patch(...).doit() let r = hub.accounts().locations_find_matches(...).doit() let r = hub.accounts().locations_verifications_list(...).doit() let r = hub.accounts().locations_associate(...).doit() let r = hub.accounts().locations_admins_delete(...).doit() let r = hub.accounts().locations_delete(...).doit() let r = hub.accounts().delete_notifications(...).doit() let r = hub.accounts().locations_media_customers_list(...).doit() let r = hub.accounts().get(...).doit() let r = hub.accounts().locations_media_delete(...).doit() let r = hub.accounts().locations_clear_association(...).doit() let r = hub.accounts().locations_verify(...).doit() let r = hub.accounts().admins_delete(...).doit() let r = hub.accounts().locations_local_posts_list(...).doit() let r = hub.accounts().invitations_accept(...).doit() let r = hub.accounts().locations_admins_list(...).doit() let r = hub.accounts().locations_batch_get_reviews(...).doit() let r = hub.accounts().admins_create(...).doit() let r = hub.accounts().locations_admins_create(...).doit() let r = hub.accounts().locations_media_start_upload(...).doit() let r = hub.accounts().locations_report_insights(...).doit() let r = hub.accounts().locations_transfer(...).doit() let r = hub.accounts().locations_reviews_list(...).doit() let r = hub.accounts().locations_get(...).doit() let r = hub.accounts().locations_questions_answers_list(...).doit() let r = hub.accounts().locations_media_patch(...).doit() let r = hub.accounts().locations_local_posts_delete(...).doit() let r = hub.accounts().update(...).doit() let r = hub.accounts().invitations_list(...).doit() let r = hub.accounts().locations_admins_patch(...).doit() let r = hub.accounts().get_notifications(...).doit() let r = hub.accounts().locations_media_list(...).doit() let r = hub.accounts().update_notifications(...).doit() let r = hub.accounts().locations_fetch_verification_options(...).doit()
The resource()
and activity(...)
calls create builders. The second one dealing with Activities
supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
specified right away (i.e. (...)
), whereas all optional ones can be build up as desired.
The doit()
method performs the actual communication with the server and returns the respective result.
Usage
Setting up your Project
To use this library, you would put the following lines into your Cargo.toml
file:
[dependencies]
google-mybusiness4 = "*"
# This project intentionally uses an old version of Hyper. See
# https://github.com/Byron/google-apis-rs/issues/173 for more
# information.
hyper = "^0.10"
hyper-rustls = "^0.6"
serde = "^1.0"
serde_json = "^1.0"
yup-oauth2 = "^1.0"
A complete example
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_mybusiness4 as mybusiness4; use mybusiness4::{Result, Error}; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use mybusiness4::MyBusiness; // Get an ApplicationSecret instance by some means. It contains the `client_id` and // `client_secret`, among other things. let secret: ApplicationSecret = Default::default(); // Instantiate the authenticator. It will choose a suitable authentication flow for you, // unless you replace `None` with the desired Flow. // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and // retrieve them from storage. let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = MyBusiness::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // You can configure optional parameters by calling the respective setters at will, and // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! let result = hub.accounts().locations_list("parent") .page_token("accusam") .page_size(-8) .order_by("justo") .language_code("amet.") .filter("erat") .doit(); match result { Err(e) => match e { // The Error enum provides details about what exactly happened. // You can also just use its `Debug`, `Display` or `Error` traits Error::HttpError(_) |Error::MissingAPIKey |Error::MissingToken(_) |Error::Cancelled |Error::UploadSizeLimitExceeded(_, _) |Error::Failure(_) |Error::BadRequest(_) |Error::FieldClash(_) |Error::JsonDecodeError(_, _) => println!("{}", e), }, Ok(res) => println!("Success: {:?}", res), }
Handling Errors
All errors produced by the system are provided either as Result enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the Hub Delegate, or the Authenticator Delegate.
When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors.
Uploads and Downloads
If a method supports downloads, the response body, which is part of the Result, should be
read by you to obtain the media.
If such a method also supports a Response Result, it will return that by default.
You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
this call: .param("alt", "media")
.
Methods supporting uploads can do so using up to 2 different protocols:
simple and resumable. The distinctiveness of each is represented by customized
doit(...)
methods, which are then named upload(...)
and upload_resumable(...)
respectively.
Customization and Callbacks
You may alter the way an doit()
method is called by providing a delegate to the
Method Builder before making the final doit()
call.
Respective methods will be called to provide progress information, as well as determine whether the system should
retry on failure.
The delegate trait is default-implemented, allowing you to customize it with minimal effort.
Optional Parts in Server-Requests
All structures provided by this library are made to be enocodable and decodable via json. Optionals are used to indicate that partial requests are responses are valid. Most optionals are are considered Parts which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response.
Builder Arguments
Using method builders, you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true.
- PODs are handed by copy
- strings are passed as
&str
- request values are moved
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
Structs
AcceptInvitationRequest | Request message for AccessControl.AcceptInvitation. |
Account | An account is a container for your business's locations. If you are the only user who manages locations for your business, you can use your personal Google Account. To share management of locations with multiple users, [create a business account] (https://support.google.com/business/answer/6085339?ref_topic=6085325). |
AccountAdminCreateCall | Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation. |
AccountAdminDeleteCall | Removes the specified admin from the specified account. |
AccountAdminListCall | Lists the admins for the specified account. |
AccountAdminPatchCall | Updates the Admin for the specified Account Admin. Only the AdminRole of the Admin can be updated. |
AccountCreateCall | Creates an account with the specified name and type under the given parent. |
AccountDeleteNotificationCall | Clears the pubsub notification settings for the account. |
AccountGenerateAccountNumberCall | Generates an account number for this account. The account number is not provisioned when an account is created. Use this request to create an account number when it is required. |
AccountGetCall | Gets the specified account. Returns |
AccountGetNotificationCall | Returns the pubsub notification settings for the account. |
AccountInvitationAcceptCall | Accepts the specified invitation. |
AccountInvitationDeclineCall | Declines the specified invitation. |
AccountInvitationListCall | Lists pending invitations for the specified account. |
AccountListCall | Lists all of the accounts for the authenticated user. This includes all accounts that the user owns, as well as any accounts for which the user has management rights. |
AccountListRecommendGoogleLocationCall | List all the GoogleLocations that have been recommended to the specified GMB account. Recommendations are provided for personal accounts and location groups only, requests for all other account types will result in an error. The recommendations for location groups are based on the locations in that group. |
AccountLocationAdminCreateCall | Invites the specified user to become an administrator for the specified location. The invitee must accept the invitation in order to be granted access to the location. See AcceptInvitation to programmatically accept an invitation. |
AccountLocationAdminDeleteCall | Removes the specified admin as a manager of the specified location. |
AccountLocationAdminListCall | Lists all of the admins for the specified location. |
AccountLocationAdminPatchCall | Updates the Admin for the specified Location Admin. Only the AdminRole of the Admin can be updated. |
AccountLocationAssociateCall | Associates a location to a place ID. Any previous association is
overwritten. This operation is only valid if the location is unverified.
The association must be valid, that is, it appears in the list of
|
AccountLocationBatchGetCall | Gets all of the specified locations in the given account. |
AccountLocationBatchGetReviewCall | Returns the paginated list of reviews for all specified locations. This operation is only valid if the specified locations are verified. |
AccountLocationClearAssociationCall | Clears an association between a location and its place ID. This operation is only valid if the location is unverified. |
AccountLocationCreateCall | Creates a new location owned by the specified account, and returns it. |
AccountLocationDeleteCall | Deletes a location. |
AccountLocationFetchVerificationOptionCall | Reports all eligible verification options for a location in a specific language. |
AccountLocationFindMatcheCall | Finds all of the possible locations that are a match to the specified location. This operation is only valid if the location is unverified. |
AccountLocationFollowerGetMetadataCall | Get the followers settings for a location. |
AccountLocationGetCall | Gets the specified location. Returns |
AccountLocationGetGoogleUpdatedCall | Gets the Google-updated version of the specified location.
Returns |
AccountLocationListCall | Lists the locations for the specified account. |
AccountLocationLocalPostCreateCall | Creates a new local post associated with the specified location, and returns it. |
AccountLocationLocalPostDeleteCall | Deletes a local post.
Returns |
AccountLocationLocalPostGetCall | Gets the specified local post.
Returns |
AccountLocationLocalPostListCall | Returns a list of local posts associated with a location. |
AccountLocationLocalPostPatchCall | Updates the specified local post and returns the updated local post. |
AccountLocationLocalPostReportInsightCall | Returns insights for a set of local posts associated with a single listing. Which metrics and how they are reported are options specified in the request proto. |
AccountLocationMediaCreateCall | Creates a new media item for the location. |
AccountLocationMediaCustomerGetCall | Returns metadata for the requested customer media item. |
AccountLocationMediaCustomerListCall | Returns a list of media items associated with a location that have been contributed by customers. |
AccountLocationMediaDeleteCall | Deletes the specified media item. |
AccountLocationMediaGetCall | Returns metadata for the requested media item. |
AccountLocationMediaListCall | Returns a list of media items associated with a location. |
AccountLocationMediaPatchCall | Updates metadata of the specified media item. This can only be used to update the Category of a media item, with the exception that the new category cannot be COVER or PROFILE. |
AccountLocationMediaStartUploadCall | Generates a |
AccountLocationPatchCall | Updates the specified location. |
AccountLocationQuestionAnswerDeleteCall | Deletes the answer written by the current user to a question. |
AccountLocationQuestionAnswerListCall | Returns the paginated list of answers for a specified question. |
AccountLocationQuestionAnswerUpsertCall | Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question. |
AccountLocationQuestionCreateCall | Adds a question for the specified location. |
AccountLocationQuestionDeleteCall | Deletes a specific question written by the current user. |
AccountLocationQuestionListCall | Returns the paginated list of questions and some of its answers for a specified location. |
AccountLocationQuestionPatchCall | Updates a specific question written by the current user. |
AccountLocationReportInsightCall | Returns a report containing insights on one or more metrics by location. |
AccountLocationReviewDeleteReplyCall | Deletes the response to the specified review. This operation is only valid if the specified location is verified. |
AccountLocationReviewGetCall | Returns the specified review.
This operation is only valid if the specified location is verified.
Returns |
AccountLocationReviewListCall | Returns the paginated list of reviews for the specified location. This operation is only valid if the specified location is verified. |
AccountLocationReviewUpdateReplyCall | Updates the reply to the specified review. A reply is created if one does not exist. This operation is only valid if the specified location is verified. |
AccountLocationTransferCall | Moves a location from an account that the user owns to another account that the same user administers. The user must be an owner of the account the location is currently associated with and must also be at least a manager of the destination account. Returns the Location with its new resource name. |
AccountLocationVerificationCompleteCall | Completes a |
AccountLocationVerificationListCall | List verifications of a location, ordered by create time. |
AccountLocationVerifyCall | Starts the verification process for a location. |
AccountMethods | A builder providing access to all methods supported on account resources.
It is not used directly, but through the |
AccountState | Indicates status of the account, such as whether the account has been verified by Google. |
AccountUpdateCall | Updates the specified business account. Personal accounts cannot be updated using this method. |
AccountUpdateNotificationCall | Sets the pubsub notification settings for the account informing My Business which topic to send pubsub notifications for: |
AdWordsLocationExtensions | Additional information that is surfaced in AdWords. |
AddressInput | Input for ADDRESS verification. |
AddressVerificationData | Display data for verifications through postcard. |
Admin | An administrator of an Account or a Location. |
Answer | Represents an answer to a question |
AssociateLocationRequest | Request message for Locations.AssociateLocationRequest. |
Attribute | A location attribute. Attributes provide additional information about a location. The attributes that can be set on a location may vary based on the properties of that location (for example, category). Available attributes are determined by Google and may be added and removed without API changes. |
AttributeListCall | Returns the list of available attributes that would be available for a location with the given primary category and country. |
AttributeMetadata | Metadata for an attribute. Contains display information for the attribute, including a localized name and a heading for grouping related attributes together. |
AttributeMethods | A builder providing access to all methods supported on attribute resources.
It is not used directly, but through the |
AttributeValueMetadata | Metadata for supported attribute values. |
Attribution | Attribution information for customer media items, such as the contributor's name and profile picture. |
Author | Represents the author of a question or answer |
BasicMetricsRequest | A request for basic metric insights. |
BatchGetLocationsRequest | Request message for Locations.BatchGetLocations. |
BatchGetLocationsResponse | Response message for Locations.BatchGetLocations. |
BatchGetReviewsRequest | Request message for Reviews.BatchGetReviews. |
BatchGetReviewsResponse | Response message for Reviews.BatchGetReviews. |
BusinessHours | Represents the time periods that this location is open for business. Holds a collection of TimePeriod instances. |
CallToAction | An action that is performed when the user clicks through the post |
Category | A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see categories.list. |
CategoryListCall | Returns a list of business categories. Search will match the category name but not the category ID. |
CategoryMethods | A builder providing access to all methods supported on category resources.
It is not used directly, but through the |
Chain | A chain is a brand that your business's locations can be affiliated with. |
ChainGetCall | Gets the specified chain. Returns |
ChainMethods | A builder providing access to all methods supported on chain resources.
It is not used directly, but through the |
ChainName | Name to be used when displaying the chain. |
ChainSearchCall | Searches the chain based on chain name. |
ChainUrl | Url to be used when displaying the chain. |
Chunk | |
ClearLocationAssociationRequest | Request message for Locations.ClearLocationAssociationRequest. |
CompleteVerificationRequest | Request message for Verifications.CompleteVerificationAction. |
CompleteVerificationResponse | Response message for Verifications.CompleteVerificationAction. |
ContentRange | Implements the Content-Range header, for serialization only |
Date | Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: |
DeclineInvitationRequest | Request message for AccessControl.DeclineInvitation. |
DefaultDelegate | A delegate with a conservative default implementation, which is used if no other delegate is set. |
DimensionalMetricValue | A value for a single metric with a given time dimension. |
Dimensions | Dimensions of the media item. |
DrivingDirectionMetricsRequest | A request for driving direction insights. |
DummyNetworkStream | |
Duplicate | Information about the location that this location duplicates. |
EmailInput | Input for EMAIL verification. |
EmailVerificationData | Display data for verifications through email. |
Empty | A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: |
ErrorResponse | A utility to represent detailed errors we might see in case there are BadRequests. The latter happen if the sent parameters or request structures are unsound |
FetchVerificationOptionsRequest | Request message for Verifications.FetchVerificationOptions. |
FetchVerificationOptionsResponse | Response message for Verifications.FetchVerificationOptions. |
FindMatchingLocationsRequest | Request message for Locations.FindMatchingLocations. |
FindMatchingLocationsResponse | Response message for Locations.FindMatchingLocations. |
FollowersMetadata | Follower metadata for a location. |
GenerateAccountNumberRequest | Request message for Accounts.GenerateAccountNumber. |
GenerateVerificationTokenRequest | Request message for Verifications.GenerateVerificationToken. |
GenerateVerificationTokenResponse | Response message for Verifications.GenerateVerificationToken. |
GoogleLocation | Represents a Location that is present on Google. This can be a location that has been claimed by the user, someone else, or could be unclaimed. |
GoogleLocationMethods | A builder providing access to all methods supported on googleLocation resources.
It is not used directly, but through the |
GoogleLocationReportCall | Report a GoogleLocation. |
GoogleLocationSearchCall | Search all of the possible locations that are a match to the specified request. |
GoogleUpdatedLocation | Represents a location that was modified by Google. |
Invitation | Output only. Represents a pending invitation. |
Item | A single list item. Each variation of an item in the price list should have its own Item with its own price data. |
JsonServerError | A utility type which can decode a server response that indicates error |
Label | Label to be used when displaying the price list, section, or item. |
LatLng | An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. |
ListAccountAdminsResponse | Response message for AccessControl.ListAccountAdmins. |
ListAccountsResponse | Response message for Accounts.ListAccounts. |
ListAnswersResponse | Response message for QuestionsAndAnswers.ListAnswers |
ListAttributeMetadataResponse | Response message for Locations.ListAttributeMetadata. |
ListBusinessCategoriesResponse | There is no detailed description. |
ListCustomerMediaItemsResponse | Response message for Media.ListCustomerMediaItems. |
ListInvitationsResponse | Response message for AccessControl.ListInvitations. |
ListLocalPostsResponse | Response message for ListLocalPosts |
ListLocationAdminsResponse | Response message for AccessControl.ListLocationAdmins. |
ListLocationsResponse | Response message for Locations.ListLocations. |
ListMediaItemsResponse | Response message for Media.ListMediaItems. |
ListQuestionsResponse | Response message for QuestionsAndAnswers.ListQuestions |
ListRecommendedGoogleLocationsResponse | Response message for GoogleLocations.ListRecommendedGoogleLocations. |
ListReviewsResponse | Response message for Reviews.ListReviews. |
ListVerificationsResponse | Response message for Verifications.ListVerifications. |
LocalPost | Represents a local post for a location. |
LocalPostEvent | All the information pertaining to an event featured in a local post. |
LocalPostMetrics | All the metrics requested for a Local Post. |
LocalPostOffer | Specific fields for offer posts. |
LocalPostProduct | Specific fields for product posts. |
Location | A location. See the [help center article] (https://support.google.com/business/answer/3038177) for a detailed description of these fields, or the category endpoint for a list of valid business categories. |
LocationAssociation | How the media item is associated with its location. |
LocationDrivingDirectionMetrics | A location indexed with the regions that people usually come from. This is captured by counting how many driving-direction requests to this location are from each region. |
LocationKey | Alternate/surrogate key references for a location. |
LocationMetrics | A series of Metrics and BreakdownMetrics associated with a Location over some time range. |
LocationReview | Represents a review with location information. |
LocationState | Contains a set of booleans that reflect the state of a Location. |
MatchedLocation | Represents a possible match to a location. |
MediaInsights | Insights and statistics for the media item. |
MediaItem | A single media item. |
MediaItemDataRef | Reference to the photo binary data of a |
Metadata | Additional non-user-editable information about the location. |
MethodInfo | Contains information about an API request. |
MetricRequest | A request to return values for one metric and the options for how those values should be returned. |
MetricValue | A value for a single Metric from a starting time. |
Money | Represents an amount of money with its currency type. |
MultiPartReader | Provides a |
MyBusiness | Central instance to access all MyBusiness related resource activities |
Notifications | A Google Cloud Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification settings resource per-account. |
OpenInfo | Information related to the opening state of the business. |
OrganizationInfo | Additional Info stored for an organization. |
PhoneInput | Input for PHONE_CALL/SMS verification. |
PhoneVerificationData | Display Data for verifications through phone, e.g. phone call, sms. |
PlaceInfo | Defines an area that's represented by a place ID. |
Places | Defines the union of areas represented by a set of places. |
PointRadius | A radius around a particular point (latitude/longitude). |
PostalAddress | Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). |
PriceList | A list of item price information. Price lists are structured as one or more price lists, each containing one or more sections with one or more items. For example, food price lists may represent breakfast/lunch/dinner menus, with sections for burgers/steak/seafood. |
Profile | All information pertaining to the location's profile. |
Question | Represents a single question and some of its answers. |
RangeResponseHeader | |
RegionCount | A region with its associated request count. |
RelationshipData | Information of all parent and children locations related to this one. |
RepeatedEnumAttributeValue | Values for an attribute with a |
ReportGoogleLocationRequest | Request message for reporting a GoogleLocation. |
ReportLocalPostInsightsRequest | Request message for Insights.ReportLocalPostInsights |
ReportLocalPostInsightsResponse | Response message for Insights.ReportLocalPostInsights |
ReportLocationInsightsRequest | Request message for Insights.ReportLocationInsights. |
ReportLocationInsightsResponse | Response message for |
ResumableUploadHelper | A utility type to perform a resumable upload from start to end. |
Review | Output only. Represents a review for a location. |
ReviewReply | Represents the location owner/manager's reply to a review. |
Reviewer | Represents the author of the review. |
SearchChainsResponse | Response message for Locations.SearchChains. |
SearchGoogleLocationsRequest | Request message for GoogleLocations.SearchGoogleLocations. |
SearchGoogleLocationsResponse | Response message for GoogleLocations.SearchGoogleLocations. |
Section | A section of the price list containing one or more items. |
ServerError | |
ServerMessage | |
ServiceAreaBusiness | Service area businesses provide their service at the customer's location (for example, a locksmith or plumber). |
ServiceBusinessContext | Additional data for service business verification. |
SpecialHourPeriod | Represents a single time period when a location's operational hours differ
from its normal business hours.
A special hour period must represent a range of less than 24 hours.
The |
SpecialHours | Represents a set of time periods when a location's operational hours differ from its normal business hours. |
StartUploadMediaItemDataRequest | Request message for Media.StartUploadMediaItemData. |
TargetLocation | Represents a target location for a pending invitation. |
TimeDimension | The dimension for which data is divided over. |
TimeInterval | An interval of time, inclusive. It must contain all fields to be valid. |
TimeOfDay | Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and |
TimePeriod | Represents a span of time that the business is open, starting on the specified open day/time and closing on the specified close day/time. The closing time must occur after the opening time, for example later in the same day, or on a subsequent day. |
TimeRange | A range of time. Data will be pulled over the range as a half-open inverval (that is, [start_time, end_time)). |
TopDirectionSources | Top regions where driving-direction requests originated from. |
TransferLocationRequest | Request message for Locations.TransferLocation. |
UpsertAnswerRequest | Request message for QuestionsAndAnswers.UpsertAnswer |
UrlAttributeValue | Values for an attribute with a |
Verification | A verification represents a verification attempt on a location. |
VerificationOption | The verification option represents how to verify the location (indicated by verification method) and where the verification will be sent to (indicated by display data). |
VerificationToken | Token generated by a vetted partner. |
VerificationTokenGenerateCall | Generates a token for the provided location data as a vetted partner. |
VerificationTokenMethods | A builder providing access to all methods supported on verificationToken resources.
It is not used directly, but through the |
VerifyLocationRequest | Request message for Verifications.VerifyLocation. |
VerifyLocationResponse | Response message for Verifications.VerifyLocation. |
VettedPartnerInput | Input for VETTED_PARTNER verification. |
XUploadContentType | The |
Enums
Error |
Traits
CallBuilder | Identifies types which represent builders for a particular resource method |
Delegate | A trait specifying functionality to help controlling any request performed by the API. The trait has a conservative default implementation. |
Hub | Identifies the Hub. There is only one per library, this trait is supposed to make intended use more explicit. The hub allows to access all resource methods more easily. |
MethodsBuilder | Identifies types for building methods of a particular resource type |
NestedType | Identifies types which are only used by other types internally. They have no special meaning, this trait just marks them for completeness. |
Part | Identifies types which are only used as part of other types, which
usually are carrying the |
ReadSeek | A utility to specify reader types which provide seeking capabilities too |
RequestValue | Identifies types which are used in API requests. |
Resource | Identifies types which can be inserted and deleted. Types with this trait are most commonly used by clients of this API. |
ResponseResult | Identifies types which are used in API responses. |
ToParts | A trait for all types that can convert themselves into a parts string |
UnusedType | Identifies types which are not actually used by the API This might be a bug within the google API schema. |
Functions
remove_json_null_values |
Type Definitions
Result | A universal result type used as return for all calls. |