From 6036d23e79e21c0456a648c18638851ebd19c325 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 10 Nov 2026 16:42:47 -0800 Subject: [PATCH] chore: regenerate mybusinessbusinessinformation client --- .../v1alpha/2.0.0/README.md | 44 + .../MyBusinessBusinessInformation.java | 3388 +++++++++++++++++ .../MyBusinessBusinessInformationRequest.java | 267 ++ ...BusinessInformationRequestInitializer.java | 119 + .../model/AdWordsLocationExtensions.java | 70 + .../v1alpha/model/Attribute.java | 181 + .../v1alpha/model/AttributeMetadata.java | 236 ++ .../v1alpha/model/AttributeValueMetadata.java | 97 + .../v1alpha/model/Attributes.java | 100 + .../model/BatchGetCategoriesResponse.java | 70 + .../v1alpha/model/BusinessHours.java | 71 + .../v1alpha/model/Categories.java | 105 + .../v1alpha/model/Category.java | 146 + .../v1alpha/model/Chain.java | 139 + .../v1alpha/model/ChainName.java | 91 + .../v1alpha/model/ChainUri.java | 67 + .../v1alpha/model/Date.java | 124 + .../v1alpha/model/Empty.java | 45 + .../v1alpha/model/ExtendedAttribute.java | 115 + .../v1alpha/model/ExtendedAttributes.java | 100 + .../v1alpha/model/ExtendedFieldData.java | 145 + .../v1alpha/model/ExtendedLocation.java | 130 + .../v1alpha/model/FreeFormServiceItem.java | 105 + .../v1alpha/model/GoogleLocation.java | 122 + .../v1alpha/model/GoogleUpdatedLocation.java | 128 + .../v1alpha/model/Label.java | 118 + .../v1alpha/model/LatLng.java | 93 + .../model/ListAttributeMetadataResponse.java | 103 + .../v1alpha/model/ListCategoriesResponse.java | 100 + .../v1alpha/model/ListLocationsResponse.java | 124 + .../v1alpha/model/Location.java | 597 +++ .../v1alpha/model/Metadata.java | 433 +++ .../v1alpha/model/Money.java | 127 + .../v1alpha/model/MoreHours.java | 97 + .../v1alpha/model/MoreHoursType.java | 115 + .../v1alpha/model/OpenInfo.java | 124 + .../v1alpha/model/PhoneNumbers.java | 103 + .../v1alpha/model/PlaceInfo.java | 94 + .../v1alpha/model/Places.java | 73 + .../v1alpha/model/PostalAddress.java | 422 ++ .../v1alpha/model/Profile.java | 67 + .../v1alpha/model/RelationshipData.java | 115 + .../v1alpha/model/RelevantLocation.java | 93 + .../model/RepeatedEnumAttributeValue.java | 93 + .../v1alpha/model/SearchChainsResponse.java | 76 + .../model/SearchGoogleLocationsRequest.java | 124 + .../model/SearchGoogleLocationsResponse.java | 76 + .../v1alpha/model/ServiceAreaBusiness.java | 143 + .../v1alpha/model/ServiceItem.java | 122 + .../v1alpha/model/ServiceType.java | 91 + .../v1alpha/model/SpecialHourPeriod.java | 187 + .../v1alpha/model/SpecialHours.java | 74 + .../v1alpha/model/StructuredServiceItem.java | 94 + .../v1alpha/model/TimeOfDay.java | 153 + .../v1alpha/model/TimePeriod.java | 153 + .../v1alpha/model/UriAttributeValue.java | 67 + .../v1alpha/2.0.0/pom.xml | 219 ++ .../v1alpha/README.md | 44 + 58 files changed, 10919 insertions(+) create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/README.md create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformation.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequest.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequestInitializer.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AdWordsLocationExtensions.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attribute.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeMetadata.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeValueMetadata.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attributes.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BatchGetCategoriesResponse.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BusinessHours.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Categories.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Category.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Chain.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainName.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainUri.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Date.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Empty.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttribute.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttributes.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedFieldData.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedLocation.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/FreeFormServiceItem.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleLocation.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleUpdatedLocation.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Label.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/LatLng.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListAttributeMetadataResponse.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListCategoriesResponse.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListLocationsResponse.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Location.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Metadata.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Money.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHours.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHoursType.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/OpenInfo.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PhoneNumbers.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PlaceInfo.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Places.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PostalAddress.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Profile.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelationshipData.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelevantLocation.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RepeatedEnumAttributeValue.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchChainsResponse.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsRequest.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsResponse.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceAreaBusiness.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceItem.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceType.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHourPeriod.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHours.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/StructuredServiceItem.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimeOfDay.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimePeriod.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/UriAttributeValue.java create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/pom.xml create mode 100644 clients/google-api-services-mybusinessbusinessinformation/v1alpha/README.md diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/README.md b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/README.md new file mode 100644 index 00000000000..dab67a311a2 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/README.md @@ -0,0 +1,44 @@ +# My Business Business Information API Client Library for Java + +The My Business Business Information API provides an interface for managing business information on Google. Note: If you have a quota of 0 after enabling the API, please request GBP API access at https://developers.google.com/my-business/content/prereqs#request-access. + +This page contains information about getting started with the My Business Business Information API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the My Business Business Information API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the My Business Business Information API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-mybusinessbusinessinformation + v1alpha-rev20261108-2.9.2 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-mybusinessbusinessinformation:v1alpha-rev20261108-2.9.2' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-mybusinessbusinessinformation/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/mybusinessbusinessinformation/v1/ diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformation.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformation.java new file mode 100644 index 00000000000..8db6393bdb8 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformation.java @@ -0,0 +1,3388 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha; + +/** + * Service definition for MyBusinessBusinessInformation (v1alpha). + * + *

+ * The My Business Business Information API provides an interface for managing business information on Google. Note: If you have a quota of 0 after enabling the API, please request GBP API access at https://developers.google.com/my-business/content/prereqs#request-access. + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link MyBusinessBusinessInformationRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class MyBusinessBusinessInformation extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.9.2 of the My Business Business Information API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://mybusinessbusinessinformation.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://mybusinessbusinessinformation.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

+ * Use {@link Builder} if you need to specify any of the optional parameters. + *

+ * + * @param transport HTTP transport, which should normally be: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public MyBusinessBusinessInformation(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + MyBusinessBusinessInformation(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Accounts collection. + * + *

The typical use is:

+ *
+   *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+   *   {@code MyBusinessBusinessInformation.Accounts.List request = mybusinessbusinessinformation.accounts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Accounts accounts() { + return new Accounts(); + } + + /** + * The "accounts" collection of methods. + */ + public class Accounts { + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+     *   {@code MyBusinessBusinessInformation.Locations.List request = mybusinessbusinessinformation.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Creates a new Location that will be owned by the logged in user. + * + * Create a request for the method "locations.create". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation. + * + * @param parent Required. The name of the account in which to create this location. + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/locations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^accounts/[^/]+$"); + + /** + * Creates a new Location that will be owned by the logged in user. + * + * Create a request for the method "locations.create". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Create#execute()} method to invoke the + * remote operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The name of the account in which to create this location. + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location content) { + super(MyBusinessBusinessInformation.this, "POST", REST_PATH, content, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^accounts/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the account in which to create this location. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the account in which to create this location. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The name of the account in which to create this location. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^accounts/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. A unique request ID for the server to detect duplicated requests. We recommend + * using UUIDs. Max length is 50 characters. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A unique request ID for the server to detect duplicated requests. We recommend using + UUIDs. Max length is 50 characters. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A unique request ID for the server to detect duplicated requests. We recommend + * using UUIDs. Max length is 50 characters. + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Optional. If true, the request is validated without actually creating the location. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If true, the request is validated without actually creating the location. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** Optional. If true, the request is validated without actually creating the location. */ + public Create setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Lists the locations for the specified account. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation. + * + * @param parent Required. The name of the account to fetch locations from. * **Specific Account ID**: If the account + * is of type `AccountType.PERSONAL`, the response returns only locations directly owned by + * that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), it returns all + * accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies the + * authenticated user. This scope defaults to `AccountType.PERSONAL` but includes both + * directly and indirectly owned locations (e.g., those accessible via member groups). + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/locations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^accounts/[^/]+$"); + + /** + * Lists the locations for the specified account. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link List#execute()} method to invoke the + * remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The name of the account to fetch locations from. * **Specific Account ID**: If the account + * is of type `AccountType.PERSONAL`, the response returns only locations directly owned by + * that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), it returns all + * accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies the + * authenticated user. This scope defaults to `AccountType.PERSONAL` but includes both + * directly and indirectly owned locations (e.g., those accessible via member groups). + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.ListLocationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^accounts/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the account to fetch locations from. * **Specific Account ID**: If + * the account is of type `AccountType.PERSONAL`, the response returns only locations + * directly owned by that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), + * it returns all accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies + * the authenticated user. This scope defaults to `AccountType.PERSONAL` but includes both + * directly and indirectly owned locations (e.g., those accessible via member groups). + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the account to fetch locations from. * **Specific Account ID**: If the + account is of type `AccountType.PERSONAL`, the response returns only locations directly owned by + that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), it returns all accessible + locations. * **Wildcard (`-`)**: Using `accounts/-` identifies the authenticated user. This scope + defaults to `AccountType.PERSONAL` but includes both directly and indirectly owned locations (e.g., + those accessible via member groups). + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the account to fetch locations from. * **Specific Account ID**: If + * the account is of type `AccountType.PERSONAL`, the response returns only locations + * directly owned by that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), + * it returns all accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies + * the authenticated user. This scope defaults to `AccountType.PERSONAL` but includes both + * directly and indirectly owned locations (e.g., those accessible via member groups). + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^accounts/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. A filter constraining the locations to return. The response includes only + * entries that match the filter. If `filter` is empty, then constraints are applied and all + * locations (paginated) are retrieved for the requested account. For more information about + * valid fields and example usage, see [Work with Location Data + * Guide](https://developers.google.com/my-business/content/location- + * data#filter_results_when_you_list_locations). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter constraining the locations to return. The response includes only entries that + match the filter. If `filter` is empty, then constraints are applied and all locations (paginated) + are retrieved for the requested account. For more information about valid fields and example usage, + see [Work with Location Data Guide](https://developers.google.com/my-business/content/location- + data#filter_results_when_you_list_locations). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter constraining the locations to return. The response includes only + * entries that match the filter. If `filter` is empty, then constraints are applied and all + * locations (paginated) are retrieved for the requested account. For more information about + * valid fields and example usage, see [Work with Location Data + * Guide](https://developers.google.com/my-business/content/location- + * data#filter_results_when_you_list_locations). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Sorting order for the request. Multiple fields should be comma-separated, + * following SQL syntax. The default sorting order is ascending. To specify descending + * order, a suffix " desc" should be added. Valid fields to order_by are title and + * store_code. For example: "title, store_code desc" or "title" or "store_code desc" + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Sorting order for the request. Multiple fields should be comma-separated, following SQL + syntax. The default sorting order is ascending. To specify descending order, a suffix " desc" + should be added. Valid fields to order_by are title and store_code. For example: "title, store_code + desc" or "title" or "store_code desc" + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Sorting order for the request. Multiple fields should be comma-separated, + * following SQL syntax. The default sorting order is ascending. To specify descending + * order, a suffix " desc" should be added. Valid fields to order_by are title and + * store_code. For example: "title, store_code desc" or "title" or "store_code desc" + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. How many locations to fetch per page. Default value is 10 if not set. Minimum + * is 1, and maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. How many locations to fetch per page. Default value is 10 if not set. Minimum is 1, and + maximum page size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. How many locations to fetch per page. Default value is 10 if not set. Minimum + * is 1, and maximum page size is 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. If specified, it fetches the next `page` of locations. The page token is + * returned by previous calls to `ListLocations` when there were more locations than could + * fit in the requested page size. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. If specified, it fetches the next `page` of locations. The page token is returned by + previous calls to `ListLocations` when there were more locations than could fit in the requested + page size. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. If specified, it fetches the next `page` of locations. The page token is + * returned by previous calls to `ListLocations` when there were more locations than could + * fit in the requested page size. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Required. Read mask to specify what fields will be returned in the response. */ + @com.google.api.client.util.Key + private String readMask; + + /** Required. Read mask to specify what fields will be returned in the response. + */ + public String getReadMask() { + return readMask; + } + + /** Required. Read mask to specify what fields will be returned in the response. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Attributes collection. + * + *

The typical use is:

+ *
+   *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+   *   {@code MyBusinessBusinessInformation.Attributes.List request = mybusinessbusinessinformation.attributes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Attributes attributes() { + return new Attributes(); + } + + /** + * The "attributes" collection of methods. + */ + public class Attributes { + + /** + * Returns the list of attributes that would be available for a location with the given primary + * category and country. + * + * Create a request for the method "attributes.list". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/attributes"; + + /** + * Returns the list of attributes that would be available for a location with the given primary + * category and country. + * + * Create a request for the method "attributes.list". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link List#execute()} method to invoke the + * remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected List() { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.ListAttributeMetadataResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The primary category stable ID to find available attributes. Must be of the + * format `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if + * `parent` is not set and `show_all` is false. + */ + @com.google.api.client.util.Key + private java.lang.String categoryName; + + /** Optional. The primary category stable ID to find available attributes. Must be of the format + `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if `parent` is not set + and `show_all` is false. + */ + public java.lang.String getCategoryName() { + return categoryName; + } + + /** + * Optional. The primary category stable ID to find available attributes. Must be of the + * format `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if + * `parent` is not set and `show_all` is false. + */ + public List setCategoryName(java.lang.String categoryName) { + this.categoryName = categoryName; + return this; + } + + /** + * Optional. The BCP 47 code of language to get attribute display names in. If this language + * is not available, they will be provided in English. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** Optional. The BCP 47 code of language to get attribute display names in. If this language is not + available, they will be provided in English. + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Optional. The BCP 47 code of language to get attribute display names in. If this language + * is not available, they will be provided in English. + */ + public List setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** How many attributes to include per page. Default is 200, minimum is 1. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** How many attributes to include per page. Default is 200, minimum is 1. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** How many attributes to include per page. Default is 200, minimum is 1. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** If specified, the next page of attribute metadata is retrieved. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** If specified, the next page of attribute metadata is retrieved. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** If specified, the next page of attribute metadata is retrieved. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Resource name of the location to look up available attributes. If this field is + * set, `category_name`, `region_code`, `language_code` and `show_all` are not required and + * must not be set. Format: `locations/{location_id}` (e.g., `locations/1234567890`). + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Optional. Resource name of the location to look up available attributes. If this field is set, + `category_name`, `region_code`, `language_code` and `show_all` are not required and must not be + set. Format: `locations/{location_id}` (e.g., `locations/1234567890`). + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Optional. Resource name of the location to look up available attributes. If this field is + * set, `category_name`, `region_code`, `language_code` and `show_all` are not required and + * must not be set. Format: `locations/{location_id}` (e.g., `locations/1234567890`). + */ + public List setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if + * `parent` is not set. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if `parent` is + not set. + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if + * `parent` is not set. + */ + public List setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Optional. If set to true, metadata for all available attributes are returned, disregarding + * `parent` and `category_name` fields. `language_code` and `region_code` are required when + * `show_all` is set to true. + */ + @com.google.api.client.util.Key + private java.lang.Boolean showAll; + + /** Optional. If set to true, metadata for all available attributes are returned, disregarding `parent` + and `category_name` fields. `language_code` and `region_code` are required when `show_all` is set + to true. + */ + public java.lang.Boolean getShowAll() { + return showAll; + } + + /** + * Optional. If set to true, metadata for all available attributes are returned, disregarding + * `parent` and `category_name` fields. `language_code` and `region_code` are required when + * `show_all` is set to true. + */ + public List setShowAll(java.lang.Boolean showAll) { + this.showAll = showAll; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Categories collection. + * + *

The typical use is:

+ *
+   *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+   *   {@code MyBusinessBusinessInformation.Categories.List request = mybusinessbusinessinformation.categories().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Categories categories() { + return new Categories(); + } + + /** + * The "categories" collection of methods. + */ + public class Categories { + + /** + * Returns a list of business categories for the provided language and GConcept ids. + * + * Create a request for the method "categories.batchGet". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link BatchGet#execute()} method to invoke the remote + * operation. + * + * @return the request + */ + public BatchGet batchGet() throws java.io.IOException { + BatchGet result = new BatchGet(); + initialize(result); + return result; + } + + public class BatchGet extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/categories:batchGet"; + + /** + * Returns a list of business categories for the provided language and GConcept ids. + * + * Create a request for the method "categories.batchGet". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link BatchGet#execute()} method to invoke the + * remote operation.

{@link + * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected BatchGet() { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.BatchGetCategoriesResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); + } + + @Override + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); + } + + @Override + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); + } + + @Override + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); + } + + @Override + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); + } + + @Override + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); + } + + @Override + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); + } + + @Override + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); + } + + @Override + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); + } + + @Override + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The BCP 47 code of language that the category names should be returned in. */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** Required. The BCP 47 code of language that the category names should be returned in. + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** Required. The BCP 47 code of language that the category names should be returned in. */ + public BatchGet setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Required. At least one name must be set. The GConcept ids the localized category names + * should be returned for. To return details for more than one category, repeat this parameter + * in the request. + */ + @com.google.api.client.util.Key + private java.util.List names; + + /** Required. At least one name must be set. The GConcept ids the localized category names should be + returned for. To return details for more than one category, repeat this parameter in the request. + */ + public java.util.List getNames() { + return names; + } + + /** + * Required. At least one name must be set. The GConcept ids the localized category names + * should be returned for. To return details for more than one category, repeat this parameter + * in the request. + */ + public BatchGet setNames(java.util.List names) { + this.names = names; + return this; + } + + /** Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language. */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language. + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language. */ + public BatchGet setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Required. Specifies which parts to the Category resource should be returned in the + * response. + */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Required. Specifies which parts to the Category resource should be returned in the response. + */ + public java.lang.String getView() { + return view; + } + + /** + * Required. Specifies which parts to the Category resource should be returned in the + * response. + */ + public BatchGet setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public BatchGet set(String parameterName, Object value) { + return (BatchGet) super.set(parameterName, value); + } + } + /** + * Returns a list of business categories. Search will match the category name but not the category + * ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' but + * not 'Fast Food Restaurant'). + * + * Create a request for the method "categories.list". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/categories"; + + /** + * Returns a list of business categories. Search will match the category name but not the category + * ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' + * but not 'Fast Food Restaurant'). + * + * Create a request for the method "categories.list". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link List#execute()} method to invoke the + * remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected List() { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.ListCategoriesResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. Filter string from user. The only field that supported is `displayName`. Eg: + * `filter=displayName=foo`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string from user. The only field that supported is `displayName`. Eg: + `filter=displayName=foo`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string from user. The only field that supported is `displayName`. Eg: + * `filter=displayName=foo`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Required. The BCP 47 code of language. */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** Required. The BCP 47 code of language. + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** Required. The BCP 47 code of language. */ + public List setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum + * page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page + size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum + * page size is 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. If specified, the next page of categories will be fetched. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. If specified, the next page of categories will be fetched. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. If specified, the next page of categories will be fetched. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Required. The ISO 3166-1 alpha-2 country code. */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** Required. The ISO 3166-1 alpha-2 country code. + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** Required. The ISO 3166-1 alpha-2 country code. */ + public List setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Required. Specifies which parts to the Category resource should be returned in the + * response. + */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Required. Specifies which parts to the Category resource should be returned in the response. + */ + public java.lang.String getView() { + return view; + } + + /** + * Required. Specifies which parts to the Category resource should be returned in the + * response. + */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Chains collection. + * + *

The typical use is:

+ *
+   *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+   *   {@code MyBusinessBusinessInformation.Chains.List request = mybusinessbusinessinformation.chains().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Chains chains() { + return new Chains(); + } + + /** + * The "chains" collection of methods. + */ + public class Chains { + + /** + * Gets the specified chain. Returns `NOT_FOUND` if the chain does not exist. + * + * Create a request for the method "chains.get". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation. + * + * @param name Required. The chain's resource name, in the format `chains/{chain_place_id}`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^chains/[^/]+$"); + + /** + * Gets the specified chain. Returns `NOT_FOUND` if the chain does not exist. + * + * Create a request for the method "chains.get". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Get#execute()} method to invoke the + * remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The chain's resource name, in the format `chains/{chain_place_id}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Chain.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^chains/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The chain's resource name, in the format `chains/{chain_place_id}`. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The chain's resource name, in the format `chains/{chain_place_id}`. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The chain's resource name, in the format `chains/{chain_place_id}`. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^chains/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Searches the chain based on chain name. + * + * Create a request for the method "chains.search". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Search#execute()} method to invoke the remote + * operation. + * + * @return the request + */ + public Search search() throws java.io.IOException { + Search result = new Search(); + initialize(result); + return result; + } + + public class Search extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/chains:search"; + + /** + * Searches the chain based on chain name. + * + * Create a request for the method "chains.search". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Search#execute()} method to invoke the + * remote operation.

{@link + * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected Search() { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.SearchChainsResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } + + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } + + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } + + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } + + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } + + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } + + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } + + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } + + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } + + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } + + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Search for a chain by its name. Exact/partial/fuzzy/related queries are + * supported. Examples: "walmart", "wal-mart", "walmmmart", "沃尔玛" + */ + @com.google.api.client.util.Key + private java.lang.String chainName; + + /** Required. Search for a chain by its name. Exact/partial/fuzzy/related queries are supported. + Examples: "walmart", "wal-mart", "walmmmart", "沃尔玛" + */ + public java.lang.String getChainName() { + return chainName; + } + + /** + * Required. Search for a chain by its name. Exact/partial/fuzzy/related queries are + * supported. Examples: "walmart", "wal-mart", "walmmmart", "沃尔玛" + */ + public Search setChainName(java.lang.String chainName) { + this.chainName = chainName; + return this; + } + + /** + * The maximum number of matched chains to return from this query. The default is 10. The + * maximum possible value is 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of matched chains to return from this query. The default is 10. The maximum + possible value is 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of matched chains to return from this query. The default is 10. The + * maximum possible value is 500. + */ + public Search setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + @Override + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GoogleLocations collection. + * + *

The typical use is:

+ *
+   *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+   *   {@code MyBusinessBusinessInformation.GoogleLocations.List request = mybusinessbusinessinformation.googleLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GoogleLocations googleLocations() { + return new GoogleLocations(); + } + + /** + * The "googleLocations" collection of methods. + */ + public class GoogleLocations { + + /** + * Search all of the possible locations that are a match to the specified request. + * + * Create a request for the method "googleLocations.search". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Search#execute()} method to invoke the remote + * operation. + * + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.SearchGoogleLocationsRequest} + * @return the request + */ + public Search search(com.google.api.services.mybusinessbusinessinformation.v1alpha.model.SearchGoogleLocationsRequest content) throws java.io.IOException { + Search result = new Search(content); + initialize(result); + return result; + } + + public class Search extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/googleLocations:search"; + + /** + * Search all of the possible locations that are a match to the specified request. + * + * Create a request for the method "googleLocations.search". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Search#execute()} method to invoke the + * remote operation.

{@link + * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.SearchGoogleLocationsRequest} + * @since 1.13 + */ + protected Search(com.google.api.services.mybusinessbusinessinformation.v1alpha.model.SearchGoogleLocationsRequest content) { + super(MyBusinessBusinessInformation.this, "POST", REST_PATH, content, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.SearchGoogleLocationsResponse.class); + } + + @Override + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } + + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } + + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } + + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } + + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } + + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } + + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } + + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } + + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } + + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } + + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+   *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+   *   {@code MyBusinessBusinessInformation.Locations.List request = mybusinessbusinessinformation.locations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Deletes a location. If this location cannot be deleted using the API and it is marked so in the + * `google.mybusiness.businessinformation.v1.LocationState`, use the [Google Business + * Profile](https://business.google.com/manage/) website. + * + * Create a request for the method "locations.delete". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation. + * + * @param name Required. The name of the location to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+$"); + + /** + * Deletes a location. If this location cannot be deleted using the API and it is marked so in the + * `google.mybusiness.businessinformation.v1.LocationState`, use the [Google Business + * Profile](https://business.google.com/manage/) website. + * + * Create a request for the method "locations.delete". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Delete#execute()} method to invoke the + * remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the location to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "DELETE", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the location to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the location to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the location to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified location as last set by the merchant. It may not reflect updates from + * Google or user-generated content that are live on Google Maps. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation. + * + * @param name Required. The name of the location to fetch. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+$"); + + /** + * Returns the specified location as last set by the merchant. It may not reflect updates from + * Google or user-generated content that are live on Google Maps. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Get#execute()} method to invoke the + * remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the location to fetch. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the location to fetch. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the location to fetch. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the location to fetch. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Read mask to specify what fields will be returned in the response. */ + @com.google.api.client.util.Key + private String readMask; + + /** Required. Read mask to specify what fields will be returned in the response. + */ + public String getReadMask() { + return readMask; + } + + /** Required. Read mask to specify what fields will be returned in the response. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves attributes for a location as last set by the merchant. It may not reflect updates from + * Google or user-generated content that are live on Google Maps. + * + * Create a request for the method "locations.getAttributes". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link GetAttributes#execute()} method to invoke the + * remote operation. + * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @return the request + */ + public GetAttributes getAttributes(java.lang.String name) throws java.io.IOException { + GetAttributes result = new GetAttributes(name); + initialize(result); + return result; + } + + public class GetAttributes extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/attributes$"); + + /** + * Retrieves attributes for a location as last set by the merchant. It may not reflect updates + * from Google or user-generated content that are live on Google Maps. + * + * Create a request for the method "locations.getAttributes". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link GetAttributes#execute()} method to + * invoke the remote operation.

{@link GetAttributes#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @since 1.13 + */ + protected GetAttributes(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetAttributes set$Xgafv(java.lang.String $Xgafv) { + return (GetAttributes) super.set$Xgafv($Xgafv); + } + + @Override + public GetAttributes setAccessToken(java.lang.String accessToken) { + return (GetAttributes) super.setAccessToken(accessToken); + } + + @Override + public GetAttributes setAlt(java.lang.String alt) { + return (GetAttributes) super.setAlt(alt); + } + + @Override + public GetAttributes setCallback(java.lang.String callback) { + return (GetAttributes) super.setCallback(callback); + } + + @Override + public GetAttributes setFields(java.lang.String fields) { + return (GetAttributes) super.setFields(fields); + } + + @Override + public GetAttributes setKey(java.lang.String key) { + return (GetAttributes) super.setKey(key); + } + + @Override + public GetAttributes setOauthToken(java.lang.String oauthToken) { + return (GetAttributes) super.setOauthToken(oauthToken); + } + + @Override + public GetAttributes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAttributes) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAttributes setQuotaUser(java.lang.String quotaUser) { + return (GetAttributes) super.setQuotaUser(quotaUser); + } + + @Override + public GetAttributes setUploadType(java.lang.String uploadType) { + return (GetAttributes) super.setUploadType(uploadType); + } + + @Override + public GetAttributes setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAttributes) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + public GetAttributes setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + this.name = name; + return this; + } + + @Override + public GetAttributes set(String parameterName, Object value) { + return (GetAttributes) super.set(parameterName, value); + } + } + /** + * Returns the specified location with extended metadata. This includes both the merchant-provided + * data and the consumer-facing view, which may differ. It also includes a mapping of field paths to + * metadata describing the current state of edits on that field, its origin source, and rejection + * details. + * + * Create a request for the method "locations.getExtended". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link GetExtended#execute()} method to invoke the + * remote operation. + * + * @param name Required. The name of the location to fetch. + * @return the request + */ + public GetExtended getExtended(java.lang.String name) throws java.io.IOException { + GetExtended result = new GetExtended(name); + initialize(result); + return result; + } + + public class GetExtended extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}:getExtended"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+$"); + + /** + * Returns the specified location with extended metadata. This includes both the merchant-provided + * data and the consumer-facing view, which may differ. It also includes a mapping of field paths + * to metadata describing the current state of edits on that field, its origin source, and + * rejection details. + * + * Create a request for the method "locations.getExtended". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link GetExtended#execute()} method to invoke + * the remote operation.

{@link + * GetExtended#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the location to fetch. + * @since 1.13 + */ + protected GetExtended(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.ExtendedLocation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetExtended set$Xgafv(java.lang.String $Xgafv) { + return (GetExtended) super.set$Xgafv($Xgafv); + } + + @Override + public GetExtended setAccessToken(java.lang.String accessToken) { + return (GetExtended) super.setAccessToken(accessToken); + } + + @Override + public GetExtended setAlt(java.lang.String alt) { + return (GetExtended) super.setAlt(alt); + } + + @Override + public GetExtended setCallback(java.lang.String callback) { + return (GetExtended) super.setCallback(callback); + } + + @Override + public GetExtended setFields(java.lang.String fields) { + return (GetExtended) super.setFields(fields); + } + + @Override + public GetExtended setKey(java.lang.String key) { + return (GetExtended) super.setKey(key); + } + + @Override + public GetExtended setOauthToken(java.lang.String oauthToken) { + return (GetExtended) super.setOauthToken(oauthToken); + } + + @Override + public GetExtended setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetExtended) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetExtended setQuotaUser(java.lang.String quotaUser) { + return (GetExtended) super.setQuotaUser(quotaUser); + } + + @Override + public GetExtended setUploadType(java.lang.String uploadType) { + return (GetExtended) super.setUploadType(uploadType); + } + + @Override + public GetExtended setUploadProtocol(java.lang.String uploadProtocol) { + return (GetExtended) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the location to fetch. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the location to fetch. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the location to fetch. */ + public GetExtended setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GetExtended set(String parameterName, Object value) { + return (GetExtended) super.set(parameterName, value); + } + } + /** + * Returns the specified location as it appears live on Google Maps and Search. This consumer-facing + * view may have been updated by Google or user-generated content and may differ from the merchant's + * version. The returned GoogleUpdatedLocation contains masks that indicate which fields differ from + * the merchant's information. + * + * Create a request for the method "locations.getGoogleUpdated". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link GetGoogleUpdated#execute()} method to invoke the + * remote operation. + * + * @param name Required. The name of the location to fetch. + * @return the request + */ + public GetGoogleUpdated getGoogleUpdated(java.lang.String name) throws java.io.IOException { + GetGoogleUpdated result = new GetGoogleUpdated(name); + initialize(result); + return result; + } + + public class GetGoogleUpdated extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}:getGoogleUpdated"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+$"); + + /** + * Returns the specified location as it appears live on Google Maps and Search. This consumer- + * facing view may have been updated by Google or user-generated content and may differ from the + * merchant's version. The returned GoogleUpdatedLocation contains masks that indicate which + * fields differ from the merchant's information. + * + * Create a request for the method "locations.getGoogleUpdated". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link GetGoogleUpdated#execute()} method to + * invoke the remote operation.

{@link GetGoogleUpdated#initialize(com.google.api.client.googl + * eapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param name Required. The name of the location to fetch. + * @since 1.13 + */ + protected GetGoogleUpdated(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.GoogleUpdatedLocation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetGoogleUpdated set$Xgafv(java.lang.String $Xgafv) { + return (GetGoogleUpdated) super.set$Xgafv($Xgafv); + } + + @Override + public GetGoogleUpdated setAccessToken(java.lang.String accessToken) { + return (GetGoogleUpdated) super.setAccessToken(accessToken); + } + + @Override + public GetGoogleUpdated setAlt(java.lang.String alt) { + return (GetGoogleUpdated) super.setAlt(alt); + } + + @Override + public GetGoogleUpdated setCallback(java.lang.String callback) { + return (GetGoogleUpdated) super.setCallback(callback); + } + + @Override + public GetGoogleUpdated setFields(java.lang.String fields) { + return (GetGoogleUpdated) super.setFields(fields); + } + + @Override + public GetGoogleUpdated setKey(java.lang.String key) { + return (GetGoogleUpdated) super.setKey(key); + } + + @Override + public GetGoogleUpdated setOauthToken(java.lang.String oauthToken) { + return (GetGoogleUpdated) super.setOauthToken(oauthToken); + } + + @Override + public GetGoogleUpdated setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetGoogleUpdated) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetGoogleUpdated setQuotaUser(java.lang.String quotaUser) { + return (GetGoogleUpdated) super.setQuotaUser(quotaUser); + } + + @Override + public GetGoogleUpdated setUploadType(java.lang.String uploadType) { + return (GetGoogleUpdated) super.setUploadType(uploadType); + } + + @Override + public GetGoogleUpdated setUploadProtocol(java.lang.String uploadProtocol) { + return (GetGoogleUpdated) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the location to fetch. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the location to fetch. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the location to fetch. */ + public GetGoogleUpdated setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Read mask to specify what fields will be returned in the response. */ + @com.google.api.client.util.Key + private String readMask; + + /** Required. Read mask to specify what fields will be returned in the response. + */ + public String getReadMask() { + return readMask; + } + + /** Required. Read mask to specify what fields will be returned in the response. */ + public GetGoogleUpdated setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public GetGoogleUpdated set(String parameterName, Object value) { + return (GetGoogleUpdated) super.set(parameterName, value); + } + } + /** + * Updates the specified location. + * + * Create a request for the method "locations.patch". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation. + * + * @param name Identifier. Google identifier for this location in the form: `locations/{location_id}`. + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+$"); + + /** + * Updates the specified location. + * + * Create a request for the method "locations.patch". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link Patch#execute()} method to invoke the + * remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Google identifier for this location in the form: `locations/{location_id}`. + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location content) { + super(MyBusinessBusinessInformation.this, "PATCH", REST_PATH, content, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Location.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Google identifier for this location in the form: `locations/{location_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Google identifier for this location in the form: `locations/{location_id}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Google identifier for this location in the form: `locations/{location_id}`. + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. The specific fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The specific fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The specific fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. If true, the request is validated without actually updating the location. When + * this field is set, we will only return validation errors if there were any. The response + * will be empty if no errors were found. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If true, the request is validated without actually updating the location. When this field + is set, we will only return validation errors if there were any. The response will be empty if no + errors were found. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If true, the request is validated without actually updating the location. When + * this field is set, we will only return validation errors if there were any. The response + * will be empty if no errors were found. + */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Update attributes for a given location. + * + * Create a request for the method "locations.updateAttributes". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link UpdateAttributes#execute()} method to invoke the + * remote operation. + * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes} + * @return the request + */ + public UpdateAttributes updateAttributes(java.lang.String name, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes content) throws java.io.IOException { + UpdateAttributes result = new UpdateAttributes(name, content); + initialize(result); + return result; + } + + public class UpdateAttributes extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/attributes$"); + + /** + * Update attributes for a given location. + * + * Create a request for the method "locations.updateAttributes". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link UpdateAttributes#execute()} method to + * invoke the remote operation.

{@link UpdateAttributes#initialize(com.google.api.client.googl + * eapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @param content the {@link com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes} + * @since 1.13 + */ + protected UpdateAttributes(java.lang.String name, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes content) { + super(MyBusinessBusinessInformation.this, "PATCH", REST_PATH, content, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + } + + @Override + public UpdateAttributes set$Xgafv(java.lang.String $Xgafv) { + return (UpdateAttributes) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateAttributes setAccessToken(java.lang.String accessToken) { + return (UpdateAttributes) super.setAccessToken(accessToken); + } + + @Override + public UpdateAttributes setAlt(java.lang.String alt) { + return (UpdateAttributes) super.setAlt(alt); + } + + @Override + public UpdateAttributes setCallback(java.lang.String callback) { + return (UpdateAttributes) super.setCallback(callback); + } + + @Override + public UpdateAttributes setFields(java.lang.String fields) { + return (UpdateAttributes) super.setFields(fields); + } + + @Override + public UpdateAttributes setKey(java.lang.String key) { + return (UpdateAttributes) super.setKey(key); + } + + @Override + public UpdateAttributes setOauthToken(java.lang.String oauthToken) { + return (UpdateAttributes) super.setOauthToken(oauthToken); + } + + @Override + public UpdateAttributes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateAttributes) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateAttributes setQuotaUser(java.lang.String quotaUser) { + return (UpdateAttributes) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateAttributes setUploadType(java.lang.String uploadType) { + return (UpdateAttributes) super.setUploadType(uploadType); + } + + @Override + public UpdateAttributes setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateAttributes) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + public UpdateAttributes setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + this.name = name; + return this; + } + + /** + * Required. Attribute name of attributes that you'd like to update. Represented by + * `attributes/{attribute}`. Updates: All attributes provided in the attributes field that you + * would like to update must be set in the `attribute_mask`. Attributes set in the above list + * but not in the `attribute_mask` will be ignored. Deletes: If you'd like to delete certain + * attributes, they must be specified in the `attribute_mask` with no matching entry in the + * attributes list. If you'd like to delete all attributes set on a location, you should look + * up all the applicable attributes for the location and then add them to the `attribute_mask` + * with an empty attributes field. + */ + @com.google.api.client.util.Key + private String attributeMask; + + /** Required. Attribute name of attributes that you'd like to update. Represented by + `attributes/{attribute}`. Updates: All attributes provided in the attributes field that you would + like to update must be set in the `attribute_mask`. Attributes set in the above list but not in the + `attribute_mask` will be ignored. Deletes: If you'd like to delete certain attributes, they must be + specified in the `attribute_mask` with no matching entry in the attributes list. If you'd like to + delete all attributes set on a location, you should look up all the applicable attributes for the + location and then add them to the `attribute_mask` with an empty attributes field. + */ + public String getAttributeMask() { + return attributeMask; + } + + /** + * Required. Attribute name of attributes that you'd like to update. Represented by + * `attributes/{attribute}`. Updates: All attributes provided in the attributes field that you + * would like to update must be set in the `attribute_mask`. Attributes set in the above list + * but not in the `attribute_mask` will be ignored. Deletes: If you'd like to delete certain + * attributes, they must be specified in the `attribute_mask` with no matching entry in the + * attributes list. If you'd like to delete all attributes set on a location, you should look + * up all the applicable attributes for the location and then add them to the `attribute_mask` + * with an empty attributes field. + */ + public UpdateAttributes setAttributeMask(String attributeMask) { + this.attributeMask = attributeMask; + return this; + } + + @Override + public UpdateAttributes set(String parameterName, Object value) { + return (UpdateAttributes) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Attributes collection. + * + *

The typical use is:

+ *
+     *   {@code MyBusinessBusinessInformation mybusinessbusinessinformation = new MyBusinessBusinessInformation(...);}
+     *   {@code MyBusinessBusinessInformation.Attributes.List request = mybusinessbusinessinformation.attributes().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Attributes attributes() { + return new Attributes(); + } + + /** + * The "attributes" collection of methods. + */ + public class Attributes { + + /** + * Returns the specified attributes with extended metadata. This includes both the merchant-provided + * data and the consumer-facing view, which may differ. It also includes metadata describing the + * current state of edits on each attribute, its origin source, and rejection details. + * + * Create a request for the method "attributes.getExtended". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link GetExtended#execute()} method to invoke the + * remote operation. + * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @return the request + */ + public GetExtended getExtended(java.lang.String name) throws java.io.IOException { + GetExtended result = new GetExtended(name); + initialize(result); + return result; + } + + public class GetExtended extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}:getExtended"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/attributes$"); + + /** + * Returns the specified attributes with extended metadata. This includes both the merchant- + * provided data and the consumer-facing view, which may differ. It also includes metadata + * describing the current state of edits on each attribute, its origin source, and rejection + * details. + * + * Create a request for the method "attributes.getExtended". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link GetExtended#execute()} method to invoke + * the remote operation.

{@link + * GetExtended#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @since 1.13 + */ + protected GetExtended(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.ExtendedAttributes.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetExtended set$Xgafv(java.lang.String $Xgafv) { + return (GetExtended) super.set$Xgafv($Xgafv); + } + + @Override + public GetExtended setAccessToken(java.lang.String accessToken) { + return (GetExtended) super.setAccessToken(accessToken); + } + + @Override + public GetExtended setAlt(java.lang.String alt) { + return (GetExtended) super.setAlt(alt); + } + + @Override + public GetExtended setCallback(java.lang.String callback) { + return (GetExtended) super.setCallback(callback); + } + + @Override + public GetExtended setFields(java.lang.String fields) { + return (GetExtended) super.setFields(fields); + } + + @Override + public GetExtended setKey(java.lang.String key) { + return (GetExtended) super.setKey(key); + } + + @Override + public GetExtended setOauthToken(java.lang.String oauthToken) { + return (GetExtended) super.setOauthToken(oauthToken); + } + + @Override + public GetExtended setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetExtended) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetExtended setQuotaUser(java.lang.String quotaUser) { + return (GetExtended) super.setQuotaUser(quotaUser); + } + + @Override + public GetExtended setUploadType(java.lang.String uploadType) { + return (GetExtended) super.setUploadType(uploadType); + } + + @Override + public GetExtended setUploadProtocol(java.lang.String uploadProtocol) { + return (GetExtended) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + public GetExtended setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + this.name = name; + return this; + } + + @Override + public GetExtended set(String parameterName, Object value) { + return (GetExtended) super.set(parameterName, value); + } + } + /** + * Retrieves attributes for a location as they appear live on Google Maps and Search. This consumer- + * facing view may have been updated by Google or user-generated content and may differ from the + * merchant's version. + * + * Create a request for the method "attributes.getGoogleUpdated". + * + * This request holds the parameters needed by the mybusinessbusinessinformation server. After + * setting any optional parameters, call the {@link GetGoogleUpdated#execute()} method to invoke the + * remote operation. + * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @return the request + */ + public GetGoogleUpdated getGoogleUpdated(java.lang.String name) throws java.io.IOException { + GetGoogleUpdated result = new GetGoogleUpdated(name); + initialize(result); + return result; + } + + public class GetGoogleUpdated extends MyBusinessBusinessInformationRequest { + + private static final String REST_PATH = "v1alpha/{+name}:getGoogleUpdated"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/attributes$"); + + /** + * Retrieves attributes for a location as they appear live on Google Maps and Search. This + * consumer-facing view may have been updated by Google or user-generated content and may differ + * from the merchant's version. + * + * Create a request for the method "attributes.getGoogleUpdated". + * + * This request holds the parameters needed by the the mybusinessbusinessinformation server. + * After setting any optional parameters, call the {@link GetGoogleUpdated#execute()} method to + * invoke the remote operation.

{@link GetGoogleUpdated#initialize(com.google.api.client.googl + * eapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param name Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + * @since 1.13 + */ + protected GetGoogleUpdated(java.lang.String name) { + super(MyBusinessBusinessInformation.this, "GET", REST_PATH, null, com.google.api.services.mybusinessbusinessinformation.v1alpha.model.Attributes.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetGoogleUpdated set$Xgafv(java.lang.String $Xgafv) { + return (GetGoogleUpdated) super.set$Xgafv($Xgafv); + } + + @Override + public GetGoogleUpdated setAccessToken(java.lang.String accessToken) { + return (GetGoogleUpdated) super.setAccessToken(accessToken); + } + + @Override + public GetGoogleUpdated setAlt(java.lang.String alt) { + return (GetGoogleUpdated) super.setAlt(alt); + } + + @Override + public GetGoogleUpdated setCallback(java.lang.String callback) { + return (GetGoogleUpdated) super.setCallback(callback); + } + + @Override + public GetGoogleUpdated setFields(java.lang.String fields) { + return (GetGoogleUpdated) super.setFields(fields); + } + + @Override + public GetGoogleUpdated setKey(java.lang.String key) { + return (GetGoogleUpdated) super.setKey(key); + } + + @Override + public GetGoogleUpdated setOauthToken(java.lang.String oauthToken) { + return (GetGoogleUpdated) super.setOauthToken(oauthToken); + } + + @Override + public GetGoogleUpdated setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetGoogleUpdated) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetGoogleUpdated setQuotaUser(java.lang.String quotaUser) { + return (GetGoogleUpdated) super.setQuotaUser(quotaUser); + } + + @Override + public GetGoogleUpdated setUploadType(java.lang.String uploadType) { + return (GetGoogleUpdated) super.setUploadType(uploadType); + } + + @Override + public GetGoogleUpdated setUploadProtocol(java.lang.String uploadProtocol) { + return (GetGoogleUpdated) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Google identifier for this location in the form of `locations/{location_id}/attributes`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + */ + public GetGoogleUpdated setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/attributes$"); + } + this.name = name; + return this; + } + + @Override + public GetGoogleUpdated set(String parameterName, Object value) { + return (GetGoogleUpdated) super.set(parameterName, value); + } + } + + } + } + + /** + * Builder for {@link MyBusinessBusinessInformation}. + * + *

+ * Implementation is not thread-safe. + *

+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link MyBusinessBusinessInformation}. */ + @Override + public MyBusinessBusinessInformation build() { + return new MyBusinessBusinessInformation(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link MyBusinessBusinessInformationRequestInitializer}. + * + * @since 1.12 + */ + public Builder setMyBusinessBusinessInformationRequestInitializer( + MyBusinessBusinessInformationRequestInitializer mybusinessbusinessinformationRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(mybusinessbusinessinformationRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequest.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequest.java new file mode 100644 index 00000000000..0ce2aa6c620 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequest.java @@ -0,0 +1,267 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha; + +/** + * MyBusinessBusinessInformation request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class MyBusinessBusinessInformationRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public MyBusinessBusinessInformationRequest( + MyBusinessBusinessInformation client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public MyBusinessBusinessInformationRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public MyBusinessBusinessInformationRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public MyBusinessBusinessInformationRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public MyBusinessBusinessInformationRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public MyBusinessBusinessInformationRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public MyBusinessBusinessInformationRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public MyBusinessBusinessInformationRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public MyBusinessBusinessInformationRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public MyBusinessBusinessInformationRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public MyBusinessBusinessInformationRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public MyBusinessBusinessInformationRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final MyBusinessBusinessInformation getAbstractGoogleClient() { + return (MyBusinessBusinessInformation) super.getAbstractGoogleClient(); + } + + @Override + public MyBusinessBusinessInformationRequest setDisableGZipContent(boolean disableGZipContent) { + return (MyBusinessBusinessInformationRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public MyBusinessBusinessInformationRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (MyBusinessBusinessInformationRequest) super.setRequestHeaders(headers); + } + + @Override + public MyBusinessBusinessInformationRequest set(String parameterName, Object value) { + return (MyBusinessBusinessInformationRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequestInitializer.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequestInitializer.java new file mode 100644 index 00000000000..d559ee2e21f --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/MyBusinessBusinessInformationRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha; + +/** + * MyBusinessBusinessInformation request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new MyBusinessBusinessInformationRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new MyBusinessBusinessInformationRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends MyBusinessBusinessInformationRequestInitializer {
+
+    {@literal @}Override
+    public void initializeMyBusinessBusinessInformationRequest(MyBusinessBusinessInformationRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends MyBusinessBusinessInformationRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeMyBusinessBusinessInformationRequest(MyBusinessBusinessInformationRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class MyBusinessBusinessInformationRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public MyBusinessBusinessInformationRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public MyBusinessBusinessInformationRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public MyBusinessBusinessInformationRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeMyBusinessBusinessInformationRequest((MyBusinessBusinessInformationRequest) request); + } + + /** + * Initializes MyBusinessBusinessInformation request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeMyBusinessBusinessInformationRequest(MyBusinessBusinessInformationRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AdWordsLocationExtensions.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AdWordsLocationExtensions.java new file mode 100644 index 00000000000..bf426a1e5e0 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AdWordsLocationExtensions.java @@ -0,0 +1,70 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Additional information that is surfaced in AdWords. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AdWordsLocationExtensions extends com.google.api.client.json.GenericJson { + + /** + * Required. An alternate phone number to display on AdWords location extensions instead of the + * location's primary phone number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adPhone; + + /** + * Required. An alternate phone number to display on AdWords location extensions instead of the + * location's primary phone number. + * @return value or {@code null} for none + */ + public java.lang.String getAdPhone() { + return adPhone; + } + + /** + * Required. An alternate phone number to display on AdWords location extensions instead of the + * location's primary phone number. + * @param adPhone adPhone or {@code null} for none + */ + public AdWordsLocationExtensions setAdPhone(java.lang.String adPhone) { + this.adPhone = adPhone; + return this; + } + + @Override + public AdWordsLocationExtensions set(String fieldName, Object value) { + return (AdWordsLocationExtensions) super.set(fieldName, value); + } + + @Override + public AdWordsLocationExtensions clone() { + return (AdWordsLocationExtensions) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attribute.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attribute.java new file mode 100644 index 00000000000..569911d4e3e --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attribute.java @@ -0,0 +1,181 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Attribute extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name for this attribute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the + * other values fields must be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RepeatedEnumAttributeValue repeatedEnumValue; + + /** + * When the attribute value type is URL, this field contains the value(s) for this attribute, and + * the other values fields must be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List uriValues; + + /** + * Output only. The type of value that this attribute contains. This should be used to determine + * how to interpret the value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String valueType; + + /** + * The values for this attribute. The type of the values supplied must match that expected for + * that attribute. This is a repeated field where multiple attribute values may be provided. + * Attribute types only support one value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Required. The resource name for this attribute. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name for this attribute. + * @param name name or {@code null} for none + */ + public Attribute setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the + * other values fields must be empty. + * @return value or {@code null} for none + */ + public RepeatedEnumAttributeValue getRepeatedEnumValue() { + return repeatedEnumValue; + } + + /** + * When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the + * other values fields must be empty. + * @param repeatedEnumValue repeatedEnumValue or {@code null} for none + */ + public Attribute setRepeatedEnumValue(RepeatedEnumAttributeValue repeatedEnumValue) { + this.repeatedEnumValue = repeatedEnumValue; + return this; + } + + /** + * When the attribute value type is URL, this field contains the value(s) for this attribute, and + * the other values fields must be empty. + * @return value or {@code null} for none + */ + public java.util.List getUriValues() { + return uriValues; + } + + /** + * When the attribute value type is URL, this field contains the value(s) for this attribute, and + * the other values fields must be empty. + * @param uriValues uriValues or {@code null} for none + */ + public Attribute setUriValues(java.util.List uriValues) { + this.uriValues = uriValues; + return this; + } + + /** + * Output only. The type of value that this attribute contains. This should be used to determine + * how to interpret the value. + * @return value or {@code null} for none + */ + public java.lang.String getValueType() { + return valueType; + } + + /** + * Output only. The type of value that this attribute contains. This should be used to determine + * how to interpret the value. + * @param valueType valueType or {@code null} for none + */ + public Attribute setValueType(java.lang.String valueType) { + this.valueType = valueType; + return this; + } + + /** + * The values for this attribute. The type of the values supplied must match that expected for + * that attribute. This is a repeated field where multiple attribute values may be provided. + * Attribute types only support one value. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * The values for this attribute. The type of the values supplied must match that expected for + * that attribute. This is a repeated field where multiple attribute values may be provided. + * Attribute types only support one value. + * @param values values or {@code null} for none + */ + public Attribute setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public Attribute set(String fieldName, Object value) { + return (Attribute) super.set(fieldName, value); + } + + @Override + public Attribute clone() { + return (Attribute) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeMetadata.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeMetadata.java new file mode 100644 index 00000000000..22152484221 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeMetadata.java @@ -0,0 +1,236 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Metadata for an attribute. Contains display information for the attribute, including a localized + * name and a heading for grouping related attributes together. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AttributeMetadata extends com.google.api.client.json.GenericJson { + + /** + * If true, the attribute is deprecated and should no longer be used. If deprecated, updating this + * attribute will not result in an error, but updates will not be saved. At some point after being + * deprecated, the attribute will be removed entirely and it will become an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deprecated; + + /** + * The localized display name for the attribute, if available; otherwise, the English display + * name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The localized display name of the group that contains this attribute, if available; otherwise, + * the English group name. Related attributes are collected into a group and should be displayed + * together under the heading given here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupDisplayName; + + /** + * The unique identifier for the attribute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * If true, the attribute supports multiple values. If false, only a single value should be + * provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean repeatable; + + /** + * For some types of attributes (for example, enums), a list of supported values and corresponding + * display names for those values is provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List valueMetadata; + + /** + * The value type for the attribute. Values set and retrieved should be expected to be of this + * type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String valueType; + + /** + * If true, the attribute is deprecated and should no longer be used. If deprecated, updating this + * attribute will not result in an error, but updates will not be saved. At some point after being + * deprecated, the attribute will be removed entirely and it will become an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeprecated() { + return deprecated; + } + + /** + * If true, the attribute is deprecated and should no longer be used. If deprecated, updating this + * attribute will not result in an error, but updates will not be saved. At some point after being + * deprecated, the attribute will be removed entirely and it will become an error. + * @param deprecated deprecated or {@code null} for none + */ + public AttributeMetadata setDeprecated(java.lang.Boolean deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * The localized display name for the attribute, if available; otherwise, the English display + * name. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The localized display name for the attribute, if available; otherwise, the English display + * name. + * @param displayName displayName or {@code null} for none + */ + public AttributeMetadata setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The localized display name of the group that contains this attribute, if available; otherwise, + * the English group name. Related attributes are collected into a group and should be displayed + * together under the heading given here. + * @return value or {@code null} for none + */ + public java.lang.String getGroupDisplayName() { + return groupDisplayName; + } + + /** + * The localized display name of the group that contains this attribute, if available; otherwise, + * the English group name. Related attributes are collected into a group and should be displayed + * together under the heading given here. + * @param groupDisplayName groupDisplayName or {@code null} for none + */ + public AttributeMetadata setGroupDisplayName(java.lang.String groupDisplayName) { + this.groupDisplayName = groupDisplayName; + return this; + } + + /** + * The unique identifier for the attribute. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The unique identifier for the attribute. + * @param parent parent or {@code null} for none + */ + public AttributeMetadata setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * If true, the attribute supports multiple values. If false, only a single value should be + * provided. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRepeatable() { + return repeatable; + } + + /** + * If true, the attribute supports multiple values. If false, only a single value should be + * provided. + * @param repeatable repeatable or {@code null} for none + */ + public AttributeMetadata setRepeatable(java.lang.Boolean repeatable) { + this.repeatable = repeatable; + return this; + } + + /** + * For some types of attributes (for example, enums), a list of supported values and corresponding + * display names for those values is provided. + * @return value or {@code null} for none + */ + public java.util.List getValueMetadata() { + return valueMetadata; + } + + /** + * For some types of attributes (for example, enums), a list of supported values and corresponding + * display names for those values is provided. + * @param valueMetadata valueMetadata or {@code null} for none + */ + public AttributeMetadata setValueMetadata(java.util.List valueMetadata) { + this.valueMetadata = valueMetadata; + return this; + } + + /** + * The value type for the attribute. Values set and retrieved should be expected to be of this + * type. + * @return value or {@code null} for none + */ + public java.lang.String getValueType() { + return valueType; + } + + /** + * The value type for the attribute. Values set and retrieved should be expected to be of this + * type. + * @param valueType valueType or {@code null} for none + */ + public AttributeMetadata setValueType(java.lang.String valueType) { + this.valueType = valueType; + return this; + } + + @Override + public AttributeMetadata set(String fieldName, Object value) { + return (AttributeMetadata) super.set(fieldName, value); + } + + @Override + public AttributeMetadata clone() { + return (AttributeMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeValueMetadata.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeValueMetadata.java new file mode 100644 index 00000000000..46b99f32ffc --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/AttributeValueMetadata.java @@ -0,0 +1,97 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Metadata for supported attribute values. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AttributeValueMetadata extends com.google.api.client.json.GenericJson { + + /** + * The display name for this value, localized where available; otherwise, in English. The value + * display name is intended to be used in context with the attribute display name. For example, + * for a "WiFi" enum attribute, this could contain "Paid" to represent paid Wi-Fi. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The attribute value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Object value; + + /** + * The display name for this value, localized where available; otherwise, in English. The value + * display name is intended to be used in context with the attribute display name. For example, + * for a "WiFi" enum attribute, this could contain "Paid" to represent paid Wi-Fi. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name for this value, localized where available; otherwise, in English. The value + * display name is intended to be used in context with the attribute display name. For example, + * for a "WiFi" enum attribute, this could contain "Paid" to represent paid Wi-Fi. + * @param displayName displayName or {@code null} for none + */ + public AttributeValueMetadata setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The attribute value. + * @return value or {@code null} for none + */ + public java.lang.Object getValue() { + return value; + } + + /** + * The attribute value. + * @param value value or {@code null} for none + */ + public AttributeValueMetadata setValue(java.lang.Object value) { + this.value = value; + return this; + } + + @Override + public AttributeValueMetadata set(String fieldName, Object value) { + return (AttributeValueMetadata) super.set(fieldName, value); + } + + @Override + public AttributeValueMetadata clone() { + return (AttributeValueMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attributes.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attributes.java new file mode 100644 index 00000000000..60bc4d2104a --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Attributes.java @@ -0,0 +1,100 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * A container for all the attributes for a given location. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Attributes extends com.google.api.client.json.GenericJson { + + /** + * A collection of attributes that need to be updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attributes; + + static { + // hack to force ProGuard to consider Attribute used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Attribute.class); + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * A collection of attributes that need to be updated. + * @return value or {@code null} for none + */ + public java.util.List getAttributes() { + return attributes; + } + + /** + * A collection of attributes that need to be updated. + * @param attributes attributes or {@code null} for none + */ + public Attributes setAttributes(java.util.List attributes) { + this.attributes = attributes; + return this; + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + * @param name name or {@code null} for none + */ + public Attributes setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Attributes set(String fieldName, Object value) { + return (Attributes) super.set(fieldName, value); + } + + @Override + public Attributes clone() { + return (Attributes) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BatchGetCategoriesResponse.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BatchGetCategoriesResponse.java new file mode 100644 index 00000000000..41bf9107b88 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BatchGetCategoriesResponse.java @@ -0,0 +1,70 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response message for BusinessCategories.BatchGetBusinessCategories. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchGetCategoriesResponse extends com.google.api.client.json.GenericJson { + + /** + * Categories that match the GConcept ids provided in the request. They will not come in the same + * order as category ids in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List categories; + + /** + * Categories that match the GConcept ids provided in the request. They will not come in the same + * order as category ids in the request. + * @return value or {@code null} for none + */ + public java.util.List getCategories() { + return categories; + } + + /** + * Categories that match the GConcept ids provided in the request. They will not come in the same + * order as category ids in the request. + * @param categories categories or {@code null} for none + */ + public BatchGetCategoriesResponse setCategories(java.util.List categories) { + this.categories = categories; + return this; + } + + @Override + public BatchGetCategoriesResponse set(String fieldName, Object value) { + return (BatchGetCategoriesResponse) super.set(fieldName, value); + } + + @Override + public BatchGetCategoriesResponse clone() { + return (BatchGetCategoriesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BusinessHours.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BusinessHours.java new file mode 100644 index 00000000000..3d93fa67603 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/BusinessHours.java @@ -0,0 +1,71 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents the time periods that this location is open for business. Holds a collection of + * TimePeriod instances. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BusinessHours extends com.google.api.client.json.GenericJson { + + /** + * Required. A collection of times that this location is open for business. Each period represents + * a range of hours when the location is open during the week. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List periods; + + /** + * Required. A collection of times that this location is open for business. Each period represents + * a range of hours when the location is open during the week. + * @return value or {@code null} for none + */ + public java.util.List getPeriods() { + return periods; + } + + /** + * Required. A collection of times that this location is open for business. Each period represents + * a range of hours when the location is open during the week. + * @param periods periods or {@code null} for none + */ + public BusinessHours setPeriods(java.util.List periods) { + this.periods = periods; + return this; + } + + @Override + public BusinessHours set(String fieldName, Object value) { + return (BusinessHours) super.set(fieldName, value); + } + + @Override + public BusinessHours clone() { + return (BusinessHours) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Categories.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Categories.java new file mode 100644 index 00000000000..8b2027e74e5 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Categories.java @@ -0,0 +1,105 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * A collection of categories that describes the business. During updates, both fields must be set. + * Clients are prohibited from individually updating the primary or additional categories using the + * update mask. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Categories extends com.google.api.client.json.GenericJson { + + /** + * Optional. Additional categories to describe your business. Categories help your customers find + * accurate, specific results for services they're interested in. To keep your business + * information accurate and live, make sure that you use as few categories as possible to describe + * your overall core business. Choose categories that are as specific as possible, but + * representative of your main business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List additionalCategories; + + /** + * Required. Category that best describes the core business this location engages in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Category primaryCategory; + + /** + * Optional. Additional categories to describe your business. Categories help your customers find + * accurate, specific results for services they're interested in. To keep your business + * information accurate and live, make sure that you use as few categories as possible to describe + * your overall core business. Choose categories that are as specific as possible, but + * representative of your main business. + * @return value or {@code null} for none + */ + public java.util.List getAdditionalCategories() { + return additionalCategories; + } + + /** + * Optional. Additional categories to describe your business. Categories help your customers find + * accurate, specific results for services they're interested in. To keep your business + * information accurate and live, make sure that you use as few categories as possible to describe + * your overall core business. Choose categories that are as specific as possible, but + * representative of your main business. + * @param additionalCategories additionalCategories or {@code null} for none + */ + public Categories setAdditionalCategories(java.util.List additionalCategories) { + this.additionalCategories = additionalCategories; + return this; + } + + /** + * Required. Category that best describes the core business this location engages in. + * @return value or {@code null} for none + */ + public Category getPrimaryCategory() { + return primaryCategory; + } + + /** + * Required. Category that best describes the core business this location engages in. + * @param primaryCategory primaryCategory or {@code null} for none + */ + public Categories setPrimaryCategory(Category primaryCategory) { + this.primaryCategory = primaryCategory; + return this; + } + + @Override + public Categories set(String fieldName, Object value) { + return (Categories) super.set(fieldName, value); + } + + @Override + public Categories clone() { + return (Categories) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Category.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Category.java new file mode 100644 index 00000000000..7b611962e97 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Category.java @@ -0,0 +1,146 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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`. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Category extends com.google.api.client.json.GenericJson { + + /** + * Output only. The human-readable name of the category. This is set when reading the location. + * When modifying the location, `category_id` must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. More hours types that are available for this business category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List moreHoursTypes; + + /** + * Required. A stable ID (provided by Google) for this category. The value must be specified when + * modifying the category (when creating or updating a location). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. A list of all the service types that are available for this business category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceTypes; + + /** + * Output only. The human-readable name of the category. This is set when reading the location. + * When modifying the location, `category_id` must be set. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The human-readable name of the category. This is set when reading the location. + * When modifying the location, `category_id` must be set. + * @param displayName displayName or {@code null} for none + */ + public Category setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. More hours types that are available for this business category. + * @return value or {@code null} for none + */ + public java.util.List getMoreHoursTypes() { + return moreHoursTypes; + } + + /** + * Output only. More hours types that are available for this business category. + * @param moreHoursTypes moreHoursTypes or {@code null} for none + */ + public Category setMoreHoursTypes(java.util.List moreHoursTypes) { + this.moreHoursTypes = moreHoursTypes; + return this; + } + + /** + * Required. A stable ID (provided by Google) for this category. The value must be specified when + * modifying the category (when creating or updating a location). + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A stable ID (provided by Google) for this category. The value must be specified when + * modifying the category (when creating or updating a location). + * @param name name or {@code null} for none + */ + public Category setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. A list of all the service types that are available for this business category. + * @return value or {@code null} for none + */ + public java.util.List getServiceTypes() { + return serviceTypes; + } + + /** + * Output only. A list of all the service types that are available for this business category. + * @param serviceTypes serviceTypes or {@code null} for none + */ + public Category setServiceTypes(java.util.List serviceTypes) { + this.serviceTypes = serviceTypes; + return this; + } + + @Override + public Category set(String fieldName, Object value) { + return (Category) super.set(fieldName, value); + } + + @Override + public Category clone() { + return (Category) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Chain.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Chain.java new file mode 100644 index 00000000000..4a352da8c43 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Chain.java @@ -0,0 +1,139 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * A chain is a brand that your business's locations can be affiliated with. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Chain extends com.google.api.client.json.GenericJson { + + /** + * Names of the chain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List chainNames; + + /** + * Number of locations that are part of this chain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer locationCount; + + /** + * Required. The chain's resource name, in the format `chains/{chain_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Websites of the chain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List websites; + + /** + * Names of the chain. + * @return value or {@code null} for none + */ + public java.util.List getChainNames() { + return chainNames; + } + + /** + * Names of the chain. + * @param chainNames chainNames or {@code null} for none + */ + public Chain setChainNames(java.util.List chainNames) { + this.chainNames = chainNames; + return this; + } + + /** + * Number of locations that are part of this chain. + * @return value or {@code null} for none + */ + public java.lang.Integer getLocationCount() { + return locationCount; + } + + /** + * Number of locations that are part of this chain. + * @param locationCount locationCount or {@code null} for none + */ + public Chain setLocationCount(java.lang.Integer locationCount) { + this.locationCount = locationCount; + return this; + } + + /** + * Required. The chain's resource name, in the format `chains/{chain_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The chain's resource name, in the format `chains/{chain_id}`. + * @param name name or {@code null} for none + */ + public Chain setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Websites of the chain. + * @return value or {@code null} for none + */ + public java.util.List getWebsites() { + return websites; + } + + /** + * Websites of the chain. + * @param websites websites or {@code null} for none + */ + public Chain setWebsites(java.util.List websites) { + this.websites = websites; + return this; + } + + @Override + public Chain set(String fieldName, Object value) { + return (Chain) super.set(fieldName, value); + } + + @Override + public Chain clone() { + return (Chain) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainName.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainName.java new file mode 100644 index 00000000000..f9f115f0b99 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainName.java @@ -0,0 +1,91 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Name to be used when displaying the chain. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChainName extends com.google.api.client.json.GenericJson { + + /** + * The display name for this chain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The BCP 47 code of language of the name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * The display name for this chain. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name for this chain. + * @param displayName displayName or {@code null} for none + */ + public ChainName setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The BCP 47 code of language of the name. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * The BCP 47 code of language of the name. + * @param languageCode languageCode or {@code null} for none + */ + public ChainName setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + @Override + public ChainName set(String fieldName, Object value) { + return (ChainName) super.set(fieldName, value); + } + + @Override + public ChainName clone() { + return (ChainName) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainUri.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainUri.java new file mode 100644 index 00000000000..05205c5a30d --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ChainUri.java @@ -0,0 +1,67 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Url to be used when displaying the chain. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChainUri extends com.google.api.client.json.GenericJson { + + /** + * The uri for this chain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The uri for this chain. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The uri for this chain. + * @param uri uri or {@code null} for none + */ + public ChainUri setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public ChainUri set(String fieldName, Object value) { + return (ChainUri) super.set(fieldName, value); + } + + @Override + public ChainUri clone() { + return (ChainUri) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Date.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Date.java new file mode 100644 index 00000000000..5387d8d40a1 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Date.java @@ -0,0 +1,124 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: * A full date, with non-zero year, month, and + * day values. * A month and day, with a zero year (for example, an anniversary). * A year on its + * own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit + * card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * + * google.protobuf.Timestamp + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Empty.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Empty.java new file mode 100644 index 00000000000..d526d5bd838 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Empty.java @@ -0,0 +1,45 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttribute.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttribute.java new file mode 100644 index 00000000000..a8611d75c15 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttribute.java @@ -0,0 +1,115 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents an attribute along with its edit metadata and current serving state. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtendedAttribute extends com.google.api.client.json.GenericJson { + + /** + * Output only. The underlying attribute data managed by the merchant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Attribute attributeProvidedByMerchant; + + /** + * Output only. The attribute data currently visible to consumers on Google Maps and Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Attribute attributeSeenByConsumers; + + /** + * Output only. Detailed edit status and metadata for this specific attribute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtendedFieldData extendedFieldData; + + /** + * Output only. The underlying attribute data managed by the merchant. + * @return value or {@code null} for none + */ + public Attribute getAttributeProvidedByMerchant() { + return attributeProvidedByMerchant; + } + + /** + * Output only. The underlying attribute data managed by the merchant. + * @param attributeProvidedByMerchant attributeProvidedByMerchant or {@code null} for none + */ + public ExtendedAttribute setAttributeProvidedByMerchant(Attribute attributeProvidedByMerchant) { + this.attributeProvidedByMerchant = attributeProvidedByMerchant; + return this; + } + + /** + * Output only. The attribute data currently visible to consumers on Google Maps and Search. + * @return value or {@code null} for none + */ + public Attribute getAttributeSeenByConsumers() { + return attributeSeenByConsumers; + } + + /** + * Output only. The attribute data currently visible to consumers on Google Maps and Search. + * @param attributeSeenByConsumers attributeSeenByConsumers or {@code null} for none + */ + public ExtendedAttribute setAttributeSeenByConsumers(Attribute attributeSeenByConsumers) { + this.attributeSeenByConsumers = attributeSeenByConsumers; + return this; + } + + /** + * Output only. Detailed edit status and metadata for this specific attribute. + * @return value or {@code null} for none + */ + public ExtendedFieldData getExtendedFieldData() { + return extendedFieldData; + } + + /** + * Output only. Detailed edit status and metadata for this specific attribute. + * @param extendedFieldData extendedFieldData or {@code null} for none + */ + public ExtendedAttribute setExtendedFieldData(ExtendedFieldData extendedFieldData) { + this.extendedFieldData = extendedFieldData; + return this; + } + + @Override + public ExtendedAttribute set(String fieldName, Object value) { + return (ExtendedAttribute) super.set(fieldName, value); + } + + @Override + public ExtendedAttribute clone() { + return (ExtendedAttribute) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttributes.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttributes.java new file mode 100644 index 00000000000..a2c5091ecf9 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedAttributes.java @@ -0,0 +1,100 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response message for AttributesService.GetExtendedAttributes. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtendedAttributes extends com.google.api.client.json.GenericJson { + + /** + * Output only. The attributes with extended metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List extendedAttributes; + + static { + // hack to force ProGuard to consider ExtendedAttribute used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtendedAttribute.class); + } + + /** + * Output only. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The attributes with extended metadata. + * @return value or {@code null} for none + */ + public java.util.List getExtendedAttributes() { + return extendedAttributes; + } + + /** + * Output only. The attributes with extended metadata. + * @param extendedAttributes extendedAttributes or {@code null} for none + */ + public ExtendedAttributes setExtendedAttributes(java.util.List extendedAttributes) { + this.extendedAttributes = extendedAttributes; + return this; + } + + /** + * Output only. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Google identifier for this location in the form of + * `locations/{location_id}/attributes`. + * @param name name or {@code null} for none + */ + public ExtendedAttributes setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public ExtendedAttributes set(String fieldName, Object value) { + return (ExtendedAttributes) super.set(fieldName, value); + } + + @Override + public ExtendedAttributes clone() { + return (ExtendedAttributes) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedFieldData.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedFieldData.java new file mode 100644 index 00000000000..b897c1282e2 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedFieldData.java @@ -0,0 +1,145 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents detailed metadata for an edit on a specific field/attribute. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtendedFieldData extends com.google.api.client.json.GenericJson { + + /** + * Output only. The current lifecycle stage of the merchant's most recent edit on this value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastEditLifecycleStage; + + /** + * Output only. Reason for rejection, only populated if `last_edit_lifecycle_stage` is + * `EDIT_LIFECYCLE_STAGE_REJECTED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rejectionReason; + + /** + * Output only. Origin source attribution of the most recent merchant edit. Not all edits will + * have a source specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. Timestamp of when the merchant's most recent edit was submitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The current lifecycle stage of the merchant's most recent edit on this value. + * @return value or {@code null} for none + */ + public java.lang.String getLastEditLifecycleStage() { + return lastEditLifecycleStage; + } + + /** + * Output only. The current lifecycle stage of the merchant's most recent edit on this value. + * @param lastEditLifecycleStage lastEditLifecycleStage or {@code null} for none + */ + public ExtendedFieldData setLastEditLifecycleStage(java.lang.String lastEditLifecycleStage) { + this.lastEditLifecycleStage = lastEditLifecycleStage; + return this; + } + + /** + * Output only. Reason for rejection, only populated if `last_edit_lifecycle_stage` is + * `EDIT_LIFECYCLE_STAGE_REJECTED`. + * @return value or {@code null} for none + */ + public java.lang.String getRejectionReason() { + return rejectionReason; + } + + /** + * Output only. Reason for rejection, only populated if `last_edit_lifecycle_stage` is + * `EDIT_LIFECYCLE_STAGE_REJECTED`. + * @param rejectionReason rejectionReason or {@code null} for none + */ + public ExtendedFieldData setRejectionReason(java.lang.String rejectionReason) { + this.rejectionReason = rejectionReason; + return this; + } + + /** + * Output only. Origin source attribution of the most recent merchant edit. Not all edits will + * have a source specified. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. Origin source attribution of the most recent merchant edit. Not all edits will + * have a source specified. + * @param source source or {@code null} for none + */ + public ExtendedFieldData setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. Timestamp of when the merchant's most recent edit was submitted. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp of when the merchant's most recent edit was submitted. + * @param updateTime updateTime or {@code null} for none + */ + public ExtendedFieldData setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ExtendedFieldData set(String fieldName, Object value) { + return (ExtendedFieldData) super.set(fieldName, value); + } + + @Override + public ExtendedFieldData clone() { + return (ExtendedFieldData) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedLocation.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedLocation.java new file mode 100644 index 00000000000..d4185c21926 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ExtendedLocation.java @@ -0,0 +1,130 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents a location along with its edit metadata and current serving state. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtendedLocation extends com.google.api.client.json.GenericJson { + + /** + * Output only. Extended field data, keyed by the name of a top-level field of the `Location` + * resource. Keys are always plain top-level field names, never nested field paths. Each top-level + * field is treated atomically, so if you change a subfield, this map will treat it as a change to + * the top-level field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map extendedFieldData; + + static { + // hack to force ProGuard to consider ExtendedFieldData used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtendedFieldData.class); + } + + /** + * Output only. The underlying location data managed by the merchant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Location locationProvidedByMerchant; + + /** + * Output only. The location data currently visible to consumers on Google Maps and Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Location locationSeenByConsumers; + + /** + * Output only. Extended field data, keyed by the name of a top-level field of the `Location` + * resource. Keys are always plain top-level field names, never nested field paths. Each top-level + * field is treated atomically, so if you change a subfield, this map will treat it as a change to + * the top-level field. + * @return value or {@code null} for none + */ + public java.util.Map getExtendedFieldData() { + return extendedFieldData; + } + + /** + * Output only. Extended field data, keyed by the name of a top-level field of the `Location` + * resource. Keys are always plain top-level field names, never nested field paths. Each top-level + * field is treated atomically, so if you change a subfield, this map will treat it as a change to + * the top-level field. + * @param extendedFieldData extendedFieldData or {@code null} for none + */ + public ExtendedLocation setExtendedFieldData(java.util.Map extendedFieldData) { + this.extendedFieldData = extendedFieldData; + return this; + } + + /** + * Output only. The underlying location data managed by the merchant. + * @return value or {@code null} for none + */ + public Location getLocationProvidedByMerchant() { + return locationProvidedByMerchant; + } + + /** + * Output only. The underlying location data managed by the merchant. + * @param locationProvidedByMerchant locationProvidedByMerchant or {@code null} for none + */ + public ExtendedLocation setLocationProvidedByMerchant(Location locationProvidedByMerchant) { + this.locationProvidedByMerchant = locationProvidedByMerchant; + return this; + } + + /** + * Output only. The location data currently visible to consumers on Google Maps and Search. + * @return value or {@code null} for none + */ + public Location getLocationSeenByConsumers() { + return locationSeenByConsumers; + } + + /** + * Output only. The location data currently visible to consumers on Google Maps and Search. + * @param locationSeenByConsumers locationSeenByConsumers or {@code null} for none + */ + public ExtendedLocation setLocationSeenByConsumers(Location locationSeenByConsumers) { + this.locationSeenByConsumers = locationSeenByConsumers; + return this; + } + + @Override + public ExtendedLocation set(String fieldName, Object value) { + return (ExtendedLocation) super.set(fieldName, value); + } + + @Override + public ExtendedLocation clone() { + return (ExtendedLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/FreeFormServiceItem.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/FreeFormServiceItem.java new file mode 100644 index 00000000000..6d24601eec1 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/FreeFormServiceItem.java @@ -0,0 +1,105 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents a free-form service offered by the merchant. These are services that are not exposed + * as part of our structure service data. The merchant manually enters the names for such services + * using a geomerchant surface. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FreeFormServiceItem extends com.google.api.client.json.GenericJson { + + /** + * Required. This field represents the category name (i.e. the category's stable ID). The + * `category` and `service_type_id` should match the possible combinations provided in the + * `Category` message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String category; + + /** + * Required. Language-tagged labels for the item. We recommend that item names be 140 characters + * or less, and descriptions 250 characters or less. This field should only be set if the input is + * a custom service item. Standardized service types should be updated using service_type_id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Label label; + + /** + * Required. This field represents the category name (i.e. the category's stable ID). The + * `category` and `service_type_id` should match the possible combinations provided in the + * `Category` message. + * @return value or {@code null} for none + */ + public java.lang.String getCategory() { + return category; + } + + /** + * Required. This field represents the category name (i.e. the category's stable ID). The + * `category` and `service_type_id` should match the possible combinations provided in the + * `Category` message. + * @param category category or {@code null} for none + */ + public FreeFormServiceItem setCategory(java.lang.String category) { + this.category = category; + return this; + } + + /** + * Required. Language-tagged labels for the item. We recommend that item names be 140 characters + * or less, and descriptions 250 characters or less. This field should only be set if the input is + * a custom service item. Standardized service types should be updated using service_type_id. + * @return value or {@code null} for none + */ + public Label getLabel() { + return label; + } + + /** + * Required. Language-tagged labels for the item. We recommend that item names be 140 characters + * or less, and descriptions 250 characters or less. This field should only be set if the input is + * a custom service item. Standardized service types should be updated using service_type_id. + * @param label label or {@code null} for none + */ + public FreeFormServiceItem setLabel(Label label) { + this.label = label; + return this; + } + + @Override + public FreeFormServiceItem set(String fieldName, Object value) { + return (FreeFormServiceItem) super.set(fieldName, value); + } + + @Override + public FreeFormServiceItem clone() { + return (FreeFormServiceItem) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleLocation.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleLocation.java new file mode 100644 index 00000000000..922d45697c3 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleLocation.java @@ -0,0 +1,122 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleLocation extends com.google.api.client.json.GenericJson { + + /** + * The sparsely populated Location information. This field can be re-used in CreateLocation if it + * is not currently claimed by a user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Location location; + + /** + * Resource name of this GoogleLocation, in the format `googleLocations/{googleLocationId}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * A URL that will redirect the user to the request admin rights UI. This field is only present if + * the location has already been claimed by any user, including the current user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestAdminRightsUri; + + /** + * The sparsely populated Location information. This field can be re-used in CreateLocation if it + * is not currently claimed by a user. + * @return value or {@code null} for none + */ + public Location getLocation() { + return location; + } + + /** + * The sparsely populated Location information. This field can be re-used in CreateLocation if it + * is not currently claimed by a user. + * @param location location or {@code null} for none + */ + public GoogleLocation setLocation(Location location) { + this.location = location; + return this; + } + + /** + * Resource name of this GoogleLocation, in the format `googleLocations/{googleLocationId}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name of this GoogleLocation, in the format `googleLocations/{googleLocationId}`. + * @param name name or {@code null} for none + */ + public GoogleLocation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A URL that will redirect the user to the request admin rights UI. This field is only present if + * the location has already been claimed by any user, including the current user. + * @return value or {@code null} for none + */ + public java.lang.String getRequestAdminRightsUri() { + return requestAdminRightsUri; + } + + /** + * A URL that will redirect the user to the request admin rights UI. This field is only present if + * the location has already been claimed by any user, including the current user. + * @param requestAdminRightsUri requestAdminRightsUri or {@code null} for none + */ + public GoogleLocation setRequestAdminRightsUri(java.lang.String requestAdminRightsUri) { + this.requestAdminRightsUri = requestAdminRightsUri; + return this; + } + + @Override + public GoogleLocation set(String fieldName, Object value) { + return (GoogleLocation) super.set(fieldName, value); + } + + @Override + public GoogleLocation clone() { + return (GoogleLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleUpdatedLocation.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleUpdatedLocation.java new file mode 100644 index 00000000000..b35d576e871 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/GoogleUpdatedLocation.java @@ -0,0 +1,128 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents the view of a location as it appears to consumers, which includes updates that are + * currently serving on Google Maps and Search. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleUpdatedLocation extends com.google.api.client.json.GenericJson { + + /** + * The fields where the values in the view as it appears to consumers are different than the + * merchant's information. To accept these changes, patch the location. To reject, patch with your + * preferred values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String diffMask; + + /** + * The Google-updated version of this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Location location; + + /** + * The fields where the merchant has provided an update that is currently in flight and hasn't yet + * been published to Maps and Search. This mask only tracks the status of the merchant's own + * edits, not external changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String pendingMask; + + /** + * The fields where the values in the view as it appears to consumers are different than the + * merchant's information. To accept these changes, patch the location. To reject, patch with your + * preferred values. + * @return value or {@code null} for none + */ + public String getDiffMask() { + return diffMask; + } + + /** + * The fields where the values in the view as it appears to consumers are different than the + * merchant's information. To accept these changes, patch the location. To reject, patch with your + * preferred values. + * @param diffMask diffMask or {@code null} for none + */ + public GoogleUpdatedLocation setDiffMask(String diffMask) { + this.diffMask = diffMask; + return this; + } + + /** + * The Google-updated version of this location. + * @return value or {@code null} for none + */ + public Location getLocation() { + return location; + } + + /** + * The Google-updated version of this location. + * @param location location or {@code null} for none + */ + public GoogleUpdatedLocation setLocation(Location location) { + this.location = location; + return this; + } + + /** + * The fields where the merchant has provided an update that is currently in flight and hasn't yet + * been published to Maps and Search. This mask only tracks the status of the merchant's own + * edits, not external changes. + * @return value or {@code null} for none + */ + public String getPendingMask() { + return pendingMask; + } + + /** + * The fields where the merchant has provided an update that is currently in flight and hasn't yet + * been published to Maps and Search. This mask only tracks the status of the merchant's own + * edits, not external changes. + * @param pendingMask pendingMask or {@code null} for none + */ + public GoogleUpdatedLocation setPendingMask(String pendingMask) { + this.pendingMask = pendingMask; + return this; + } + + @Override + public GoogleUpdatedLocation set(String fieldName, Object value) { + return (GoogleUpdatedLocation) super.set(fieldName, value); + } + + @Override + public GoogleUpdatedLocation clone() { + return (GoogleUpdatedLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Label.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Label.java new file mode 100644 index 00000000000..48ffdcca9f3 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Label.java @@ -0,0 +1,118 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Label to be used when displaying the price list, section, or item. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Label extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the price list, section, or item. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name for the price list, section, or item. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The BCP-47 language code that these strings apply for. Only one set of labels may be + * set per language. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Optional. Description of the price list, section, or item. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the price list, section, or item. + * @param description description or {@code null} for none + */ + public Label setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name for the price list, section, or item. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name for the price list, section, or item. + * @param displayName displayName or {@code null} for none + */ + public Label setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The BCP-47 language code that these strings apply for. Only one set of labels may be + * set per language. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Optional. The BCP-47 language code that these strings apply for. Only one set of labels may be + * set per language. + * @param languageCode languageCode or {@code null} for none + */ + public Label setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + @Override + public Label set(String fieldName, Object value) { + return (Label) super.set(fieldName, value); + } + + @Override + public Label clone() { + return (Label) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/LatLng.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/LatLng.java new file mode 100644 index 00000000000..7159ee1dfcd --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/LatLng.java @@ -0,0 +1,93 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to + * represent degrees latitude and degrees longitude. Unless specified otherwise, this object must + * conform to the WGS84 standard. Values must be within normalized ranges. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatLng extends com.google.api.client.json.GenericJson { + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double latitude; + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double longitude; + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * @return value or {@code null} for none + */ + public java.lang.Double getLatitude() { + return latitude; + } + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * @param latitude latitude or {@code null} for none + */ + public LatLng setLatitude(java.lang.Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * @return value or {@code null} for none + */ + public java.lang.Double getLongitude() { + return longitude; + } + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * @param longitude longitude or {@code null} for none + */ + public LatLng setLongitude(java.lang.Double longitude) { + this.longitude = longitude; + return this; + } + + @Override + public LatLng set(String fieldName, Object value) { + return (LatLng) super.set(fieldName, value); + } + + @Override + public LatLng clone() { + return (LatLng) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListAttributeMetadataResponse.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListAttributeMetadataResponse.java new file mode 100644 index 00000000000..4d0f10c7654 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListAttributeMetadataResponse.java @@ -0,0 +1,103 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response for AttributesService.ListAttributeMetadata. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAttributeMetadataResponse extends com.google.api.client.json.GenericJson { + + /** + * A collection of attribute metadata for the available attributes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attributeMetadata; + + static { + // hack to force ProGuard to consider AttributeMetadata used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AttributeMetadata.class); + } + + /** + * If the number of attributes exceeded the requested page size, this field will be populated with + * a token to fetch the next page of attributes on a subsequent call to `attributes.list`. If + * there are no more attributes, this field will not be present in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A collection of attribute metadata for the available attributes. + * @return value or {@code null} for none + */ + public java.util.List getAttributeMetadata() { + return attributeMetadata; + } + + /** + * A collection of attribute metadata for the available attributes. + * @param attributeMetadata attributeMetadata or {@code null} for none + */ + public ListAttributeMetadataResponse setAttributeMetadata(java.util.List attributeMetadata) { + this.attributeMetadata = attributeMetadata; + return this; + } + + /** + * If the number of attributes exceeded the requested page size, this field will be populated with + * a token to fetch the next page of attributes on a subsequent call to `attributes.list`. If + * there are no more attributes, this field will not be present in the response. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * If the number of attributes exceeded the requested page size, this field will be populated with + * a token to fetch the next page of attributes on a subsequent call to `attributes.list`. If + * there are no more attributes, this field will not be present in the response. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAttributeMetadataResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListAttributeMetadataResponse set(String fieldName, Object value) { + return (ListAttributeMetadataResponse) super.set(fieldName, value); + } + + @Override + public ListAttributeMetadataResponse clone() { + return (ListAttributeMetadataResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListCategoriesResponse.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListCategoriesResponse.java new file mode 100644 index 00000000000..419c5e0f5bb --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListCategoriesResponse.java @@ -0,0 +1,100 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response message for BusinessCategories.ListCategories. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListCategoriesResponse extends com.google.api.client.json.GenericJson { + + /** + * The matching categories based on the requested parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List categories; + + static { + // hack to force ProGuard to consider Category used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Category.class); + } + + /** + * If the number of categories exceeded the requested page size, this field will be populated with + * a token to fetch the next page of categories on a subsequent call to `ListCategories`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The matching categories based on the requested parameters. + * @return value or {@code null} for none + */ + public java.util.List getCategories() { + return categories; + } + + /** + * The matching categories based on the requested parameters. + * @param categories categories or {@code null} for none + */ + public ListCategoriesResponse setCategories(java.util.List categories) { + this.categories = categories; + return this; + } + + /** + * If the number of categories exceeded the requested page size, this field will be populated with + * a token to fetch the next page of categories on a subsequent call to `ListCategories`. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * If the number of categories exceeded the requested page size, this field will be populated with + * a token to fetch the next page of categories on a subsequent call to `ListCategories`. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListCategoriesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListCategoriesResponse set(String fieldName, Object value) { + return (ListCategoriesResponse) super.set(fieldName, value); + } + + @Override + public ListCategoriesResponse clone() { + return (ListCategoriesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListLocationsResponse.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListLocationsResponse.java new file mode 100644 index 00000000000..e28a51e77df --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ListLocationsResponse.java @@ -0,0 +1,124 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response message for Locations.ListLocations. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * If the number of locations exceeded the requested page size, this field is populated with a + * token to fetch the next page of locations on a subsequent call to `ListLocations`. If there are + * no more locations, this field is not present in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The approximate number of Locations in the list irrespective of pagination. This field will + * only be returned if `filter` is used as a query parameter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSize; + + /** + * The locations. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * The locations. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * If the number of locations exceeded the requested page size, this field is populated with a + * token to fetch the next page of locations on a subsequent call to `ListLocations`. If there are + * no more locations, this field is not present in the response. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * If the number of locations exceeded the requested page size, this field is populated with a + * token to fetch the next page of locations on a subsequent call to `ListLocations`. If there are + * no more locations, this field is not present in the response. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The approximate number of Locations in the list irrespective of pagination. This field will + * only be returned if `filter` is used as a query parameter. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSize() { + return totalSize; + } + + /** + * The approximate number of Locations in the list irrespective of pagination. This field will + * only be returned if `filter` is used as a query parameter. + * @param totalSize totalSize or {@code null} for none + */ + public ListLocationsResponse setTotalSize(java.lang.Integer totalSize) { + this.totalSize = totalSize; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Location.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Location.java new file mode 100644 index 00000000000..aa6531f2654 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Location.java @@ -0,0 +1,597 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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](/my- + * business/reference/rest/v4/categories) for a list of valid business categories. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Location extends com.google.api.client.json.GenericJson { + + /** + * Optional. Additional information that is surfaced in AdWords. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AdWordsLocationExtensions adWordsLocationExtensions; + + /** + * Optional. The different categories that describe the business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Categories categories; + + /** + * Optional. A collection of free-form strings to allow you to tag your business. These labels are + * NOT user facing; only you can see them. Must be between 1-255 characters per label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List labels; + + /** + * Immutable. The language of the location. Set during creation and not updateable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Optional. User-provided latitude and longitude. When creating a location, this field is ignored + * if the provided address geocodes successfully. This field is only returned on get requests if + * the user-provided `latlng` value was accepted during create, or the `latlng` value was updated + * through the Google Business Profile website. This field can only be updated by approved + * clients. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LatLng latlng; + + /** + * Output only. Additional non-user-editable information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Metadata metadata; + + /** + * Optional. More hours for a business's different departments or specific customers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List moreHours; + + /** + * Identifier. Google identifier for this location in the form: `locations/{location_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. A flag that indicates whether the location is currently open for business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OpenInfo openInfo; + + /** + * Optional. The different phone numbers that customers can use to get in touch with the business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PhoneNumbers phoneNumbers; + + /** + * Optional. Describes your business in your own voice and shares with users the unique story of + * your business and offerings. This field is required for all categories except lodging + * categories (e.g., hotels, motels, inns). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Profile profile; + + /** + * Optional. Operating hours for the business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BusinessHours regularHours; + + /** + * Optional. All locations and chain related to this one. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RelationshipData relationshipData; + + /** + * Optional. Service area businesses provide their service at the customer's location. If this + * business is a service area business, this field describes the area(s) serviced by the business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAreaBusiness serviceArea; + + /** + * Optional. List of services supported by merchants. A service can be haircut, install water + * heater, etc. Duplicated service items will be removed automatically. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceItems; + + /** + * Optional. Special hours for the business. This typically includes holiday hours, and other + * times outside of regular operating hours. These override regular business hours. This field + * cannot be set without regular hours. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SpecialHours specialHours; + + /** + * Optional. External identifier for this location, which must be unique within a given account. + * This is a means of associating the location with your own records. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storeCode; + + /** + * Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes + * located at remote locations are not acceptable. At this time, you can specify a maximum of five + * `address_lines` values in the address. This field should only be set for businesses that have a + * storefront. This field should not be set for locations of type `CUSTOMER_LOCATION_ONLY` but if + * set, any value provided will be discarded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PostalAddress storefrontAddress; + + /** + * Required. Location name should reflect your business's real-world name, as used consistently on + * your storefront, website, and stationery, and as known to customers. Any additional + * information, when relevant, can be included in other fields of the resource (for example, + * `Address`, `Categories`). Don't add unnecessary information to your name (for example, prefer + * "Google" over "Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing + * taglines, store codes, special characters, hours or closed/open status, phone numbers, website + * URLs, service/product information, location/address or directions, or containment information + * (for example, "Chase ATM in Duane Reade"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. A URL for this business. If possible, use a URL that represents this individual + * business location instead of a generic website/URL that represents all locations, or the brand. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String websiteUri; + + /** + * Optional. Additional information that is surfaced in AdWords. + * @return value or {@code null} for none + */ + public AdWordsLocationExtensions getAdWordsLocationExtensions() { + return adWordsLocationExtensions; + } + + /** + * Optional. Additional information that is surfaced in AdWords. + * @param adWordsLocationExtensions adWordsLocationExtensions or {@code null} for none + */ + public Location setAdWordsLocationExtensions(AdWordsLocationExtensions adWordsLocationExtensions) { + this.adWordsLocationExtensions = adWordsLocationExtensions; + return this; + } + + /** + * Optional. The different categories that describe the business. + * @return value or {@code null} for none + */ + public Categories getCategories() { + return categories; + } + + /** + * Optional. The different categories that describe the business. + * @param categories categories or {@code null} for none + */ + public Location setCategories(Categories categories) { + this.categories = categories; + return this; + } + + /** + * Optional. A collection of free-form strings to allow you to tag your business. These labels are + * NOT user facing; only you can see them. Must be between 1-255 characters per label. + * @return value or {@code null} for none + */ + public java.util.List getLabels() { + return labels; + } + + /** + * Optional. A collection of free-form strings to allow you to tag your business. These labels are + * NOT user facing; only you can see them. Must be between 1-255 characters per label. + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.List labels) { + this.labels = labels; + return this; + } + + /** + * Immutable. The language of the location. Set during creation and not updateable. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Immutable. The language of the location. Set during creation and not updateable. + * @param languageCode languageCode or {@code null} for none + */ + public Location setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Optional. User-provided latitude and longitude. When creating a location, this field is ignored + * if the provided address geocodes successfully. This field is only returned on get requests if + * the user-provided `latlng` value was accepted during create, or the `latlng` value was updated + * through the Google Business Profile website. This field can only be updated by approved + * clients. + * @return value or {@code null} for none + */ + public LatLng getLatlng() { + return latlng; + } + + /** + * Optional. User-provided latitude and longitude. When creating a location, this field is ignored + * if the provided address geocodes successfully. This field is only returned on get requests if + * the user-provided `latlng` value was accepted during create, or the `latlng` value was updated + * through the Google Business Profile website. This field can only be updated by approved + * clients. + * @param latlng latlng or {@code null} for none + */ + public Location setLatlng(LatLng latlng) { + this.latlng = latlng; + return this; + } + + /** + * Output only. Additional non-user-editable information. + * @return value or {@code null} for none + */ + public Metadata getMetadata() { + return metadata; + } + + /** + * Output only. Additional non-user-editable information. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(Metadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Optional. More hours for a business's different departments or specific customers. + * @return value or {@code null} for none + */ + public java.util.List getMoreHours() { + return moreHours; + } + + /** + * Optional. More hours for a business's different departments or specific customers. + * @param moreHours moreHours or {@code null} for none + */ + public Location setMoreHours(java.util.List moreHours) { + this.moreHours = moreHours; + return this; + } + + /** + * Identifier. Google identifier for this location in the form: `locations/{location_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Google identifier for this location in the form: `locations/{location_id}`. + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. A flag that indicates whether the location is currently open for business. + * @return value or {@code null} for none + */ + public OpenInfo getOpenInfo() { + return openInfo; + } + + /** + * Optional. A flag that indicates whether the location is currently open for business. + * @param openInfo openInfo or {@code null} for none + */ + public Location setOpenInfo(OpenInfo openInfo) { + this.openInfo = openInfo; + return this; + } + + /** + * Optional. The different phone numbers that customers can use to get in touch with the business. + * @return value or {@code null} for none + */ + public PhoneNumbers getPhoneNumbers() { + return phoneNumbers; + } + + /** + * Optional. The different phone numbers that customers can use to get in touch with the business. + * @param phoneNumbers phoneNumbers or {@code null} for none + */ + public Location setPhoneNumbers(PhoneNumbers phoneNumbers) { + this.phoneNumbers = phoneNumbers; + return this; + } + + /** + * Optional. Describes your business in your own voice and shares with users the unique story of + * your business and offerings. This field is required for all categories except lodging + * categories (e.g., hotels, motels, inns). + * @return value or {@code null} for none + */ + public Profile getProfile() { + return profile; + } + + /** + * Optional. Describes your business in your own voice and shares with users the unique story of + * your business and offerings. This field is required for all categories except lodging + * categories (e.g., hotels, motels, inns). + * @param profile profile or {@code null} for none + */ + public Location setProfile(Profile profile) { + this.profile = profile; + return this; + } + + /** + * Optional. Operating hours for the business. + * @return value or {@code null} for none + */ + public BusinessHours getRegularHours() { + return regularHours; + } + + /** + * Optional. Operating hours for the business. + * @param regularHours regularHours or {@code null} for none + */ + public Location setRegularHours(BusinessHours regularHours) { + this.regularHours = regularHours; + return this; + } + + /** + * Optional. All locations and chain related to this one. + * @return value or {@code null} for none + */ + public RelationshipData getRelationshipData() { + return relationshipData; + } + + /** + * Optional. All locations and chain related to this one. + * @param relationshipData relationshipData or {@code null} for none + */ + public Location setRelationshipData(RelationshipData relationshipData) { + this.relationshipData = relationshipData; + return this; + } + + /** + * Optional. Service area businesses provide their service at the customer's location. If this + * business is a service area business, this field describes the area(s) serviced by the business. + * @return value or {@code null} for none + */ + public ServiceAreaBusiness getServiceArea() { + return serviceArea; + } + + /** + * Optional. Service area businesses provide their service at the customer's location. If this + * business is a service area business, this field describes the area(s) serviced by the business. + * @param serviceArea serviceArea or {@code null} for none + */ + public Location setServiceArea(ServiceAreaBusiness serviceArea) { + this.serviceArea = serviceArea; + return this; + } + + /** + * Optional. List of services supported by merchants. A service can be haircut, install water + * heater, etc. Duplicated service items will be removed automatically. + * @return value or {@code null} for none + */ + public java.util.List getServiceItems() { + return serviceItems; + } + + /** + * Optional. List of services supported by merchants. A service can be haircut, install water + * heater, etc. Duplicated service items will be removed automatically. + * @param serviceItems serviceItems or {@code null} for none + */ + public Location setServiceItems(java.util.List serviceItems) { + this.serviceItems = serviceItems; + return this; + } + + /** + * Optional. Special hours for the business. This typically includes holiday hours, and other + * times outside of regular operating hours. These override regular business hours. This field + * cannot be set without regular hours. + * @return value or {@code null} for none + */ + public SpecialHours getSpecialHours() { + return specialHours; + } + + /** + * Optional. Special hours for the business. This typically includes holiday hours, and other + * times outside of regular operating hours. These override regular business hours. This field + * cannot be set without regular hours. + * @param specialHours specialHours or {@code null} for none + */ + public Location setSpecialHours(SpecialHours specialHours) { + this.specialHours = specialHours; + return this; + } + + /** + * Optional. External identifier for this location, which must be unique within a given account. + * This is a means of associating the location with your own records. + * @return value or {@code null} for none + */ + public java.lang.String getStoreCode() { + return storeCode; + } + + /** + * Optional. External identifier for this location, which must be unique within a given account. + * This is a means of associating the location with your own records. + * @param storeCode storeCode or {@code null} for none + */ + public Location setStoreCode(java.lang.String storeCode) { + this.storeCode = storeCode; + return this; + } + + /** + * Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes + * located at remote locations are not acceptable. At this time, you can specify a maximum of five + * `address_lines` values in the address. This field should only be set for businesses that have a + * storefront. This field should not be set for locations of type `CUSTOMER_LOCATION_ONLY` but if + * set, any value provided will be discarded. + * @return value or {@code null} for none + */ + public PostalAddress getStorefrontAddress() { + return storefrontAddress; + } + + /** + * Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes + * located at remote locations are not acceptable. At this time, you can specify a maximum of five + * `address_lines` values in the address. This field should only be set for businesses that have a + * storefront. This field should not be set for locations of type `CUSTOMER_LOCATION_ONLY` but if + * set, any value provided will be discarded. + * @param storefrontAddress storefrontAddress or {@code null} for none + */ + public Location setStorefrontAddress(PostalAddress storefrontAddress) { + this.storefrontAddress = storefrontAddress; + return this; + } + + /** + * Required. Location name should reflect your business's real-world name, as used consistently on + * your storefront, website, and stationery, and as known to customers. Any additional + * information, when relevant, can be included in other fields of the resource (for example, + * `Address`, `Categories`). Don't add unnecessary information to your name (for example, prefer + * "Google" over "Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing + * taglines, store codes, special characters, hours or closed/open status, phone numbers, website + * URLs, service/product information, location/address or directions, or containment information + * (for example, "Chase ATM in Duane Reade"). + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Required. Location name should reflect your business's real-world name, as used consistently on + * your storefront, website, and stationery, and as known to customers. Any additional + * information, when relevant, can be included in other fields of the resource (for example, + * `Address`, `Categories`). Don't add unnecessary information to your name (for example, prefer + * "Google" over "Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing + * taglines, store codes, special characters, hours or closed/open status, phone numbers, website + * URLs, service/product information, location/address or directions, or containment information + * (for example, "Chase ATM in Duane Reade"). + * @param title title or {@code null} for none + */ + public Location setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Optional. A URL for this business. If possible, use a URL that represents this individual + * business location instead of a generic website/URL that represents all locations, or the brand. + * @return value or {@code null} for none + */ + public java.lang.String getWebsiteUri() { + return websiteUri; + } + + /** + * Optional. A URL for this business. If possible, use a URL that represents this individual + * business location instead of a generic website/URL that represents all locations, or the brand. + * @param websiteUri websiteUri or {@code null} for none + */ + public Location setWebsiteUri(java.lang.String websiteUri) { + this.websiteUri = websiteUri; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Metadata.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Metadata.java new file mode 100644 index 00000000000..3a5625ce0e7 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Metadata.java @@ -0,0 +1,433 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Additional non-user-editable information about the location. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Metadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. Indicates whether the location can be deleted using the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canDelete; + + /** + * Output only. Indicates if the listing is eligible for business calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canHaveBusinessCalls; + + /** + * Output only. Indicates if the listing is eligible for food menu. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canHaveFoodMenus; + + /** + * Output only. Indicates if the listing can modify the service list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canModifyServiceList; + + /** + * Output only. Indicates whether the location can operate on Health data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canOperateHealthData; + + /** + * Output only. Deprecated: This field is no longer populated and will be removed in a future + * version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canOperateLocalPost; + + /** + * Output only. Indicates whether the location can operate on Lodging data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canOperateLodgingData; + + /** + * Output only. The location resource that this location duplicates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String duplicateLocation; + + /** + * Output only. Indicates whether the place ID associated with this location has updates that need + * to be updated or rejected by the client. If this boolean is set, you should call the + * `getGoogleUpdated` method to look up information that's needs to be verified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hasGoogleUpdated; + + /** + * Output only. Indicates whether any of this Location's properties are in the edit pending state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hasPendingEdits; + + /** + * Output only. Indicates if the listing has Voice of Merchant. If this boolean is false, you + * should call the locations.getVoiceOfMerchantState API to get details as to why they do not have + * Voice of Merchant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hasVoiceOfMerchant; + + /** + * Output only. Indicates whether the location is classified as a particularly personal place. + * This means there are restrictions on Location History features. If you believe this was a + * mistake, see the [help center article](https://support.google.com/business/answer/3480441). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isParticularlyPersonalPlace; + + /** + * Output only. A link to the location on Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mapsUri; + + /** + * Output only. A link to the page on Google Search where a customer can leave a review for the + * location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String newReviewUri; + + /** + * Output only. If this locationappears on Google Maps, this field is populated with the place ID + * for the location. This ID can be used in various Places APIs. This field can be set during + * Create calls, but not for Update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Output only. Indicates whether the location can be deleted using the API. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanDelete() { + return canDelete; + } + + /** + * Output only. Indicates whether the location can be deleted using the API. + * @param canDelete canDelete or {@code null} for none + */ + public Metadata setCanDelete(java.lang.Boolean canDelete) { + this.canDelete = canDelete; + return this; + } + + /** + * Output only. Indicates if the listing is eligible for business calls. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanHaveBusinessCalls() { + return canHaveBusinessCalls; + } + + /** + * Output only. Indicates if the listing is eligible for business calls. + * @param canHaveBusinessCalls canHaveBusinessCalls or {@code null} for none + */ + public Metadata setCanHaveBusinessCalls(java.lang.Boolean canHaveBusinessCalls) { + this.canHaveBusinessCalls = canHaveBusinessCalls; + return this; + } + + /** + * Output only. Indicates if the listing is eligible for food menu. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanHaveFoodMenus() { + return canHaveFoodMenus; + } + + /** + * Output only. Indicates if the listing is eligible for food menu. + * @param canHaveFoodMenus canHaveFoodMenus or {@code null} for none + */ + public Metadata setCanHaveFoodMenus(java.lang.Boolean canHaveFoodMenus) { + this.canHaveFoodMenus = canHaveFoodMenus; + return this; + } + + /** + * Output only. Indicates if the listing can modify the service list. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanModifyServiceList() { + return canModifyServiceList; + } + + /** + * Output only. Indicates if the listing can modify the service list. + * @param canModifyServiceList canModifyServiceList or {@code null} for none + */ + public Metadata setCanModifyServiceList(java.lang.Boolean canModifyServiceList) { + this.canModifyServiceList = canModifyServiceList; + return this; + } + + /** + * Output only. Indicates whether the location can operate on Health data. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanOperateHealthData() { + return canOperateHealthData; + } + + /** + * Output only. Indicates whether the location can operate on Health data. + * @param canOperateHealthData canOperateHealthData or {@code null} for none + */ + public Metadata setCanOperateHealthData(java.lang.Boolean canOperateHealthData) { + this.canOperateHealthData = canOperateHealthData; + return this; + } + + /** + * Output only. Deprecated: This field is no longer populated and will be removed in a future + * version. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanOperateLocalPost() { + return canOperateLocalPost; + } + + /** + * Output only. Deprecated: This field is no longer populated and will be removed in a future + * version. + * @param canOperateLocalPost canOperateLocalPost or {@code null} for none + */ + public Metadata setCanOperateLocalPost(java.lang.Boolean canOperateLocalPost) { + this.canOperateLocalPost = canOperateLocalPost; + return this; + } + + /** + * Output only. Indicates whether the location can operate on Lodging data. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanOperateLodgingData() { + return canOperateLodgingData; + } + + /** + * Output only. Indicates whether the location can operate on Lodging data. + * @param canOperateLodgingData canOperateLodgingData or {@code null} for none + */ + public Metadata setCanOperateLodgingData(java.lang.Boolean canOperateLodgingData) { + this.canOperateLodgingData = canOperateLodgingData; + return this; + } + + /** + * Output only. The location resource that this location duplicates. + * @return value or {@code null} for none + */ + public java.lang.String getDuplicateLocation() { + return duplicateLocation; + } + + /** + * Output only. The location resource that this location duplicates. + * @param duplicateLocation duplicateLocation or {@code null} for none + */ + public Metadata setDuplicateLocation(java.lang.String duplicateLocation) { + this.duplicateLocation = duplicateLocation; + return this; + } + + /** + * Output only. Indicates whether the place ID associated with this location has updates that need + * to be updated or rejected by the client. If this boolean is set, you should call the + * `getGoogleUpdated` method to look up information that's needs to be verified. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHasGoogleUpdated() { + return hasGoogleUpdated; + } + + /** + * Output only. Indicates whether the place ID associated with this location has updates that need + * to be updated or rejected by the client. If this boolean is set, you should call the + * `getGoogleUpdated` method to look up information that's needs to be verified. + * @param hasGoogleUpdated hasGoogleUpdated or {@code null} for none + */ + public Metadata setHasGoogleUpdated(java.lang.Boolean hasGoogleUpdated) { + this.hasGoogleUpdated = hasGoogleUpdated; + return this; + } + + /** + * Output only. Indicates whether any of this Location's properties are in the edit pending state. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHasPendingEdits() { + return hasPendingEdits; + } + + /** + * Output only. Indicates whether any of this Location's properties are in the edit pending state. + * @param hasPendingEdits hasPendingEdits or {@code null} for none + */ + public Metadata setHasPendingEdits(java.lang.Boolean hasPendingEdits) { + this.hasPendingEdits = hasPendingEdits; + return this; + } + + /** + * Output only. Indicates if the listing has Voice of Merchant. If this boolean is false, you + * should call the locations.getVoiceOfMerchantState API to get details as to why they do not have + * Voice of Merchant. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHasVoiceOfMerchant() { + return hasVoiceOfMerchant; + } + + /** + * Output only. Indicates if the listing has Voice of Merchant. If this boolean is false, you + * should call the locations.getVoiceOfMerchantState API to get details as to why they do not have + * Voice of Merchant. + * @param hasVoiceOfMerchant hasVoiceOfMerchant or {@code null} for none + */ + public Metadata setHasVoiceOfMerchant(java.lang.Boolean hasVoiceOfMerchant) { + this.hasVoiceOfMerchant = hasVoiceOfMerchant; + return this; + } + + /** + * Output only. Indicates whether the location is classified as a particularly personal place. + * This means there are restrictions on Location History features. If you believe this was a + * mistake, see the [help center article](https://support.google.com/business/answer/3480441). + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsParticularlyPersonalPlace() { + return isParticularlyPersonalPlace; + } + + /** + * Output only. Indicates whether the location is classified as a particularly personal place. + * This means there are restrictions on Location History features. If you believe this was a + * mistake, see the [help center article](https://support.google.com/business/answer/3480441). + * @param isParticularlyPersonalPlace isParticularlyPersonalPlace or {@code null} for none + */ + public Metadata setIsParticularlyPersonalPlace(java.lang.Boolean isParticularlyPersonalPlace) { + this.isParticularlyPersonalPlace = isParticularlyPersonalPlace; + return this; + } + + /** + * Output only. A link to the location on Maps. + * @return value or {@code null} for none + */ + public java.lang.String getMapsUri() { + return mapsUri; + } + + /** + * Output only. A link to the location on Maps. + * @param mapsUri mapsUri or {@code null} for none + */ + public Metadata setMapsUri(java.lang.String mapsUri) { + this.mapsUri = mapsUri; + return this; + } + + /** + * Output only. A link to the page on Google Search where a customer can leave a review for the + * location. + * @return value or {@code null} for none + */ + public java.lang.String getNewReviewUri() { + return newReviewUri; + } + + /** + * Output only. A link to the page on Google Search where a customer can leave a review for the + * location. + * @param newReviewUri newReviewUri or {@code null} for none + */ + public Metadata setNewReviewUri(java.lang.String newReviewUri) { + this.newReviewUri = newReviewUri; + return this; + } + + /** + * Output only. If this locationappears on Google Maps, this field is populated with the place ID + * for the location. This ID can be used in various Places APIs. This field can be set during + * Create calls, but not for Update. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * Output only. If this locationappears on Google Maps, this field is populated with the place ID + * for the location. This ID can be used in various Places APIs. This field can be set during + * Create calls, but not for Update. + * @param placeId placeId or {@code null} for none + */ + public Metadata setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + @Override + public Metadata set(String fieldName, Object value) { + return (Metadata) super.set(fieldName, value); + } + + @Override + public Metadata clone() { + return (Metadata) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Money.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Money.java new file mode 100644 index 00000000000..89ac4bc83ff --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Money.java @@ -0,0 +1,127 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents an amount of money with its currency type. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Money extends com.google.api.client.json.GenericJson { + + /** + * The three-letter currency code defined in ISO 4217. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currencyCode; + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long units; + + /** + * The three-letter currency code defined in ISO 4217. + * @return value or {@code null} for none + */ + public java.lang.String getCurrencyCode() { + return currencyCode; + } + + /** + * The three-letter currency code defined in ISO 4217. + * @param currencyCode currencyCode or {@code null} for none + */ + public Money setCurrencyCode(java.lang.String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @param nanos nanos or {@code null} for none + */ + public Money setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @return value or {@code null} for none + */ + public java.lang.Long getUnits() { + return units; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @param units units or {@code null} for none + */ + public Money setUnits(java.lang.Long units) { + this.units = units; + return this; + } + + @Override + public Money set(String fieldName, Object value) { + return (Money) super.set(fieldName, value); + } + + @Override + public Money clone() { + return (Money) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHours.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHours.java new file mode 100644 index 00000000000..4c3d17a98a1 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHours.java @@ -0,0 +1,97 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * The time periods during which a location is open for certain types of business. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MoreHours extends com.google.api.client.json.GenericJson { + + /** + * Required. Type of hours. Clients should call {#link businessCategories:BatchGet} to get + * supported hours types for categories of their locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hoursTypeId; + + /** + * Required. A collection of times that this location is open. Each period represents a range of + * hours when the location is open during the week. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List periods; + + /** + * Required. Type of hours. Clients should call {#link businessCategories:BatchGet} to get + * supported hours types for categories of their locations. + * @return value or {@code null} for none + */ + public java.lang.String getHoursTypeId() { + return hoursTypeId; + } + + /** + * Required. Type of hours. Clients should call {#link businessCategories:BatchGet} to get + * supported hours types for categories of their locations. + * @param hoursTypeId hoursTypeId or {@code null} for none + */ + public MoreHours setHoursTypeId(java.lang.String hoursTypeId) { + this.hoursTypeId = hoursTypeId; + return this; + } + + /** + * Required. A collection of times that this location is open. Each period represents a range of + * hours when the location is open during the week. + * @return value or {@code null} for none + */ + public java.util.List getPeriods() { + return periods; + } + + /** + * Required. A collection of times that this location is open. Each period represents a range of + * hours when the location is open during the week. + * @param periods periods or {@code null} for none + */ + public MoreHours setPeriods(java.util.List periods) { + this.periods = periods; + return this; + } + + @Override + public MoreHours set(String fieldName, Object value) { + return (MoreHours) super.set(fieldName, value); + } + + @Override + public MoreHours clone() { + return (MoreHours) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHoursType.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHoursType.java new file mode 100644 index 00000000000..4aa9bdd13cb --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/MoreHoursType.java @@ -0,0 +1,115 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * More hours types that a business can offers, in addition to its regular hours. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MoreHoursType extends com.google.api.client.json.GenericJson { + + /** + * Output only. The human-readable English display name for the hours type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. A stable ID provided by Google for this hours type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hoursTypeId; + + /** + * Output only. The human-readable localized display name for the hours type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localizedDisplayName; + + /** + * Output only. The human-readable English display name for the hours type. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The human-readable English display name for the hours type. + * @param displayName displayName or {@code null} for none + */ + public MoreHoursType setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. A stable ID provided by Google for this hours type. + * @return value or {@code null} for none + */ + public java.lang.String getHoursTypeId() { + return hoursTypeId; + } + + /** + * Output only. A stable ID provided by Google for this hours type. + * @param hoursTypeId hoursTypeId or {@code null} for none + */ + public MoreHoursType setHoursTypeId(java.lang.String hoursTypeId) { + this.hoursTypeId = hoursTypeId; + return this; + } + + /** + * Output only. The human-readable localized display name for the hours type. + * @return value or {@code null} for none + */ + public java.lang.String getLocalizedDisplayName() { + return localizedDisplayName; + } + + /** + * Output only. The human-readable localized display name for the hours type. + * @param localizedDisplayName localizedDisplayName or {@code null} for none + */ + public MoreHoursType setLocalizedDisplayName(java.lang.String localizedDisplayName) { + this.localizedDisplayName = localizedDisplayName; + return this; + } + + @Override + public MoreHoursType set(String fieldName, Object value) { + return (MoreHoursType) super.set(fieldName, value); + } + + @Override + public MoreHoursType clone() { + return (MoreHoursType) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/OpenInfo.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/OpenInfo.java new file mode 100644 index 00000000000..bc2f7e947e2 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/OpenInfo.java @@ -0,0 +1,124 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Information related to the opening state of the business. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OpenInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Indicates whether this business is eligible for re-open. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canReopen; + + /** + * Optional. The date on which the location first opened. If the exact day is not known, month and + * year only can be provided. The date must be in the past or be no more than one year in the + * future. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date openingDate; + + /** + * Required. Indicates whether or not the Location is currently open for business. All locations + * are open by default, unless updated to be closed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. Indicates whether this business is eligible for re-open. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanReopen() { + return canReopen; + } + + /** + * Output only. Indicates whether this business is eligible for re-open. + * @param canReopen canReopen or {@code null} for none + */ + public OpenInfo setCanReopen(java.lang.Boolean canReopen) { + this.canReopen = canReopen; + return this; + } + + /** + * Optional. The date on which the location first opened. If the exact day is not known, month and + * year only can be provided. The date must be in the past or be no more than one year in the + * future. + * @return value or {@code null} for none + */ + public Date getOpeningDate() { + return openingDate; + } + + /** + * Optional. The date on which the location first opened. If the exact day is not known, month and + * year only can be provided. The date must be in the past or be no more than one year in the + * future. + * @param openingDate openingDate or {@code null} for none + */ + public OpenInfo setOpeningDate(Date openingDate) { + this.openingDate = openingDate; + return this; + } + + /** + * Required. Indicates whether or not the Location is currently open for business. All locations + * are open by default, unless updated to be closed. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Required. Indicates whether or not the Location is currently open for business. All locations + * are open by default, unless updated to be closed. + * @param status status or {@code null} for none + */ + public OpenInfo setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public OpenInfo set(String fieldName, Object value) { + return (OpenInfo) super.set(fieldName, value); + } + + @Override + public OpenInfo clone() { + return (OpenInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PhoneNumbers.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PhoneNumbers.java new file mode 100644 index 00000000000..b70c66f75ba --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PhoneNumbers.java @@ -0,0 +1,103 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * A collection of phone numbers for the business. During updates, both fields must be set. Clients + * may not update just the primary or additional phone numbers using the update mask. International + * phone format is preferred, such as "+1 415 555 0132", see more in + * (https://developers.google.com/style/phone-numbers#international-phone-numbers). + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PhoneNumbers extends com.google.api.client.json.GenericJson { + + /** + * Optional. Up to two phone numbers (mobile or landline, no fax) at which your business can be + * called, in addition to your primary phone number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List additionalPhones; + + /** + * Required. A phone number that connects to your individual business location as directly as + * possible. Use a local phone number instead of a central, call center helpline number whenever + * possible. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String primaryPhone; + + /** + * Optional. Up to two phone numbers (mobile or landline, no fax) at which your business can be + * called, in addition to your primary phone number. + * @return value or {@code null} for none + */ + public java.util.List getAdditionalPhones() { + return additionalPhones; + } + + /** + * Optional. Up to two phone numbers (mobile or landline, no fax) at which your business can be + * called, in addition to your primary phone number. + * @param additionalPhones additionalPhones or {@code null} for none + */ + public PhoneNumbers setAdditionalPhones(java.util.List additionalPhones) { + this.additionalPhones = additionalPhones; + return this; + } + + /** + * Required. A phone number that connects to your individual business location as directly as + * possible. Use a local phone number instead of a central, call center helpline number whenever + * possible. + * @return value or {@code null} for none + */ + public java.lang.String getPrimaryPhone() { + return primaryPhone; + } + + /** + * Required. A phone number that connects to your individual business location as directly as + * possible. Use a local phone number instead of a central, call center helpline number whenever + * possible. + * @param primaryPhone primaryPhone or {@code null} for none + */ + public PhoneNumbers setPrimaryPhone(java.lang.String primaryPhone) { + this.primaryPhone = primaryPhone; + return this; + } + + @Override + public PhoneNumbers set(String fieldName, Object value) { + return (PhoneNumbers) super.set(fieldName, value); + } + + @Override + public PhoneNumbers clone() { + return (PhoneNumbers) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PlaceInfo.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PlaceInfo.java new file mode 100644 index 00000000000..1de4816173e --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PlaceInfo.java @@ -0,0 +1,94 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Defines an area that's represented by a place ID. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PlaceInfo extends com.google.api.client.json.GenericJson { + + /** + * Required. The ID of the place. Must correspond to a region. + * (https://developers.google.com/places/web-service/supported_types#table3) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Required. The localized name of the place. For example, `Scottsdale, AZ`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeName; + + /** + * Required. The ID of the place. Must correspond to a region. + * (https://developers.google.com/places/web-service/supported_types#table3) + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * Required. The ID of the place. Must correspond to a region. + * (https://developers.google.com/places/web-service/supported_types#table3) + * @param placeId placeId or {@code null} for none + */ + public PlaceInfo setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * Required. The localized name of the place. For example, `Scottsdale, AZ`. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceName() { + return placeName; + } + + /** + * Required. The localized name of the place. For example, `Scottsdale, AZ`. + * @param placeName placeName or {@code null} for none + */ + public PlaceInfo setPlaceName(java.lang.String placeName) { + this.placeName = placeName; + return this; + } + + @Override + public PlaceInfo set(String fieldName, Object value) { + return (PlaceInfo) super.set(fieldName, value); + } + + @Override + public PlaceInfo clone() { + return (PlaceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Places.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Places.java new file mode 100644 index 00000000000..1b7ef4d4554 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Places.java @@ -0,0 +1,73 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Defines the union of areas represented by a set of places. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Places extends com.google.api.client.json.GenericJson { + + /** + * Optional. The areas represented by place IDs. Limited to a maximum of 20 places. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List placeInfos; + + static { + // hack to force ProGuard to consider PlaceInfo used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(PlaceInfo.class); + } + + /** + * Optional. The areas represented by place IDs. Limited to a maximum of 20 places. + * @return value or {@code null} for none + */ + public java.util.List getPlaceInfos() { + return placeInfos; + } + + /** + * Optional. The areas represented by place IDs. Limited to a maximum of 20 places. + * @param placeInfos placeInfos or {@code null} for none + */ + public Places setPlaceInfos(java.util.List placeInfos) { + this.placeInfos = placeInfos; + return this; + } + + @Override + public Places set(String fieldName, Object value) { + return (Places) super.set(fieldName, value); + } + + @Override + public Places clone() { + return (Places) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PostalAddress.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PostalAddress.java new file mode 100644 index 00000000000..0c88e7206f3 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/PostalAddress.java @@ -0,0 +1,422 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents a postal address, such as for postal delivery or payments addresses. With a postal + * address, a postal service can deliver items to a premise, P.O. box, or similar. A postal address + * is not intended to model geographical locations like roads, towns, or mountains. In typical + * usage, an address would be created by user input or from importing existing data, depending on + * the type of process. Advice on address input or editing: - Use an internationalization-ready + * address widget such as https://github.com/google/libaddressinput. - Users should not be presented + * with UI elements for input or editing of fields outside countries where that field is used. For + * more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PostalAddress extends com.google.api.client.json.GenericJson { + + /** + * Unstructured address lines describing the lower levels of an address. Because values in + * `address_lines` do not have type information and may sometimes contain multiple values in a + * single field (for example, "Austin, TX"), it is important that the line order is clear. The + * order of address lines should be "envelope order" for the country or region of the address. In + * places where this can vary (for example, Japan), `address_language` is used to make it explicit + * (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In + * this way, the most specific line of an address can be selected based on the language. The + * minimum permitted structural representation of an address consists of a `region_code` with all + * remaining information placed in the `address_lines`. It would be possible to format such an + * address very approximately without geocoding, but no semantic reasoning could be made about any + * of the address components until it was at least partially resolved. Creating an address only + * containing a `region_code` and `address_lines` and then geocoding is the recommended way to + * handle completely unstructured addresses (as opposed to guessing which parts of the address + * should be localities or administrative areas). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List addressLines; + + /** + * Optional. Highest administrative subdivision which is used for postal addresses of a country or + * region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, + * this is the province and not the autonomous community (for example, "Barcelona" and not + * "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, + * in Switzerland, this should be left unpopulated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String administrativeArea; + + /** + * Optional. BCP-47 language code of the contents of this address (if known). This is often the UI + * language of the input form or is expected to match one of the languages used in the address' + * country/region, or their transliterated equivalents. This can affect formatting in certain + * countries, but is not critical to the correctness of the data and will never affect any + * validation or other non-formatting related operations. If this value is not known, it should be + * omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja- + * Latn", "en". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Optional. Generally refers to the city or town portion of the address. Examples: US city, IT + * comune, UK post town. In regions of the world where localities are not well defined or do not + * fit into this structure well, leave `locality` empty and use `address_lines`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locality; + + /** + * Optional. The name of the organization at the address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** + * Optional. Postal code of the address. Not all countries use or require postal codes to be + * present, but where they are used, they may trigger additional validation with other parts of + * the address (for example, state or zip code validation in the United States). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String postalCode; + + /** + * Optional. The recipient at the address. This field may, under certain circumstances, contain + * multiline information. For example, it might contain "care of" information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recipients; + + /** + * Required. CLDR region code of the country/region of the address. This is never inferred and it + * is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. + * Example: "CH" for Switzerland. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is the latest + * revision. All new revisions **must** be backward compatible with old revisions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer revision; + + /** + * Optional. Additional, country-specific, sorting code. This is not used in most regions. Where + * it is used, the value is either a string like "CEDEX", optionally followed by a number (for + * example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), + * "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sortingCode; + + /** + * Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or + * district. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sublocality; + + /** + * Unstructured address lines describing the lower levels of an address. Because values in + * `address_lines` do not have type information and may sometimes contain multiple values in a + * single field (for example, "Austin, TX"), it is important that the line order is clear. The + * order of address lines should be "envelope order" for the country or region of the address. In + * places where this can vary (for example, Japan), `address_language` is used to make it explicit + * (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In + * this way, the most specific line of an address can be selected based on the language. The + * minimum permitted structural representation of an address consists of a `region_code` with all + * remaining information placed in the `address_lines`. It would be possible to format such an + * address very approximately without geocoding, but no semantic reasoning could be made about any + * of the address components until it was at least partially resolved. Creating an address only + * containing a `region_code` and `address_lines` and then geocoding is the recommended way to + * handle completely unstructured addresses (as opposed to guessing which parts of the address + * should be localities or administrative areas). + * @return value or {@code null} for none + */ + public java.util.List getAddressLines() { + return addressLines; + } + + /** + * Unstructured address lines describing the lower levels of an address. Because values in + * `address_lines` do not have type information and may sometimes contain multiple values in a + * single field (for example, "Austin, TX"), it is important that the line order is clear. The + * order of address lines should be "envelope order" for the country or region of the address. In + * places where this can vary (for example, Japan), `address_language` is used to make it explicit + * (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In + * this way, the most specific line of an address can be selected based on the language. The + * minimum permitted structural representation of an address consists of a `region_code` with all + * remaining information placed in the `address_lines`. It would be possible to format such an + * address very approximately without geocoding, but no semantic reasoning could be made about any + * of the address components until it was at least partially resolved. Creating an address only + * containing a `region_code` and `address_lines` and then geocoding is the recommended way to + * handle completely unstructured addresses (as opposed to guessing which parts of the address + * should be localities or administrative areas). + * @param addressLines addressLines or {@code null} for none + */ + public PostalAddress setAddressLines(java.util.List addressLines) { + this.addressLines = addressLines; + return this; + } + + /** + * Optional. Highest administrative subdivision which is used for postal addresses of a country or + * region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, + * this is the province and not the autonomous community (for example, "Barcelona" and not + * "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, + * in Switzerland, this should be left unpopulated. + * @return value or {@code null} for none + */ + public java.lang.String getAdministrativeArea() { + return administrativeArea; + } + + /** + * Optional. Highest administrative subdivision which is used for postal addresses of a country or + * region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, + * this is the province and not the autonomous community (for example, "Barcelona" and not + * "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, + * in Switzerland, this should be left unpopulated. + * @param administrativeArea administrativeArea or {@code null} for none + */ + public PostalAddress setAdministrativeArea(java.lang.String administrativeArea) { + this.administrativeArea = administrativeArea; + return this; + } + + /** + * Optional. BCP-47 language code of the contents of this address (if known). This is often the UI + * language of the input form or is expected to match one of the languages used in the address' + * country/region, or their transliterated equivalents. This can affect formatting in certain + * countries, but is not critical to the correctness of the data and will never affect any + * validation or other non-formatting related operations. If this value is not known, it should be + * omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja- + * Latn", "en". + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Optional. BCP-47 language code of the contents of this address (if known). This is often the UI + * language of the input form or is expected to match one of the languages used in the address' + * country/region, or their transliterated equivalents. This can affect formatting in certain + * countries, but is not critical to the correctness of the data and will never affect any + * validation or other non-formatting related operations. If this value is not known, it should be + * omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja- + * Latn", "en". + * @param languageCode languageCode or {@code null} for none + */ + public PostalAddress setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Optional. Generally refers to the city or town portion of the address. Examples: US city, IT + * comune, UK post town. In regions of the world where localities are not well defined or do not + * fit into this structure well, leave `locality` empty and use `address_lines`. + * @return value or {@code null} for none + */ + public java.lang.String getLocality() { + return locality; + } + + /** + * Optional. Generally refers to the city or town portion of the address. Examples: US city, IT + * comune, UK post town. In regions of the world where localities are not well defined or do not + * fit into this structure well, leave `locality` empty and use `address_lines`. + * @param locality locality or {@code null} for none + */ + public PostalAddress setLocality(java.lang.String locality) { + this.locality = locality; + return this; + } + + /** + * Optional. The name of the organization at the address. + * @return value or {@code null} for none + */ + public java.lang.String getOrganization() { + return organization; + } + + /** + * Optional. The name of the organization at the address. + * @param organization organization or {@code null} for none + */ + public PostalAddress setOrganization(java.lang.String organization) { + this.organization = organization; + return this; + } + + /** + * Optional. Postal code of the address. Not all countries use or require postal codes to be + * present, but where they are used, they may trigger additional validation with other parts of + * the address (for example, state or zip code validation in the United States). + * @return value or {@code null} for none + */ + public java.lang.String getPostalCode() { + return postalCode; + } + + /** + * Optional. Postal code of the address. Not all countries use or require postal codes to be + * present, but where they are used, they may trigger additional validation with other parts of + * the address (for example, state or zip code validation in the United States). + * @param postalCode postalCode or {@code null} for none + */ + public PostalAddress setPostalCode(java.lang.String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** + * Optional. The recipient at the address. This field may, under certain circumstances, contain + * multiline information. For example, it might contain "care of" information. + * @return value or {@code null} for none + */ + public java.util.List getRecipients() { + return recipients; + } + + /** + * Optional. The recipient at the address. This field may, under certain circumstances, contain + * multiline information. For example, it might contain "care of" information. + * @param recipients recipients or {@code null} for none + */ + public PostalAddress setRecipients(java.util.List recipients) { + this.recipients = recipients; + return this; + } + + /** + * Required. CLDR region code of the country/region of the address. This is never inferred and it + * is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. + * Example: "CH" for Switzerland. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Required. CLDR region code of the country/region of the address. This is never inferred and it + * is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. + * Example: "CH" for Switzerland. + * @param regionCode regionCode or {@code null} for none + */ + public PostalAddress setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is the latest + * revision. All new revisions **must** be backward compatible with old revisions. + * @return value or {@code null} for none + */ + public java.lang.Integer getRevision() { + return revision; + } + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is the latest + * revision. All new revisions **must** be backward compatible with old revisions. + * @param revision revision or {@code null} for none + */ + public PostalAddress setRevision(java.lang.Integer revision) { + this.revision = revision; + return this; + } + + /** + * Optional. Additional, country-specific, sorting code. This is not used in most regions. Where + * it is used, the value is either a string like "CEDEX", optionally followed by a number (for + * example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), + * "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * @return value or {@code null} for none + */ + public java.lang.String getSortingCode() { + return sortingCode; + } + + /** + * Optional. Additional, country-specific, sorting code. This is not used in most regions. Where + * it is used, the value is either a string like "CEDEX", optionally followed by a number (for + * example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), + * "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * @param sortingCode sortingCode or {@code null} for none + */ + public PostalAddress setSortingCode(java.lang.String sortingCode) { + this.sortingCode = sortingCode; + return this; + } + + /** + * Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or + * district. + * @return value or {@code null} for none + */ + public java.lang.String getSublocality() { + return sublocality; + } + + /** + * Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or + * district. + * @param sublocality sublocality or {@code null} for none + */ + public PostalAddress setSublocality(java.lang.String sublocality) { + this.sublocality = sublocality; + return this; + } + + @Override + public PostalAddress set(String fieldName, Object value) { + return (PostalAddress) super.set(fieldName, value); + } + + @Override + public PostalAddress clone() { + return (PostalAddress) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Profile.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Profile.java new file mode 100644 index 00000000000..03c32e4c460 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/Profile.java @@ -0,0 +1,67 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * All information pertaining to the location's profile. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Profile extends com.google.api.client.json.GenericJson { + + /** + * Required. Description of the location in your own voice, not editable by anyone else. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Description of the location in your own voice, not editable by anyone else. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Required. Description of the location in your own voice, not editable by anyone else. + * @param description description or {@code null} for none + */ + public Profile setDescription(java.lang.String description) { + this.description = description; + return this; + } + + @Override + public Profile set(String fieldName, Object value) { + return (Profile) super.set(fieldName, value); + } + + @Override + public Profile clone() { + return (Profile) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelationshipData.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelationshipData.java new file mode 100644 index 00000000000..fe002954c23 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelationshipData.java @@ -0,0 +1,115 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Information of all parent and children locations related to this one. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RelationshipData extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of children locations that this location has relations with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childrenLocations; + + /** + * Optional. The resource name of the Chain that this location is member of. How to find Chain ID + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parentChain; + + /** + * Optional. The parent location that this location has relations with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RelevantLocation parentLocation; + + /** + * Optional. The list of children locations that this location has relations with. + * @return value or {@code null} for none + */ + public java.util.List getChildrenLocations() { + return childrenLocations; + } + + /** + * Optional. The list of children locations that this location has relations with. + * @param childrenLocations childrenLocations or {@code null} for none + */ + public RelationshipData setChildrenLocations(java.util.List childrenLocations) { + this.childrenLocations = childrenLocations; + return this; + } + + /** + * Optional. The resource name of the Chain that this location is member of. How to find Chain ID + * @return value or {@code null} for none + */ + public java.lang.String getParentChain() { + return parentChain; + } + + /** + * Optional. The resource name of the Chain that this location is member of. How to find Chain ID + * @param parentChain parentChain or {@code null} for none + */ + public RelationshipData setParentChain(java.lang.String parentChain) { + this.parentChain = parentChain; + return this; + } + + /** + * Optional. The parent location that this location has relations with. + * @return value or {@code null} for none + */ + public RelevantLocation getParentLocation() { + return parentLocation; + } + + /** + * Optional. The parent location that this location has relations with. + * @param parentLocation parentLocation or {@code null} for none + */ + public RelationshipData setParentLocation(RelevantLocation parentLocation) { + this.parentLocation = parentLocation; + return this; + } + + @Override + public RelationshipData set(String fieldName, Object value) { + return (RelationshipData) super.set(fieldName, value); + } + + @Override + public RelationshipData clone() { + return (RelationshipData) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelevantLocation.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelevantLocation.java new file mode 100644 index 00000000000..356ef8e8a04 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RelevantLocation.java @@ -0,0 +1,93 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Information about another location that is related to current one. The relation can be any one of + * DEPARTMENT_OF or INDEPENDENT_ESTABLISHMENT_OF, and the location specified here can be on either + * side (parent/child) of the location. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RelevantLocation extends com.google.api.client.json.GenericJson { + + /** + * Required. Specify the location that is on the other side of the relation by its placeID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Required. The type of the relationship. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String relationType; + + /** + * Required. Specify the location that is on the other side of the relation by its placeID. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * Required. Specify the location that is on the other side of the relation by its placeID. + * @param placeId placeId or {@code null} for none + */ + public RelevantLocation setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * Required. The type of the relationship. + * @return value or {@code null} for none + */ + public java.lang.String getRelationType() { + return relationType; + } + + /** + * Required. The type of the relationship. + * @param relationType relationType or {@code null} for none + */ + public RelevantLocation setRelationType(java.lang.String relationType) { + this.relationType = relationType; + return this; + } + + @Override + public RelevantLocation set(String fieldName, Object value) { + return (RelevantLocation) super.set(fieldName, value); + } + + @Override + public RelevantLocation clone() { + return (RelevantLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RepeatedEnumAttributeValue.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RepeatedEnumAttributeValue.java new file mode 100644 index 00000000000..b354a5a478b --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/RepeatedEnumAttributeValue.java @@ -0,0 +1,93 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Values for an attribute with a `value_type` of REPEATED_ENUM. This consists of two lists of value + * IDs: those that are set (true) and those that are unset (false). Values absent are considered + * unknown. At least one value must be specified. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RepeatedEnumAttributeValue extends com.google.api.client.json.GenericJson { + + /** + * Enum values that are set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List setValues; + + /** + * Enum values that are unset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unsetValues; + + /** + * Enum values that are set. + * @return value or {@code null} for none + */ + public java.util.List getSetValues() { + return setValues; + } + + /** + * Enum values that are set. + * @param setValues setValues or {@code null} for none + */ + public RepeatedEnumAttributeValue setSetValues(java.util.List setValues) { + this.setValues = setValues; + return this; + } + + /** + * Enum values that are unset. + * @return value or {@code null} for none + */ + public java.util.List getUnsetValues() { + return unsetValues; + } + + /** + * Enum values that are unset. + * @param unsetValues unsetValues or {@code null} for none + */ + public RepeatedEnumAttributeValue setUnsetValues(java.util.List unsetValues) { + this.unsetValues = unsetValues; + return this; + } + + @Override + public RepeatedEnumAttributeValue set(String fieldName, Object value) { + return (RepeatedEnumAttributeValue) super.set(fieldName, value); + } + + @Override + public RepeatedEnumAttributeValue clone() { + return (RepeatedEnumAttributeValue) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchChainsResponse.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchChainsResponse.java new file mode 100644 index 00000000000..19cc1dcba75 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchChainsResponse.java @@ -0,0 +1,76 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response message for Locations.SearchChains. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SearchChainsResponse extends com.google.api.client.json.GenericJson { + + /** + * Chains that match the queried chain_display_name in SearchChainsRequest. If there are no + * matches, this field will be empty. Results are listed in order of relevance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List chains; + + static { + // hack to force ProGuard to consider Chain used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Chain.class); + } + + /** + * Chains that match the queried chain_display_name in SearchChainsRequest. If there are no + * matches, this field will be empty. Results are listed in order of relevance. + * @return value or {@code null} for none + */ + public java.util.List getChains() { + return chains; + } + + /** + * Chains that match the queried chain_display_name in SearchChainsRequest. If there are no + * matches, this field will be empty. Results are listed in order of relevance. + * @param chains chains or {@code null} for none + */ + public SearchChainsResponse setChains(java.util.List chains) { + this.chains = chains; + return this; + } + + @Override + public SearchChainsResponse set(String fieldName, Object value) { + return (SearchChainsResponse) super.set(fieldName, value); + } + + @Override + public SearchChainsResponse clone() { + return (SearchChainsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsRequest.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsRequest.java new file mode 100644 index 00000000000..47e79092c92 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsRequest.java @@ -0,0 +1,124 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Request message for GoogleLocations.SearchGoogleLocations. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SearchGoogleLocationsRequest extends com.google.api.client.json.GenericJson { + + /** + * Location to search for. If provided, will find locations which match the provided location + * details, which must include a value for the title. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Location location; + + /** + * The number of matches to return. The default value is 3, with a maximum of 10. Note that + * latency may increase if more are requested. There is no pagination. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** + * Text query to search for. The search results from a query string will be less accurate than if + * providing an exact location, but can provide more inexact matches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String query; + + /** + * Location to search for. If provided, will find locations which match the provided location + * details, which must include a value for the title. + * @return value or {@code null} for none + */ + public Location getLocation() { + return location; + } + + /** + * Location to search for. If provided, will find locations which match the provided location + * details, which must include a value for the title. + * @param location location or {@code null} for none + */ + public SearchGoogleLocationsRequest setLocation(Location location) { + this.location = location; + return this; + } + + /** + * The number of matches to return. The default value is 3, with a maximum of 10. Note that + * latency may increase if more are requested. There is no pagination. + * @return value or {@code null} for none + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The number of matches to return. The default value is 3, with a maximum of 10. Note that + * latency may increase if more are requested. There is no pagination. + * @param pageSize pageSize or {@code null} for none + */ + public SearchGoogleLocationsRequest setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Text query to search for. The search results from a query string will be less accurate than if + * providing an exact location, but can provide more inexact matches. + * @return value or {@code null} for none + */ + public java.lang.String getQuery() { + return query; + } + + /** + * Text query to search for. The search results from a query string will be less accurate than if + * providing an exact location, but can provide more inexact matches. + * @param query query or {@code null} for none + */ + public SearchGoogleLocationsRequest setQuery(java.lang.String query) { + this.query = query; + return this; + } + + @Override + public SearchGoogleLocationsRequest set(String fieldName, Object value) { + return (SearchGoogleLocationsRequest) super.set(fieldName, value); + } + + @Override + public SearchGoogleLocationsRequest clone() { + return (SearchGoogleLocationsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsResponse.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsResponse.java new file mode 100644 index 00000000000..20ffd831ab6 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SearchGoogleLocationsResponse.java @@ -0,0 +1,76 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Response message for GoogleLocations.SearchGoogleLocations. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SearchGoogleLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A collection of GoogleLocations that are potential matches to the specified request, listed in + * order from most to least accuracy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List googleLocations; + + static { + // hack to force ProGuard to consider GoogleLocation used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleLocation.class); + } + + /** + * A collection of GoogleLocations that are potential matches to the specified request, listed in + * order from most to least accuracy. + * @return value or {@code null} for none + */ + public java.util.List getGoogleLocations() { + return googleLocations; + } + + /** + * A collection of GoogleLocations that are potential matches to the specified request, listed in + * order from most to least accuracy. + * @param googleLocations googleLocations or {@code null} for none + */ + public SearchGoogleLocationsResponse setGoogleLocations(java.util.List googleLocations) { + this.googleLocations = googleLocations; + return this; + } + + @Override + public SearchGoogleLocationsResponse set(String fieldName, Object value) { + return (SearchGoogleLocationsResponse) super.set(fieldName, value); + } + + @Override + public SearchGoogleLocationsResponse clone() { + return (SearchGoogleLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceAreaBusiness.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceAreaBusiness.java new file mode 100644 index 00000000000..c508bdc7375 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceAreaBusiness.java @@ -0,0 +1,143 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Service area businesses provide their service at the customer's location (for example, a + * locksmith or plumber). + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceAreaBusiness extends com.google.api.client.json.GenericJson { + + /** + * Required. Indicates the type of the service area business. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String businessType; + + /** + * Optional. The area that this business serves defined through a set of places. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Places places; + + /** + * Immutable. CLDR region code of the country/region that this service area business is based in. + * See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. + * Example: "CH" for Switzerland. This field is required for CUSTOMER_LOCATION_ONLY businesses, + * and is ignored otherwise. The region specified here can be different from regions for the areas + * that this business serves (e.g. service area businesses that provide services in regions other + * than the one that they are based in). If this location requires verification after creation, + * the address provided for verification purposes *must* be located within this region, and the + * business owner or their authorized representative *must* be able to receive postal mail at the + * provided verification address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** + * Required. Indicates the type of the service area business. + * @return value or {@code null} for none + */ + public java.lang.String getBusinessType() { + return businessType; + } + + /** + * Required. Indicates the type of the service area business. + * @param businessType businessType or {@code null} for none + */ + public ServiceAreaBusiness setBusinessType(java.lang.String businessType) { + this.businessType = businessType; + return this; + } + + /** + * Optional. The area that this business serves defined through a set of places. + * @return value or {@code null} for none + */ + public Places getPlaces() { + return places; + } + + /** + * Optional. The area that this business serves defined through a set of places. + * @param places places or {@code null} for none + */ + public ServiceAreaBusiness setPlaces(Places places) { + this.places = places; + return this; + } + + /** + * Immutable. CLDR region code of the country/region that this service area business is based in. + * See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. + * Example: "CH" for Switzerland. This field is required for CUSTOMER_LOCATION_ONLY businesses, + * and is ignored otherwise. The region specified here can be different from regions for the areas + * that this business serves (e.g. service area businesses that provide services in regions other + * than the one that they are based in). If this location requires verification after creation, + * the address provided for verification purposes *must* be located within this region, and the + * business owner or their authorized representative *must* be able to receive postal mail at the + * provided verification address. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Immutable. CLDR region code of the country/region that this service area business is based in. + * See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. + * Example: "CH" for Switzerland. This field is required for CUSTOMER_LOCATION_ONLY businesses, + * and is ignored otherwise. The region specified here can be different from regions for the areas + * that this business serves (e.g. service area businesses that provide services in regions other + * than the one that they are based in). If this location requires verification after creation, + * the address provided for verification purposes *must* be located within this region, and the + * business owner or their authorized representative *must* be able to receive postal mail at the + * provided verification address. + * @param regionCode regionCode or {@code null} for none + */ + public ServiceAreaBusiness setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + @Override + public ServiceAreaBusiness set(String fieldName, Object value) { + return (ServiceAreaBusiness) super.set(fieldName, value); + } + + @Override + public ServiceAreaBusiness clone() { + return (ServiceAreaBusiness) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceItem.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceItem.java new file mode 100644 index 00000000000..3a046149489 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceItem.java @@ -0,0 +1,122 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * A message that describes a single service item. It is used to describe the type of service that + * the merchant provides. For example, haircut can be a service. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceItem extends com.google.api.client.json.GenericJson { + + /** + * Optional. This field will be set case of free-form services data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FreeFormServiceItem freeFormServiceItem; + + /** + * Optional. Represents the monetary price of the service item. We recommend that currency_code + * and units should be set when including a price. This will be treated as a fixed price for the + * service item. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money price; + + /** + * Optional. This field will be set case of structured services data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StructuredServiceItem structuredServiceItem; + + /** + * Optional. This field will be set case of free-form services data. + * @return value or {@code null} for none + */ + public FreeFormServiceItem getFreeFormServiceItem() { + return freeFormServiceItem; + } + + /** + * Optional. This field will be set case of free-form services data. + * @param freeFormServiceItem freeFormServiceItem or {@code null} for none + */ + public ServiceItem setFreeFormServiceItem(FreeFormServiceItem freeFormServiceItem) { + this.freeFormServiceItem = freeFormServiceItem; + return this; + } + + /** + * Optional. Represents the monetary price of the service item. We recommend that currency_code + * and units should be set when including a price. This will be treated as a fixed price for the + * service item. + * @return value or {@code null} for none + */ + public Money getPrice() { + return price; + } + + /** + * Optional. Represents the monetary price of the service item. We recommend that currency_code + * and units should be set when including a price. This will be treated as a fixed price for the + * service item. + * @param price price or {@code null} for none + */ + public ServiceItem setPrice(Money price) { + this.price = price; + return this; + } + + /** + * Optional. This field will be set case of structured services data. + * @return value or {@code null} for none + */ + public StructuredServiceItem getStructuredServiceItem() { + return structuredServiceItem; + } + + /** + * Optional. This field will be set case of structured services data. + * @param structuredServiceItem structuredServiceItem or {@code null} for none + */ + public ServiceItem setStructuredServiceItem(StructuredServiceItem structuredServiceItem) { + this.structuredServiceItem = structuredServiceItem; + return this; + } + + @Override + public ServiceItem set(String fieldName, Object value) { + return (ServiceItem) super.set(fieldName, value); + } + + @Override + public ServiceItem clone() { + return (ServiceItem) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceType.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceType.java new file mode 100644 index 00000000000..4ba9379a6fd --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/ServiceType.java @@ -0,0 +1,91 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * A message describing a service type that the business offers. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceType extends com.google.api.client.json.GenericJson { + + /** + * Output only. The human-readable display name for the service type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. A stable ID (provided by Google) for this service type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceTypeId; + + /** + * Output only. The human-readable display name for the service type. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The human-readable display name for the service type. + * @param displayName displayName or {@code null} for none + */ + public ServiceType setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. A stable ID (provided by Google) for this service type. + * @return value or {@code null} for none + */ + public java.lang.String getServiceTypeId() { + return serviceTypeId; + } + + /** + * Output only. A stable ID (provided by Google) for this service type. + * @param serviceTypeId serviceTypeId or {@code null} for none + */ + public ServiceType setServiceTypeId(java.lang.String serviceTypeId) { + this.serviceTypeId = serviceTypeId; + return this; + } + + @Override + public ServiceType set(String fieldName, Object value) { + return (ServiceType) super.set(fieldName, value); + } + + @Override + public ServiceType clone() { + return (ServiceType) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHourPeriod.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHourPeriod.java new file mode 100644 index 00000000000..54d4145d1c0 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHourPeriod.java @@ -0,0 +1,187 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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 + * `open_time` and `start_date` must predate the `close_time` and `end_date`. The `close_time` and + * `end_date` can extend to 11:59 a.m. on the day after the specified `start_date`. For example, the + * following inputs are valid: start_date=2015-11-23, open_time=08:00, close_time=18:00 + * start_date=2015-11-23, end_date=2015-11-23, open_time=08:00, close_time=18:00 + * start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=11:59 The following + * inputs are not valid: start_date=2015-11-23, open_time=13:00, close_time=11:59 + * start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=12:00 + * start_date=2015-11-23, end_date=2015-11-25, open_time=08:00, close_time=18:00 + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SpecialHourPeriod extends com.google.api.client.json.GenericJson { + + /** + * Optional. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Must be specified if `closed` is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay closeTime; + + /** + * Optional. If true, `end_date`, `open_time`, and `close_time` are ignored, and the date + * specified in `start_date` is treated as the location being closed for the entire day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean closed; + + /** + * Optional. The calendar date this special hour period ends on. If `end_date` field is not set, + * default to the date specified in `start_date`. If set, this field must be equal to or at most 1 + * day after `start_date`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date endDate; + + /** + * Optional. Valid values are 00:00-24:00 where 24:00 represents midnight at the end of the + * specified day field. Must be specified if `closed` is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay openTime; + + /** + * Required. The calendar date this special hour period starts on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date startDate; + + /** + * Optional. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Must be specified if `closed` is false. + * @return value or {@code null} for none + */ + public TimeOfDay getCloseTime() { + return closeTime; + } + + /** + * Optional. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Must be specified if `closed` is false. + * @param closeTime closeTime or {@code null} for none + */ + public SpecialHourPeriod setCloseTime(TimeOfDay closeTime) { + this.closeTime = closeTime; + return this; + } + + /** + * Optional. If true, `end_date`, `open_time`, and `close_time` are ignored, and the date + * specified in `start_date` is treated as the location being closed for the entire day. + * @return value or {@code null} for none + */ + public java.lang.Boolean getClosed() { + return closed; + } + + /** + * Optional. If true, `end_date`, `open_time`, and `close_time` are ignored, and the date + * specified in `start_date` is treated as the location being closed for the entire day. + * @param closed closed or {@code null} for none + */ + public SpecialHourPeriod setClosed(java.lang.Boolean closed) { + this.closed = closed; + return this; + } + + /** + * Optional. The calendar date this special hour period ends on. If `end_date` field is not set, + * default to the date specified in `start_date`. If set, this field must be equal to or at most 1 + * day after `start_date`. + * @return value or {@code null} for none + */ + public Date getEndDate() { + return endDate; + } + + /** + * Optional. The calendar date this special hour period ends on. If `end_date` field is not set, + * default to the date specified in `start_date`. If set, this field must be equal to or at most 1 + * day after `start_date`. + * @param endDate endDate or {@code null} for none + */ + public SpecialHourPeriod setEndDate(Date endDate) { + this.endDate = endDate; + return this; + } + + /** + * Optional. Valid values are 00:00-24:00 where 24:00 represents midnight at the end of the + * specified day field. Must be specified if `closed` is false. + * @return value or {@code null} for none + */ + public TimeOfDay getOpenTime() { + return openTime; + } + + /** + * Optional. Valid values are 00:00-24:00 where 24:00 represents midnight at the end of the + * specified day field. Must be specified if `closed` is false. + * @param openTime openTime or {@code null} for none + */ + public SpecialHourPeriod setOpenTime(TimeOfDay openTime) { + this.openTime = openTime; + return this; + } + + /** + * Required. The calendar date this special hour period starts on. + * @return value or {@code null} for none + */ + public Date getStartDate() { + return startDate; + } + + /** + * Required. The calendar date this special hour period starts on. + * @param startDate startDate or {@code null} for none + */ + public SpecialHourPeriod setStartDate(Date startDate) { + this.startDate = startDate; + return this; + } + + @Override + public SpecialHourPeriod set(String fieldName, Object value) { + return (SpecialHourPeriod) super.set(fieldName, value); + } + + @Override + public SpecialHourPeriod clone() { + return (SpecialHourPeriod) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHours.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHours.java new file mode 100644 index 00000000000..50a653e85ef --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/SpecialHours.java @@ -0,0 +1,74 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents a set of time periods when a location's operational hours differ from its normal + * business hours. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SpecialHours extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of exceptions to the business's regular hours. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List specialHourPeriods; + + static { + // hack to force ProGuard to consider SpecialHourPeriod used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(SpecialHourPeriod.class); + } + + /** + * Required. A list of exceptions to the business's regular hours. + * @return value or {@code null} for none + */ + public java.util.List getSpecialHourPeriods() { + return specialHourPeriods; + } + + /** + * Required. A list of exceptions to the business's regular hours. + * @param specialHourPeriods specialHourPeriods or {@code null} for none + */ + public SpecialHours setSpecialHourPeriods(java.util.List specialHourPeriods) { + this.specialHourPeriods = specialHourPeriods; + return this; + } + + @Override + public SpecialHours set(String fieldName, Object value) { + return (SpecialHours) super.set(fieldName, value); + } + + @Override + public SpecialHours clone() { + return (SpecialHours) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/StructuredServiceItem.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/StructuredServiceItem.java new file mode 100644 index 00000000000..d2e23b5caf5 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/StructuredServiceItem.java @@ -0,0 +1,94 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Represents a structured service offered by the merchant. For eg: toilet_installation. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StructuredServiceItem extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of structured service item. The character limit is 300. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The `service_type_id` field is a Google provided unique ID that can be found in + * `ServiceType`. This information is provided by `BatchGetCategories` rpc service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceTypeId; + + /** + * Optional. Description of structured service item. The character limit is 300. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of structured service item. The character limit is 300. + * @param description description or {@code null} for none + */ + public StructuredServiceItem setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The `service_type_id` field is a Google provided unique ID that can be found in + * `ServiceType`. This information is provided by `BatchGetCategories` rpc service. + * @return value or {@code null} for none + */ + public java.lang.String getServiceTypeId() { + return serviceTypeId; + } + + /** + * Required. The `service_type_id` field is a Google provided unique ID that can be found in + * `ServiceType`. This information is provided by `BatchGetCategories` rpc service. + * @param serviceTypeId serviceTypeId or {@code null} for none + */ + public StructuredServiceItem setServiceTypeId(java.lang.String serviceTypeId) { + this.serviceTypeId = serviceTypeId; + return this; + } + + @Override + public StructuredServiceItem set(String fieldName, Object value) { + return (StructuredServiceItem) super.set(fieldName, value); + } + + @Override + public StructuredServiceItem clone() { + return (StructuredServiceItem) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimeOfDay.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimeOfDay.java new file mode 100644 index 00000000000..d1107f9f338 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimeOfDay.java @@ -0,0 +1,153 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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 + * `google.protobuf.Timestamp`. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeOfDay extends com.google.api.client.json.GenericJson { + + /** + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less + * than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like + * business closing time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer hours; + + /** + * Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minutes; + + /** + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal + * to 999,999,999. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or + * equal to 59. An API may allow the value 60 if it allows leap-seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer seconds; + + /** + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less + * than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like + * business closing time. + * @return value or {@code null} for none + */ + public java.lang.Integer getHours() { + return hours; + } + + /** + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less + * than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like + * business closing time. + * @param hours hours or {@code null} for none + */ + public TimeOfDay setHours(java.lang.Integer hours) { + this.hours = hours; + return this; + } + + /** + * Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinutes() { + return minutes; + } + + /** + * Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. + * @param minutes minutes or {@code null} for none + */ + public TimeOfDay setMinutes(java.lang.Integer minutes) { + this.minutes = minutes; + return this; + } + + /** + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal + * to 999,999,999. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal + * to 999,999,999. + * @param nanos nanos or {@code null} for none + */ + public TimeOfDay setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or + * equal to 59. An API may allow the value 60 if it allows leap-seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getSeconds() { + return seconds; + } + + /** + * Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or + * equal to 59. An API may allow the value 60 if it allows leap-seconds. + * @param seconds seconds or {@code null} for none + */ + public TimeOfDay setSeconds(java.lang.Integer seconds) { + this.seconds = seconds; + return this; + } + + @Override + public TimeOfDay set(String fieldName, Object value) { + return (TimeOfDay) super.set(fieldName, value); + } + + @Override + public TimeOfDay clone() { + return (TimeOfDay) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimePeriod.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimePeriod.java new file mode 100644 index 00000000000..6e0792f4254 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/TimePeriod.java @@ -0,0 +1,153 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * 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. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimePeriod extends com.google.api.client.json.GenericJson { + + /** + * Required. Indicates the day of the week this period ends on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String closeDay; + + /** + * Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Note: In Proto3 JSON mapping, default zero values (00:00) are omitted, + * producing `{}` for close_time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay closeTime; + + /** + * Required. Indicates the day of the week this period starts on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String openDay; + + /** + * Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Note: In Proto3 JSON mapping, default zero values (00:00) are omitted, + * producing `{}` for open_time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay openTime; + + /** + * Required. Indicates the day of the week this period ends on. + * @return value or {@code null} for none + */ + public java.lang.String getCloseDay() { + return closeDay; + } + + /** + * Required. Indicates the day of the week this period ends on. + * @param closeDay closeDay or {@code null} for none + */ + public TimePeriod setCloseDay(java.lang.String closeDay) { + this.closeDay = closeDay; + return this; + } + + /** + * Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Note: In Proto3 JSON mapping, default zero values (00:00) are omitted, + * producing `{}` for close_time. + * @return value or {@code null} for none + */ + public TimeOfDay getCloseTime() { + return closeTime; + } + + /** + * Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Note: In Proto3 JSON mapping, default zero values (00:00) are omitted, + * producing `{}` for close_time. + * @param closeTime closeTime or {@code null} for none + */ + public TimePeriod setCloseTime(TimeOfDay closeTime) { + this.closeTime = closeTime; + return this; + } + + /** + * Required. Indicates the day of the week this period starts on. + * @return value or {@code null} for none + */ + public java.lang.String getOpenDay() { + return openDay; + } + + /** + * Required. Indicates the day of the week this period starts on. + * @param openDay openDay or {@code null} for none + */ + public TimePeriod setOpenDay(java.lang.String openDay) { + this.openDay = openDay; + return this; + } + + /** + * Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Note: In Proto3 JSON mapping, default zero values (00:00) are omitted, + * producing `{}` for open_time. + * @return value or {@code null} for none + */ + public TimeOfDay getOpenTime() { + return openTime; + } + + /** + * Required. Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the + * specified day field. Note: In Proto3 JSON mapping, default zero values (00:00) are omitted, + * producing `{}` for open_time. + * @param openTime openTime or {@code null} for none + */ + public TimePeriod setOpenTime(TimeOfDay openTime) { + this.openTime = openTime; + return this; + } + + @Override + public TimePeriod set(String fieldName, Object value) { + return (TimePeriod) super.set(fieldName, value); + } + + @Override + public TimePeriod clone() { + return (TimePeriod) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/UriAttributeValue.java b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/UriAttributeValue.java new file mode 100644 index 00000000000..85ec42a64a6 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/com/google/api/services/mybusinessbusinessinformation/v1alpha/model/UriAttributeValue.java @@ -0,0 +1,67 @@ +/* + * 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.mybusinessbusinessinformation.v1alpha.model; + +/** + * Values for an attribute with a `value_type` of URL. + * + *

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 My Business Business Information API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UriAttributeValue extends com.google.api.client.json.GenericJson { + + /** + * Required. The proposed URI value for this attribute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Required. The proposed URI value for this attribute. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * Required. The proposed URI value for this attribute. + * @param uri uri or {@code null} for none + */ + public UriAttributeValue setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public UriAttributeValue set(String fieldName, Object value) { + return (UriAttributeValue) super.set(fieldName, value); + } + + @Override + public UriAttributeValue clone() { + return (UriAttributeValue) super.clone(); + } + +} diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/pom.xml b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/pom.xml new file mode 100644 index 00000000000..34cfc79a1b8 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-mybusinessbusinessinformation + v1alpha-rev20261108-2.9.2 + My Business Business Information API v1alpha-rev20261108-2.9.2 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.mybusinessbusinessinformation + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + My Business Business Information API ${project.version} + My Business Business Information API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.9.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.9.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-mybusinessbusinessinformation/v1alpha/README.md b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/README.md new file mode 100644 index 00000000000..dab67a311a2 --- /dev/null +++ b/clients/google-api-services-mybusinessbusinessinformation/v1alpha/README.md @@ -0,0 +1,44 @@ +# My Business Business Information API Client Library for Java + +The My Business Business Information API provides an interface for managing business information on Google. Note: If you have a quota of 0 after enabling the API, please request GBP API access at https://developers.google.com/my-business/content/prereqs#request-access. + +This page contains information about getting started with the My Business Business Information API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the My Business Business Information API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the My Business Business Information API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-mybusinessbusinessinformation + v1alpha-rev20261108-2.9.2 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-mybusinessbusinessinformation:v1alpha-rev20261108-2.9.2' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-mybusinessbusinessinformation/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/mybusinessbusinessinformation/v1/