Skip to content

Commit ac015ce

Browse files
chore: regenerate recaptchaenterprise client (googleapis#19018)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml Tracking the compilation issue via b/309667927
1 parent 4879105 commit ac015ce

File tree

34 files changed

+1888
-202
lines changed

34 files changed

+1888
-202
lines changed

clients/google-api-services-recaptchaenterprise/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-recaptchaenterprise</artifactId>
25-
<version>v1-rev20231112-2.0.0</version>
25+
<version>v1-rev20241208-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-recaptchaenterprise:v1-rev20231112-2.0.0'
38+
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20241208-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-recaptchaenterprise/v1/2.0.0/com/google/api/services/recaptchaenterprise/v1/RecaptchaEnterprise.java

Lines changed: 660 additions & 75 deletions
Large diffs are not rendered by default.

clients/google-api-services-recaptchaenterprise/v1/2.0.0/com/google/api/services/recaptchaenterprise/v1/model/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public final class GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo exten
5454

5555
/**
5656
* Username of the account that is being verified. Deprecated. Customers should now provide the
57-
* hashed account ID field in Event.
57+
* `account_id` field in `event.user_info`.
5858
* The value may be {@code null}.
5959
*/
6060
@com.google.api.client.util.Key
@@ -115,7 +115,7 @@ public GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo setLatestVerifica
115115

116116
/**
117117
* Username of the account that is being verified. Deprecated. Customers should now provide the
118-
* hashed account ID field in Event.
118+
* `account_id` field in `event.user_info`.
119119
* @return value or {@code null} for none
120120
*/
121121
public java.lang.String getUsername() {
@@ -124,7 +124,7 @@ public java.lang.String getUsername() {
124124

125125
/**
126126
* Username of the account that is being verified. Deprecated. Customers should now provide the
127-
* hashed account ID field in Event.
127+
* `account_id` field in `event.user_info`.
128128
* @param username username or {@code null} for none
129129
*/
130130
public GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo setUsername(java.lang.String username) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.recaptchaenterprise.v1.model;
18+
19+
/**
20+
* The AddIpOverride request message.
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 reCAPTCHA Enterprise API. For a detailed explanation
24+
* 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 GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. IP override added to the key.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private GoogleCloudRecaptchaenterpriseV1IpOverrideData ipOverrideData;
39+
40+
/**
41+
* Required. IP override added to the key.
42+
* @return value or {@code null} for none
43+
*/
44+
public GoogleCloudRecaptchaenterpriseV1IpOverrideData getIpOverrideData() {
45+
return ipOverrideData;
46+
}
47+
48+
/**
49+
* Required. IP override added to the key.
50+
* @param ipOverrideData ipOverrideData or {@code null} for none
51+
*/
52+
public GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest setIpOverrideData(GoogleCloudRecaptchaenterpriseV1IpOverrideData ipOverrideData) {
53+
this.ipOverrideData = ipOverrideData;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest set(String fieldName, Object value) {
59+
return (GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest clone() {
64+
return (GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.recaptchaenterprise.v1.model;
18+
19+
/**
20+
* Response for AddIpOverride.
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 reCAPTCHA Enterprise API. For a detailed explanation
24+
* 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 GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse set(String fieldName, Object value) {
35+
return (GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse clone() {
40+
return (GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse) super.clone();
41+
}
42+
43+
}

clients/google-api-services-recaptchaenterprise/v1/2.0.0/com/google/api/services/recaptchaenterprise/v1/model/GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public final class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest ext
4040
private java.lang.String accountId;
4141

4242
/**
43-
* Optional. The annotation that will be assigned to the Event. This field can be left empty to
44-
* provide reasons that apply to an event without concluding whether the event is legitimate or
43+
* Optional. The annotation that is assigned to the Event. This field can be left empty to provide
44+
* reasons that apply to an event without concluding whether the event is legitimate or
4545
* fraudulent.
4646
* The value may be {@code null}.
4747
*/
@@ -94,8 +94,8 @@ public GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest setAccountId(ja
9494
}
9595

9696
/**
97-
* Optional. The annotation that will be assigned to the Event. This field can be left empty to
98-
* provide reasons that apply to an event without concluding whether the event is legitimate or
97+
* Optional. The annotation that is assigned to the Event. This field can be left empty to provide
98+
* reasons that apply to an event without concluding whether the event is legitimate or
9999
* fraudulent.
100100
* @return value or {@code null} for none
101101
*/
@@ -104,8 +104,8 @@ public java.lang.String getAnnotation() {
104104
}
105105

106106
/**
107-
* Optional. The annotation that will be assigned to the Event. This field can be left empty to
108-
* provide reasons that apply to an event without concluding whether the event is legitimate or
107+
* Optional. The annotation that is assigned to the Event. This field can be left empty to provide
108+
* reasons that apply to an event without concluding whether the event is legitimate or
109109
* fraudulent.
110110
* @param annotation annotation or {@code null} for none
111111
*/

clients/google-api-services-recaptchaenterprise/v1/2.0.0/com/google/api/services/recaptchaenterprise/v1/model/GoogleCloudRecaptchaenterpriseV1Assessment.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ public final class GoogleCloudRecaptchaenterpriseV1Assessment extends com.google
4545
@com.google.api.client.util.Key
4646
private GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo accountVerification;
4747

48+
/**
49+
* Optional. The environment creating the assessment. This describes your environment (the system
50+
* invoking CreateAssessment), NOT the environment of your user.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment assessmentEnvironment;
55+
4856
/**
4957
* Optional. The event being assessed.
5058
* The value may be {@code null}.
@@ -82,6 +90,14 @@ public final class GoogleCloudRecaptchaenterpriseV1Assessment extends com.google
8290
@com.google.api.client.util.Key
8391
private java.lang.String name;
8492

93+
/**
94+
* Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are
95+
* provided. Account defender and SMS toll fraud protection need to be enabled.
96+
* The value may be {@code null}.
97+
*/
98+
@com.google.api.client.util.Key
99+
private GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment phoneFraudAssessment;
100+
85101
/**
86102
* Optional. The private password leak verification field contains the parameters that are used to
87103
* to check for leaks privately without sharing user credentials.
@@ -140,6 +156,25 @@ public GoogleCloudRecaptchaenterpriseV1Assessment setAccountVerification(GoogleC
140156
return this;
141157
}
142158

159+
/**
160+
* Optional. The environment creating the assessment. This describes your environment (the system
161+
* invoking CreateAssessment), NOT the environment of your user.
162+
* @return value or {@code null} for none
163+
*/
164+
public GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment getAssessmentEnvironment() {
165+
return assessmentEnvironment;
166+
}
167+
168+
/**
169+
* Optional. The environment creating the assessment. This describes your environment (the system
170+
* invoking CreateAssessment), NOT the environment of your user.
171+
* @param assessmentEnvironment assessmentEnvironment or {@code null} for none
172+
*/
173+
public GoogleCloudRecaptchaenterpriseV1Assessment setAssessmentEnvironment(GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment assessmentEnvironment) {
174+
this.assessmentEnvironment = assessmentEnvironment;
175+
return this;
176+
}
177+
143178
/**
144179
* Optional. The event being assessed.
145180
* @return value or {@code null} for none
@@ -229,6 +264,25 @@ public GoogleCloudRecaptchaenterpriseV1Assessment setName(java.lang.String name)
229264
return this;
230265
}
231266

267+
/**
268+
* Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are
269+
* provided. Account defender and SMS toll fraud protection need to be enabled.
270+
* @return value or {@code null} for none
271+
*/
272+
public GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment getPhoneFraudAssessment() {
273+
return phoneFraudAssessment;
274+
}
275+
276+
/**
277+
* Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are
278+
* provided. Account defender and SMS toll fraud protection need to be enabled.
279+
* @param phoneFraudAssessment phoneFraudAssessment or {@code null} for none
280+
*/
281+
public GoogleCloudRecaptchaenterpriseV1Assessment setPhoneFraudAssessment(GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment phoneFraudAssessment) {
282+
this.phoneFraudAssessment = phoneFraudAssessment;
283+
return this;
284+
}
285+
232286
/**
233287
* Optional. The private password leak verification field contains the parameters that are used to
234288
* to check for leaks privately without sharing user credentials.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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.recaptchaenterprise.v1.model;
18+
19+
/**
20+
* The environment creating the assessment. This describes your environment (the system invoking
21+
* CreateAssessment), NOT the environment of your user.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation
25+
* see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. Identifies the client module initiating the CreateAssessment request. This can be the
36+
* link to the client module's project. Examples include: -
37+
* "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" -
38+
* "cloud.google.com/recaptcha/docs/implement-waf-akamai" -
39+
* "cloud.google.com/recaptcha/docs/implement-waf-cloudflare" - "wordpress.org/plugins/recaptcha-
40+
* something"
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String client;
45+
46+
/**
47+
* Optional. The version of the client module. For example, "1.0.0".
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String version;
52+
53+
/**
54+
* Optional. Identifies the client module initiating the CreateAssessment request. This can be the
55+
* link to the client module's project. Examples include: -
56+
* "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" -
57+
* "cloud.google.com/recaptcha/docs/implement-waf-akamai" -
58+
* "cloud.google.com/recaptcha/docs/implement-waf-cloudflare" - "wordpress.org/plugins/recaptcha-
59+
* something"
60+
* @return value or {@code null} for none
61+
*/
62+
public java.lang.String getClient() {
63+
return client;
64+
}
65+
66+
/**
67+
* Optional. Identifies the client module initiating the CreateAssessment request. This can be the
68+
* link to the client module's project. Examples include: -
69+
* "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" -
70+
* "cloud.google.com/recaptcha/docs/implement-waf-akamai" -
71+
* "cloud.google.com/recaptcha/docs/implement-waf-cloudflare" - "wordpress.org/plugins/recaptcha-
72+
* something"
73+
* @param client client or {@code null} for none
74+
*/
75+
public GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment setClient(java.lang.String client) {
76+
this.client = client;
77+
return this;
78+
}
79+
80+
/**
81+
* Optional. The version of the client module. For example, "1.0.0".
82+
* @return value or {@code null} for none
83+
*/
84+
public java.lang.String getVersion() {
85+
return version;
86+
}
87+
88+
/**
89+
* Optional. The version of the client module. For example, "1.0.0".
90+
* @param version version or {@code null} for none
91+
*/
92+
public GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment setVersion(java.lang.String version) {
93+
this.version = version;
94+
return this;
95+
}
96+
97+
@Override
98+
public GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment set(String fieldName, Object value) {
99+
return (GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment) super.set(fieldName, value);
100+
}
101+
102+
@Override
103+
public GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment clone() {
104+
return (GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment) super.clone();
105+
}
106+
107+
}

0 commit comments

Comments
 (0)