Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-contactcenteraiplatform</artifactId>
<version>v1alpha1-rev20260423-2.9.2</version>
<version>v1alpha1-rev20261104-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-contactcenteraiplatform:v1alpha1-rev20260423-2.9.2'
implementation 'com.google.apis:google-api-services-contactcenteraiplatform:v1alpha1-rev20261104-2.9.2'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,215 @@ public Patch set(String parameterName, Object value) {
}
}

/**
* An accessor for creating requests from the PhoneNumbers collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code CCAIPlatform contactcenteraiplatform = new CCAIPlatform(...);}
* {@code CCAIPlatform.PhoneNumbers.List request = contactcenteraiplatform.phoneNumbers().list(parameters ...)}
* </pre>
*
* @return the resource collection
*/
public PhoneNumbers phoneNumbers() {
return new PhoneNumbers();
}

/**
* The "phoneNumbers" collection of methods.
*/
public class PhoneNumbers {

/**
* Lists phone numbers allocated to a single ContactCenter.
*
* Create a request for the method "phoneNumbers.list".
*
* This request holds the parameters needed by the contactcenteraiplatform server. After setting
* any optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. The parent ContactCenter resource name. Format:
* projects/{project}/locations/{location}/contactCenters/{contact_center}
* @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 CCAIPlatformRequest<com.google.api.services.contactcenteraiplatform.v1alpha1.model.ListPhoneNumbersResponse> {

private static final String REST_PATH = "v1alpha1/{+parent}/phoneNumbers";

private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$");

/**
* Lists phone numbers allocated to a single ContactCenter.
*
* Create a request for the method "phoneNumbers.list".
*
* This request holds the parameters needed by the the contactcenteraiplatform server. After
* setting any optional parameters, call the {@link List#execute()} method to invoke the remote
* operation. <p> {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. </p>
*
* @param parent Required. The parent ContactCenter resource name. Format:
* projects/{project}/locations/{location}/contactCenters/{contact_center}
* @since 1.13
*/
protected List(java.lang.String parent) {
super(CCAIPlatform.this, "GET", REST_PATH, null, com.google.api.services.contactcenteraiplatform.v1alpha1.model.ListPhoneNumbersResponse.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 " +
"^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$");
}
}

@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 parent ContactCenter resource name. Format:
* projects/{project}/locations/{location}/contactCenters/{contact_center}
*/
@com.google.api.client.util.Key
private java.lang.String parent;

/** Required. The parent ContactCenter resource name. Format:
projects/{project}/locations/{location}/contactCenters/{contact_center}
*/
public java.lang.String getParent() {
return parent;
}

/**
* Required. The parent ContactCenter resource name. Format:
* projects/{project}/locations/{location}/contactCenters/{contact_center}
*/
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 " +
"^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$");
}
this.parent = parent;
return this;
}

/**
* Optional. Requested page size. The maximum value is 1000; values above 1000 will be
* coerced to 1000. If unspecified, the default page size is 500.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;

/** Optional. Requested page size. The maximum value is 1000; values above 1000 will be coerced to
1000. If unspecified, the default page size is 500.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}

/**
* Optional. Requested page size. The maximum value is 1000; values above 1000 will be
* coerced to 1000. If unspecified, the default page size is 500.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}

/** Optional. Page token from a previous ListPhoneNumbers call. */
@com.google.api.client.util.Key
private java.lang.String pageToken;

/** Optional. Page token from a previous ListPhoneNumbers call.
*/
public java.lang.String getPageToken() {
return pageToken;
}

/** Optional. Page token from a previous ListPhoneNumbers call. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}

@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}

}
}
/**
* An accessor for creating requests from the Operations collection.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.contactcenteraiplatform.v1alpha1.model;

/**
* Response message for ListPhoneNumbers.
*
* <p> 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 Contact Center AI Platform API. For a detailed
* explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ListPhoneNumbersResponse extends com.google.api.client.json.GenericJson {

/**
* Token identifying the next page of results.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;

/**
* The list of phone numbers allocated to the ContactCenter.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<PhoneNumber> phoneNumbers;

/**
* Token identifying the next page of results.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}

/**
* Token identifying the next page of results.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public ListPhoneNumbersResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}

/**
* The list of phone numbers allocated to the ContactCenter.
* @return value or {@code null} for none
*/
public java.util.List<PhoneNumber> getPhoneNumbers() {
return phoneNumbers;
}

/**
* The list of phone numbers allocated to the ContactCenter.
* @param phoneNumbers phoneNumbers or {@code null} for none
*/
public ListPhoneNumbersResponse setPhoneNumbers(java.util.List<PhoneNumber> phoneNumbers) {
this.phoneNumbers = phoneNumbers;
return this;
}

@Override
public ListPhoneNumbersResponse set(String fieldName, Object value) {
return (ListPhoneNumbersResponse) super.set(fieldName, value);
}

@Override
public ListPhoneNumbersResponse clone() {
return (ListPhoneNumbersResponse) super.clone();
}

}
Loading
Loading