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
+
+ * 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: + *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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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: + *+ * 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.MapThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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 @@ +