Skip to content

Commit 7ffa29a

Browse files
1 parent 99b0572 commit 7ffa29a

File tree

7 files changed

+447
-6
lines changed

7 files changed

+447
-6
lines changed

clients/google-api-services-mybusinessverifications/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-mybusinessverifications</artifactId>
25-
<version>v1-rev20250615-2.0.0</version>
25+
<version>v1-rev20250721-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-mybusinessverifications:v1-rev20250615-2.0.0'
38+
implementation 'com.google.apis:google-api-services-mybusinessverifications:v1-rev20250721-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-mybusinessverifications/v1/2.0.0/com/google/api/services/mybusinessverifications/v1/MyBusinessVerifications.java

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,129 @@ public List set(String parameterName, Object value) {
893893
}
894894
}
895895

896+
/**
897+
* An accessor for creating requests from the VerificationTokens collection.
898+
*
899+
* <p>The typical use is:</p>
900+
* <pre>
901+
* {@code MyBusinessVerifications mybusinessverifications = new MyBusinessVerifications(...);}
902+
* {@code MyBusinessVerifications.VerificationTokens.List request = mybusinessverifications.verificationTokens().list(parameters ...)}
903+
* </pre>
904+
*
905+
* @return the resource collection
906+
*/
907+
public VerificationTokens verificationTokens() {
908+
return new VerificationTokens();
909+
}
910+
911+
/**
912+
* The "verificationTokens" collection of methods.
913+
*/
914+
public class VerificationTokens {
915+
916+
/**
917+
* Generate a token for the provided location data to verify the location.
918+
*
919+
* Create a request for the method "verificationTokens.generate".
920+
*
921+
* This request holds the parameters needed by the mybusinessverifications server. After setting
922+
* any optional parameters, call the {@link Generate#execute()} method to invoke the remote
923+
* operation.
924+
*
925+
* @param content the {@link com.google.api.services.mybusinessverifications.v1.model.GenerateInstantVerificationTokenRequest}
926+
* @return the request
927+
*/
928+
public Generate generate(com.google.api.services.mybusinessverifications.v1.model.GenerateInstantVerificationTokenRequest content) throws java.io.IOException {
929+
Generate result = new Generate(content);
930+
initialize(result);
931+
return result;
932+
}
933+
934+
public class Generate extends MyBusinessVerificationsRequest<com.google.api.services.mybusinessverifications.v1.model.GenerateInstantVerificationTokenResponse> {
935+
936+
private static final String REST_PATH = "v1/verificationTokens:generate";
937+
938+
/**
939+
* Generate a token for the provided location data to verify the location.
940+
*
941+
* Create a request for the method "verificationTokens.generate".
942+
*
943+
* This request holds the parameters needed by the the mybusinessverifications server. After
944+
* setting any optional parameters, call the {@link Generate#execute()} method to invoke the
945+
* remote operation. <p> {@link
946+
* Generate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
947+
* must be called to initialize this instance immediately after invoking the constructor. </p>
948+
*
949+
* @param content the {@link com.google.api.services.mybusinessverifications.v1.model.GenerateInstantVerificationTokenRequest}
950+
* @since 1.13
951+
*/
952+
protected Generate(com.google.api.services.mybusinessverifications.v1.model.GenerateInstantVerificationTokenRequest content) {
953+
super(MyBusinessVerifications.this, "POST", REST_PATH, content, com.google.api.services.mybusinessverifications.v1.model.GenerateInstantVerificationTokenResponse.class);
954+
}
955+
956+
@Override
957+
public Generate set$Xgafv(java.lang.String $Xgafv) {
958+
return (Generate) super.set$Xgafv($Xgafv);
959+
}
960+
961+
@Override
962+
public Generate setAccessToken(java.lang.String accessToken) {
963+
return (Generate) super.setAccessToken(accessToken);
964+
}
965+
966+
@Override
967+
public Generate setAlt(java.lang.String alt) {
968+
return (Generate) super.setAlt(alt);
969+
}
970+
971+
@Override
972+
public Generate setCallback(java.lang.String callback) {
973+
return (Generate) super.setCallback(callback);
974+
}
975+
976+
@Override
977+
public Generate setFields(java.lang.String fields) {
978+
return (Generate) super.setFields(fields);
979+
}
980+
981+
@Override
982+
public Generate setKey(java.lang.String key) {
983+
return (Generate) super.setKey(key);
984+
}
985+
986+
@Override
987+
public Generate setOauthToken(java.lang.String oauthToken) {
988+
return (Generate) super.setOauthToken(oauthToken);
989+
}
990+
991+
@Override
992+
public Generate setPrettyPrint(java.lang.Boolean prettyPrint) {
993+
return (Generate) super.setPrettyPrint(prettyPrint);
994+
}
995+
996+
@Override
997+
public Generate setQuotaUser(java.lang.String quotaUser) {
998+
return (Generate) super.setQuotaUser(quotaUser);
999+
}
1000+
1001+
@Override
1002+
public Generate setUploadType(java.lang.String uploadType) {
1003+
return (Generate) super.setUploadType(uploadType);
1004+
}
1005+
1006+
@Override
1007+
public Generate setUploadProtocol(java.lang.String uploadProtocol) {
1008+
return (Generate) super.setUploadProtocol(uploadProtocol);
1009+
}
1010+
1011+
@Override
1012+
public Generate set(String parameterName, Object value) {
1013+
return (Generate) super.set(parameterName, value);
1014+
}
1015+
}
1016+
1017+
}
1018+
8961019
/**
8971020
* Builder for {@link MyBusinessVerifications}.
8981021
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.mybusinessverifications.v1.model;
18+
19+
/**
20+
* Request message for Verifications.GenerateInstantVerificationToken.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the My Business Verifications API. For a detailed
24+
* explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GenerateInstantVerificationTokenRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Immutable. The address and other details of the location to generate an instant verification
35+
* token for.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private LocationData locationData;
40+
41+
/**
42+
* The location identifier associated with an unverified listing. This is the location id
43+
* generated at the time that the listing was originally created. It is the final portion of a
44+
* location resource name as generated by the Google My Business API. Note: the caller must be an
45+
* owner or manager of this listing in order to generate a verification token. See the [location
46+
* resource](/my-business/reference/rest/v4/accounts.locations) documentation for more
47+
* information.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String locationId;
52+
53+
/**
54+
* Immutable. The address and other details of the location to generate an instant verification
55+
* token for.
56+
* @return value or {@code null} for none
57+
*/
58+
public LocationData getLocationData() {
59+
return locationData;
60+
}
61+
62+
/**
63+
* Immutable. The address and other details of the location to generate an instant verification
64+
* token for.
65+
* @param locationData locationData or {@code null} for none
66+
*/
67+
public GenerateInstantVerificationTokenRequest setLocationData(LocationData locationData) {
68+
this.locationData = locationData;
69+
return this;
70+
}
71+
72+
/**
73+
* The location identifier associated with an unverified listing. This is the location id
74+
* generated at the time that the listing was originally created. It is the final portion of a
75+
* location resource name as generated by the Google My Business API. Note: the caller must be an
76+
* owner or manager of this listing in order to generate a verification token. See the [location
77+
* resource](/my-business/reference/rest/v4/accounts.locations) documentation for more
78+
* information.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.String getLocationId() {
82+
return locationId;
83+
}
84+
85+
/**
86+
* The location identifier associated with an unverified listing. This is the location id
87+
* generated at the time that the listing was originally created. It is the final portion of a
88+
* location resource name as generated by the Google My Business API. Note: the caller must be an
89+
* owner or manager of this listing in order to generate a verification token. See the [location
90+
* resource](/my-business/reference/rest/v4/accounts.locations) documentation for more
91+
* information.
92+
* @param locationId locationId or {@code null} for none
93+
*/
94+
public GenerateInstantVerificationTokenRequest setLocationId(java.lang.String locationId) {
95+
this.locationId = locationId;
96+
return this;
97+
}
98+
99+
@Override
100+
public GenerateInstantVerificationTokenRequest set(String fieldName, Object value) {
101+
return (GenerateInstantVerificationTokenRequest) super.set(fieldName, value);
102+
}
103+
104+
@Override
105+
public GenerateInstantVerificationTokenRequest clone() {
106+
return (GenerateInstantVerificationTokenRequest) super.clone();
107+
}
108+
109+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.mybusinessverifications.v1.model;
18+
19+
/**
20+
* Response message for Verifications.GenerateInstantVerificationToken.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the My Business Verifications API. For a detailed
24+
* explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GenerateInstantVerificationTokenResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The generated instant verification token.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String instantVerificationToken;
39+
40+
/**
41+
* Output only. The result of the instant verification token generation.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String result;
46+
47+
/**
48+
* The generated instant verification token.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getInstantVerificationToken() {
52+
return instantVerificationToken;
53+
}
54+
55+
/**
56+
* The generated instant verification token.
57+
* @param instantVerificationToken instantVerificationToken or {@code null} for none
58+
*/
59+
public GenerateInstantVerificationTokenResponse setInstantVerificationToken(java.lang.String instantVerificationToken) {
60+
this.instantVerificationToken = instantVerificationToken;
61+
return this;
62+
}
63+
64+
/**
65+
* Output only. The result of the instant verification token generation.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.String getResult() {
69+
return result;
70+
}
71+
72+
/**
73+
* Output only. The result of the instant verification token generation.
74+
* @param result result or {@code null} for none
75+
*/
76+
public GenerateInstantVerificationTokenResponse setResult(java.lang.String result) {
77+
this.result = result;
78+
return this;
79+
}
80+
81+
@Override
82+
public GenerateInstantVerificationTokenResponse set(String fieldName, Object value) {
83+
return (GenerateInstantVerificationTokenResponse) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GenerateInstantVerificationTokenResponse clone() {
88+
return (GenerateInstantVerificationTokenResponse) super.clone();
89+
}
90+
91+
}

0 commit comments

Comments
 (0)