Skip to content

Commit 34449d0

Browse files
1 parent 7024c08 commit 34449d0

11 files changed

+764
-6
lines changed

clients/google-api-services-checks/v1alpha/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-checks</artifactId>
25-
<version>v1alpha-rev20241025-2.0.0</version>
25+
<version>v1alpha-rev20241029-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-checks:v1alpha-rev20241025-2.0.0'
38+
implementation 'com.google.apis:google-api-services-checks:v1alpha-rev20241029-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-checks/v1alpha/2.0.0/com/google/api/services/checks/v1alpha/ChecksService.java

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,6 +1884,128 @@ public Get set(String parameterName, Object value) {
18841884
}
18851885
}
18861886

1887+
/**
1888+
* An accessor for creating requests from the Aisafety collection.
1889+
*
1890+
* <p>The typical use is:</p>
1891+
* <pre>
1892+
* {@code ChecksService checks = new ChecksService(...);}
1893+
* {@code ChecksService.Aisafety.List request = checks.aisafety().list(parameters ...)}
1894+
* </pre>
1895+
*
1896+
* @return the resource collection
1897+
*/
1898+
public Aisafety aisafety() {
1899+
return new Aisafety();
1900+
}
1901+
1902+
/**
1903+
* The "aisafety" collection of methods.
1904+
*/
1905+
public class Aisafety {
1906+
1907+
/**
1908+
* Analyze a piece of content with the provided set of policies.
1909+
*
1910+
* Create a request for the method "aisafety.classifyContent".
1911+
*
1912+
* This request holds the parameters needed by the checks server. After setting any optional
1913+
* parameters, call the {@link ClassifyContent#execute()} method to invoke the remote operation.
1914+
*
1915+
* @param content the {@link com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentRequest}
1916+
* @return the request
1917+
*/
1918+
public ClassifyContent classifyContent(com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentRequest content) throws java.io.IOException {
1919+
ClassifyContent result = new ClassifyContent(content);
1920+
initialize(result);
1921+
return result;
1922+
}
1923+
1924+
public class ClassifyContent extends ChecksServiceRequest<com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentResponse> {
1925+
1926+
private static final String REST_PATH = "v1alpha/aisafety:classifyContent";
1927+
1928+
/**
1929+
* Analyze a piece of content with the provided set of policies.
1930+
*
1931+
* Create a request for the method "aisafety.classifyContent".
1932+
*
1933+
* This request holds the parameters needed by the the checks server. After setting any optional
1934+
* parameters, call the {@link ClassifyContent#execute()} method to invoke the remote operation.
1935+
* <p> {@link ClassifyContent#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
1936+
* lientRequest)} must be called to initialize this instance immediately after invoking the
1937+
* constructor. </p>
1938+
*
1939+
* @param content the {@link com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentRequest}
1940+
* @since 1.13
1941+
*/
1942+
protected ClassifyContent(com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentRequest content) {
1943+
super(ChecksService.this, "POST", REST_PATH, content, com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentResponse.class);
1944+
}
1945+
1946+
@Override
1947+
public ClassifyContent set$Xgafv(java.lang.String $Xgafv) {
1948+
return (ClassifyContent) super.set$Xgafv($Xgafv);
1949+
}
1950+
1951+
@Override
1952+
public ClassifyContent setAccessToken(java.lang.String accessToken) {
1953+
return (ClassifyContent) super.setAccessToken(accessToken);
1954+
}
1955+
1956+
@Override
1957+
public ClassifyContent setAlt(java.lang.String alt) {
1958+
return (ClassifyContent) super.setAlt(alt);
1959+
}
1960+
1961+
@Override
1962+
public ClassifyContent setCallback(java.lang.String callback) {
1963+
return (ClassifyContent) super.setCallback(callback);
1964+
}
1965+
1966+
@Override
1967+
public ClassifyContent setFields(java.lang.String fields) {
1968+
return (ClassifyContent) super.setFields(fields);
1969+
}
1970+
1971+
@Override
1972+
public ClassifyContent setKey(java.lang.String key) {
1973+
return (ClassifyContent) super.setKey(key);
1974+
}
1975+
1976+
@Override
1977+
public ClassifyContent setOauthToken(java.lang.String oauthToken) {
1978+
return (ClassifyContent) super.setOauthToken(oauthToken);
1979+
}
1980+
1981+
@Override
1982+
public ClassifyContent setPrettyPrint(java.lang.Boolean prettyPrint) {
1983+
return (ClassifyContent) super.setPrettyPrint(prettyPrint);
1984+
}
1985+
1986+
@Override
1987+
public ClassifyContent setQuotaUser(java.lang.String quotaUser) {
1988+
return (ClassifyContent) super.setQuotaUser(quotaUser);
1989+
}
1990+
1991+
@Override
1992+
public ClassifyContent setUploadType(java.lang.String uploadType) {
1993+
return (ClassifyContent) super.setUploadType(uploadType);
1994+
}
1995+
1996+
@Override
1997+
public ClassifyContent setUploadProtocol(java.lang.String uploadProtocol) {
1998+
return (ClassifyContent) super.setUploadProtocol(uploadProtocol);
1999+
}
2000+
2001+
@Override
2002+
public ClassifyContent set(String parameterName, Object value) {
2003+
return (ClassifyContent) super.set(parameterName, value);
2004+
}
2005+
}
2006+
2007+
}
2008+
18872009
/**
18882010
* An accessor for creating requests from the Media collection.
18892011
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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.checks.v1alpha.model;
18+
19+
/**
20+
* Request proto for ClassifyContent RPC.
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 Checks API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleChecksAisafetyV1alphaClassifyContentRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Version of the classifier to use. If not specified, the latest version will be used.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String classifierVersion;
38+
39+
/**
40+
* Optional. Context about the input that will be used to help on the classification.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private GoogleChecksAisafetyV1alphaClassifyContentRequestContext context;
45+
46+
/**
47+
* Required. Content to be classified.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent input;
52+
53+
/**
54+
* Required. List of policies to classify against.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.util.List<GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig> policies;
59+
60+
/**
61+
* Optional. Version of the classifier to use. If not specified, the latest version will be used.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getClassifierVersion() {
65+
return classifierVersion;
66+
}
67+
68+
/**
69+
* Optional. Version of the classifier to use. If not specified, the latest version will be used.
70+
* @param classifierVersion classifierVersion or {@code null} for none
71+
*/
72+
public GoogleChecksAisafetyV1alphaClassifyContentRequest setClassifierVersion(java.lang.String classifierVersion) {
73+
this.classifierVersion = classifierVersion;
74+
return this;
75+
}
76+
77+
/**
78+
* Optional. Context about the input that will be used to help on the classification.
79+
* @return value or {@code null} for none
80+
*/
81+
public GoogleChecksAisafetyV1alphaClassifyContentRequestContext getContext() {
82+
return context;
83+
}
84+
85+
/**
86+
* Optional. Context about the input that will be used to help on the classification.
87+
* @param context context or {@code null} for none
88+
*/
89+
public GoogleChecksAisafetyV1alphaClassifyContentRequest setContext(GoogleChecksAisafetyV1alphaClassifyContentRequestContext context) {
90+
this.context = context;
91+
return this;
92+
}
93+
94+
/**
95+
* Required. Content to be classified.
96+
* @return value or {@code null} for none
97+
*/
98+
public GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent getInput() {
99+
return input;
100+
}
101+
102+
/**
103+
* Required. Content to be classified.
104+
* @param input input or {@code null} for none
105+
*/
106+
public GoogleChecksAisafetyV1alphaClassifyContentRequest setInput(GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent input) {
107+
this.input = input;
108+
return this;
109+
}
110+
111+
/**
112+
* Required. List of policies to classify against.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.util.List<GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig> getPolicies() {
116+
return policies;
117+
}
118+
119+
/**
120+
* Required. List of policies to classify against.
121+
* @param policies policies or {@code null} for none
122+
*/
123+
public GoogleChecksAisafetyV1alphaClassifyContentRequest setPolicies(java.util.List<GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig> policies) {
124+
this.policies = policies;
125+
return this;
126+
}
127+
128+
@Override
129+
public GoogleChecksAisafetyV1alphaClassifyContentRequest set(String fieldName, Object value) {
130+
return (GoogleChecksAisafetyV1alphaClassifyContentRequest) super.set(fieldName, value);
131+
}
132+
133+
@Override
134+
public GoogleChecksAisafetyV1alphaClassifyContentRequest clone() {
135+
return (GoogleChecksAisafetyV1alphaClassifyContentRequest) super.clone();
136+
}
137+
138+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.checks.v1alpha.model;
18+
19+
/**
20+
* Context about the input that will be used to help on the classification.
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 Checks API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleChecksAisafetyV1alphaClassifyContentRequestContext extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Prompt that generated the model response.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String prompt;
38+
39+
/**
40+
* Optional. Prompt that generated the model response.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getPrompt() {
44+
return prompt;
45+
}
46+
47+
/**
48+
* Optional. Prompt that generated the model response.
49+
* @param prompt prompt or {@code null} for none
50+
*/
51+
public GoogleChecksAisafetyV1alphaClassifyContentRequestContext setPrompt(java.lang.String prompt) {
52+
this.prompt = prompt;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleChecksAisafetyV1alphaClassifyContentRequestContext set(String fieldName, Object value) {
58+
return (GoogleChecksAisafetyV1alphaClassifyContentRequestContext) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleChecksAisafetyV1alphaClassifyContentRequestContext clone() {
63+
return (GoogleChecksAisafetyV1alphaClassifyContentRequestContext) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)