Skip to content

Commit 5dd48b2

Browse files
feat: Add new enum value, new filter in ListCustomersRequest of Cloud Channel API (#296)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 443474187 Source-Link: googleapis/googleapis@d4dd268 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ea6d793dd57571faa6442cc88db7e9ee6c54d70 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWVhNmQ3OTNkZDU3NTcxZmFhNjQ0MmNjODhkYjdlOWVlNmM1NGQ3MCJ9
1 parent d55b3dd commit 5dd48b2

12 files changed

Lines changed: 649 additions & 406 deletions

File tree

java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public final OperationsClient getOperationsClient() {
205205
* .setParent("parent-995424086")
206206
* .setPageSize(883849137)
207207
* .setPageToken("pageToken873572522")
208+
* .setFilter("filter-1274492040")
208209
* .build();
209210
* for (Customer element : cloudChannelServiceClient.listCustomers(request).iterateAll()) {
210211
* // doThingsWith(element);
@@ -243,6 +244,7 @@ public final ListCustomersPagedResponse listCustomers(ListCustomersRequest reque
243244
* .setParent("parent-995424086")
244245
* .setPageSize(883849137)
245246
* .setPageToken("pageToken873572522")
247+
* .setFilter("filter-1274492040")
246248
* .build();
247249
* ApiFuture<Customer> future =
248250
* cloudChannelServiceClient.listCustomersPagedCallable().futureCall(request);
@@ -282,6 +284,7 @@ public final ListCustomersPagedResponse listCustomers(ListCustomersRequest reque
282284
* .setParent("parent-995424086")
283285
* .setPageSize(883849137)
284286
* .setPageToken("pageToken873572522")
287+
* .setFilter("filter-1274492040")
285288
* .build();
286289
* while (true) {
287290
* ListCustomersResponse response =

java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public void listCustomersTest() throws Exception {
112112
.setParent("parent-995424086")
113113
.setPageSize(883849137)
114114
.setPageToken("pageToken873572522")
115+
.setFilter("filter-1274492040")
115116
.build();
116117

117118
ListCustomersPagedResponse pagedListResponse = client.listCustomers(request);
@@ -128,6 +129,7 @@ public void listCustomersTest() throws Exception {
128129
Assert.assertEquals(request.getParent(), actualRequest.getParent());
129130
Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
130131
Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
132+
Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
131133
Assert.assertTrue(
132134
channelProvider.isHeaderSent(
133135
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -145,6 +147,7 @@ public void listCustomersExceptionTest() throws Exception {
145147
.setParent("parent-995424086")
146148
.setPageSize(883849137)
147149
.setPageToken("pageToken873572522")
150+
.setFilter("filter-1274492040")
148151
.build();
149152
client.listCustomers(request);
150153
Assert.fail("No exception raised");

java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,8 @@ public int getSuspensionReasonsValue(int index) {
11311131
* Optional. This purchase order (PO) information is for resellers to use for their
11321132
* company tracking usage. If a purchaseOrderId value is given, it appears in
11331133
* the API responses and shows up in the invoice. The property accepts up to
1134-
* 80 plain text characters.
1134+
* 80 plain text characters. This is only supported for Google Workspace
1135+
* entitlements.
11351136
* </pre>
11361137
*
11371138
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -1157,7 +1158,8 @@ public java.lang.String getPurchaseOrderId() {
11571158
* Optional. This purchase order (PO) information is for resellers to use for their
11581159
* company tracking usage. If a purchaseOrderId value is given, it appears in
11591160
* the API responses and shows up in the invoice. The property accepts up to
1160-
* 80 plain text characters.
1161+
* 80 plain text characters. This is only supported for Google Workspace
1162+
* entitlements.
11611163
* </pre>
11621164
*
11631165
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -3411,7 +3413,8 @@ public Builder addAllSuspensionReasonsValue(java.lang.Iterable<java.lang.Integer
34113413
* Optional. This purchase order (PO) information is for resellers to use for their
34123414
* company tracking usage. If a purchaseOrderId value is given, it appears in
34133415
* the API responses and shows up in the invoice. The property accepts up to
3414-
* 80 plain text characters.
3416+
* 80 plain text characters. This is only supported for Google Workspace
3417+
* entitlements.
34153418
* </pre>
34163419
*
34173420
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -3436,7 +3439,8 @@ public java.lang.String getPurchaseOrderId() {
34363439
* Optional. This purchase order (PO) information is for resellers to use for their
34373440
* company tracking usage. If a purchaseOrderId value is given, it appears in
34383441
* the API responses and shows up in the invoice. The property accepts up to
3439-
* 80 plain text characters.
3442+
* 80 plain text characters. This is only supported for Google Workspace
3443+
* entitlements.
34403444
* </pre>
34413445
*
34423446
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -3461,7 +3465,8 @@ public com.google.protobuf.ByteString getPurchaseOrderIdBytes() {
34613465
* Optional. This purchase order (PO) information is for resellers to use for their
34623466
* company tracking usage. If a purchaseOrderId value is given, it appears in
34633467
* the API responses and shows up in the invoice. The property accepts up to
3464-
* 80 plain text characters.
3468+
* 80 plain text characters. This is only supported for Google Workspace
3469+
* entitlements.
34653470
* </pre>
34663471
*
34673472
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -3485,7 +3490,8 @@ public Builder setPurchaseOrderId(java.lang.String value) {
34853490
* Optional. This purchase order (PO) information is for resellers to use for their
34863491
* company tracking usage. If a purchaseOrderId value is given, it appears in
34873492
* the API responses and shows up in the invoice. The property accepts up to
3488-
* 80 plain text characters.
3493+
* 80 plain text characters. This is only supported for Google Workspace
3494+
* entitlements.
34893495
* </pre>
34903496
*
34913497
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -3505,7 +3511,8 @@ public Builder clearPurchaseOrderId() {
35053511
* Optional. This purchase order (PO) information is for resellers to use for their
35063512
* company tracking usage. If a purchaseOrderId value is given, it appears in
35073513
* the API responses and shows up in the invoice. The property accepts up to
3508-
* 80 plain text characters.
3514+
* 80 plain text characters. This is only supported for Google Workspace
3515+
* entitlements.
35093516
* </pre>
35103517
*
35113518
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>

java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ public interface EntitlementOrBuilder
346346
* Optional. This purchase order (PO) information is for resellers to use for their
347347
* company tracking usage. If a purchaseOrderId value is given, it appears in
348348
* the API responses and shows up in the invoice. The property accepts up to
349-
* 80 plain text characters.
349+
* 80 plain text characters. This is only supported for Google Workspace
350+
* entitlements.
350351
* </pre>
351352
*
352353
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -361,7 +362,8 @@ public interface EntitlementOrBuilder
361362
* Optional. This purchase order (PO) information is for resellers to use for their
362363
* company tracking usage. If a purchaseOrderId value is given, it appears in
363364
* the API responses and shows up in the invoice. The property accepts up to
364-
* 80 plain text characters.
365+
* 80 plain text characters. This is only supported for Google Workspace
366+
* entitlements.
365367
* </pre>
366368
*
367369
* <code>string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];</code>

0 commit comments

Comments
 (0)