Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit b111739

Browse files
feat(v2beta1): remote MixedAudio from ResponseMessage (#469)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/97fdefc3-9d48-4454-b54e-2d2e7f04a40c/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: googleapis/googleapis@0e91521 PiperOrigin-RevId: 361217394 Source-Link: googleapis/googleapis@3b0afe5
1 parent c90199d commit b111739

32 files changed

Lines changed: 1238 additions & 3804 deletions

grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java

Lines changed: 61 additions & 50 deletions
Large diffs are not rendered by default.

grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
package com.google.cloud.dialogflow.v2;
1717

1818
import static io.grpc.MethodDescriptor.generateFullMethodName;
19-
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20-
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
21-
import static io.grpc.stub.ClientCalls.futureUnaryCall;
22-
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
23-
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
2419

2520
/**
2621
*
@@ -194,7 +189,8 @@ public void listAnswerRecords(
194189
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request,
195190
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>
196191
responseObserver) {
197-
asyncUnimplementedUnaryCall(getListAnswerRecordsMethod(), responseObserver);
192+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
193+
getListAnswerRecordsMethod(), responseObserver);
198194
}
199195

200196
/**
@@ -207,22 +203,23 @@ public void listAnswerRecords(
207203
public void updateAnswerRecord(
208204
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request,
209205
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnswerRecord> responseObserver) {
210-
asyncUnimplementedUnaryCall(getUpdateAnswerRecordMethod(), responseObserver);
206+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
207+
getUpdateAnswerRecordMethod(), responseObserver);
211208
}
212209

213210
@java.lang.Override
214211
public final io.grpc.ServerServiceDefinition bindService() {
215212
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
216213
.addMethod(
217214
getListAnswerRecordsMethod(),
218-
asyncUnaryCall(
215+
io.grpc.stub.ServerCalls.asyncUnaryCall(
219216
new MethodHandlers<
220217
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest,
221218
com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>(
222219
this, METHODID_LIST_ANSWER_RECORDS)))
223220
.addMethod(
224221
getUpdateAnswerRecordMethod(),
225-
asyncUnaryCall(
222+
io.grpc.stub.ServerCalls.asyncUnaryCall(
226223
new MethodHandlers<
227224
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest,
228225
com.google.cloud.dialogflow.v2.AnswerRecord>(
@@ -261,7 +258,7 @@ public void listAnswerRecords(
261258
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request,
262259
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>
263260
responseObserver) {
264-
asyncUnaryCall(
261+
io.grpc.stub.ClientCalls.asyncUnaryCall(
265262
getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()),
266263
request,
267264
responseObserver);
@@ -277,7 +274,7 @@ public void listAnswerRecords(
277274
public void updateAnswerRecord(
278275
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request,
279276
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnswerRecord> responseObserver) {
280-
asyncUnaryCall(
277+
io.grpc.stub.ClientCalls.asyncUnaryCall(
281278
getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()),
282279
request,
283280
responseObserver);
@@ -313,7 +310,7 @@ protected AnswerRecordsBlockingStub build(
313310
*/
314311
public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecords(
315312
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) {
316-
return blockingUnaryCall(
313+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
317314
getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request);
318315
}
319316

@@ -326,7 +323,7 @@ public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecord
326323
*/
327324
public com.google.cloud.dialogflow.v2.AnswerRecord updateAnswerRecord(
328325
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) {
329-
return blockingUnaryCall(
326+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
330327
getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request);
331328
}
332329
}
@@ -361,7 +358,7 @@ protected AnswerRecordsFutureStub build(
361358
public com.google.common.util.concurrent.ListenableFuture<
362359
com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>
363360
listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) {
364-
return futureUnaryCall(
361+
return io.grpc.stub.ClientCalls.futureUnaryCall(
365362
getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request);
366363
}
367364

@@ -375,7 +372,7 @@ protected AnswerRecordsFutureStub build(
375372
public com.google.common.util.concurrent.ListenableFuture<
376373
com.google.cloud.dialogflow.v2.AnswerRecord>
377374
updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) {
378-
return futureUnaryCall(
375+
return io.grpc.stub.ClientCalls.futureUnaryCall(
379376
getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request);
380377
}
381378
}

grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
package com.google.cloud.dialogflow.v2;
1717

1818
import static io.grpc.MethodDescriptor.generateFullMethodName;
19-
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20-
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
21-
import static io.grpc.stub.ClientCalls.futureUnaryCall;
22-
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
23-
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
2419

2520
/**
2621
*
@@ -363,7 +358,8 @@ public void listContexts(
363358
com.google.cloud.dialogflow.v2.ListContextsRequest request,
364359
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListContextsResponse>
365360
responseObserver) {
366-
asyncUnimplementedUnaryCall(getListContextsMethod(), responseObserver);
361+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
362+
getListContextsMethod(), responseObserver);
367363
}
368364

369365
/**
@@ -376,7 +372,7 @@ public void listContexts(
376372
public void getContext(
377373
com.google.cloud.dialogflow.v2.GetContextRequest request,
378374
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
379-
asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);
375+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);
380376
}
381377

382378
/**
@@ -390,7 +386,8 @@ public void getContext(
390386
public void createContext(
391387
com.google.cloud.dialogflow.v2.CreateContextRequest request,
392388
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
393-
asyncUnimplementedUnaryCall(getCreateContextMethod(), responseObserver);
389+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
390+
getCreateContextMethod(), responseObserver);
394391
}
395392

396393
/**
@@ -403,7 +400,8 @@ public void createContext(
403400
public void updateContext(
404401
com.google.cloud.dialogflow.v2.UpdateContextRequest request,
405402
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
406-
asyncUnimplementedUnaryCall(getUpdateContextMethod(), responseObserver);
403+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
404+
getUpdateContextMethod(), responseObserver);
407405
}
408406

409407
/**
@@ -416,7 +414,8 @@ public void updateContext(
416414
public void deleteContext(
417415
com.google.cloud.dialogflow.v2.DeleteContextRequest request,
418416
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
419-
asyncUnimplementedUnaryCall(getDeleteContextMethod(), responseObserver);
417+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
418+
getDeleteContextMethod(), responseObserver);
420419
}
421420

422421
/**
@@ -429,46 +428,47 @@ public void deleteContext(
429428
public void deleteAllContexts(
430429
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request,
431430
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
432-
asyncUnimplementedUnaryCall(getDeleteAllContextsMethod(), responseObserver);
431+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
432+
getDeleteAllContextsMethod(), responseObserver);
433433
}
434434

435435
@java.lang.Override
436436
public final io.grpc.ServerServiceDefinition bindService() {
437437
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
438438
.addMethod(
439439
getListContextsMethod(),
440-
asyncUnaryCall(
440+
io.grpc.stub.ServerCalls.asyncUnaryCall(
441441
new MethodHandlers<
442442
com.google.cloud.dialogflow.v2.ListContextsRequest,
443443
com.google.cloud.dialogflow.v2.ListContextsResponse>(
444444
this, METHODID_LIST_CONTEXTS)))
445445
.addMethod(
446446
getGetContextMethod(),
447-
asyncUnaryCall(
447+
io.grpc.stub.ServerCalls.asyncUnaryCall(
448448
new MethodHandlers<
449449
com.google.cloud.dialogflow.v2.GetContextRequest,
450450
com.google.cloud.dialogflow.v2.Context>(this, METHODID_GET_CONTEXT)))
451451
.addMethod(
452452
getCreateContextMethod(),
453-
asyncUnaryCall(
453+
io.grpc.stub.ServerCalls.asyncUnaryCall(
454454
new MethodHandlers<
455455
com.google.cloud.dialogflow.v2.CreateContextRequest,
456456
com.google.cloud.dialogflow.v2.Context>(this, METHODID_CREATE_CONTEXT)))
457457
.addMethod(
458458
getUpdateContextMethod(),
459-
asyncUnaryCall(
459+
io.grpc.stub.ServerCalls.asyncUnaryCall(
460460
new MethodHandlers<
461461
com.google.cloud.dialogflow.v2.UpdateContextRequest,
462462
com.google.cloud.dialogflow.v2.Context>(this, METHODID_UPDATE_CONTEXT)))
463463
.addMethod(
464464
getDeleteContextMethod(),
465-
asyncUnaryCall(
465+
io.grpc.stub.ServerCalls.asyncUnaryCall(
466466
new MethodHandlers<
467467
com.google.cloud.dialogflow.v2.DeleteContextRequest,
468468
com.google.protobuf.Empty>(this, METHODID_DELETE_CONTEXT)))
469469
.addMethod(
470470
getDeleteAllContextsMethod(),
471-
asyncUnaryCall(
471+
io.grpc.stub.ServerCalls.asyncUnaryCall(
472472
new MethodHandlers<
473473
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest,
474474
com.google.protobuf.Empty>(this, METHODID_DELETE_ALL_CONTEXTS)))
@@ -504,7 +504,7 @@ public void listContexts(
504504
com.google.cloud.dialogflow.v2.ListContextsRequest request,
505505
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListContextsResponse>
506506
responseObserver) {
507-
asyncUnaryCall(
507+
io.grpc.stub.ClientCalls.asyncUnaryCall(
508508
getChannel().newCall(getListContextsMethod(), getCallOptions()),
509509
request,
510510
responseObserver);
@@ -520,7 +520,7 @@ public void listContexts(
520520
public void getContext(
521521
com.google.cloud.dialogflow.v2.GetContextRequest request,
522522
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
523-
asyncUnaryCall(
523+
io.grpc.stub.ClientCalls.asyncUnaryCall(
524524
getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver);
525525
}
526526

@@ -535,7 +535,7 @@ public void getContext(
535535
public void createContext(
536536
com.google.cloud.dialogflow.v2.CreateContextRequest request,
537537
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
538-
asyncUnaryCall(
538+
io.grpc.stub.ClientCalls.asyncUnaryCall(
539539
getChannel().newCall(getCreateContextMethod(), getCallOptions()),
540540
request,
541541
responseObserver);
@@ -551,7 +551,7 @@ public void createContext(
551551
public void updateContext(
552552
com.google.cloud.dialogflow.v2.UpdateContextRequest request,
553553
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
554-
asyncUnaryCall(
554+
io.grpc.stub.ClientCalls.asyncUnaryCall(
555555
getChannel().newCall(getUpdateContextMethod(), getCallOptions()),
556556
request,
557557
responseObserver);
@@ -567,7 +567,7 @@ public void updateContext(
567567
public void deleteContext(
568568
com.google.cloud.dialogflow.v2.DeleteContextRequest request,
569569
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
570-
asyncUnaryCall(
570+
io.grpc.stub.ClientCalls.asyncUnaryCall(
571571
getChannel().newCall(getDeleteContextMethod(), getCallOptions()),
572572
request,
573573
responseObserver);
@@ -583,7 +583,7 @@ public void deleteContext(
583583
public void deleteAllContexts(
584584
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request,
585585
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
586-
asyncUnaryCall(
586+
io.grpc.stub.ClientCalls.asyncUnaryCall(
587587
getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()),
588588
request,
589589
responseObserver);
@@ -617,7 +617,8 @@ protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption
617617
*/
618618
public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts(
619619
com.google.cloud.dialogflow.v2.ListContextsRequest request) {
620-
return blockingUnaryCall(getChannel(), getListContextsMethod(), getCallOptions(), request);
620+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
621+
getChannel(), getListContextsMethod(), getCallOptions(), request);
621622
}
622623

623624
/**
@@ -629,7 +630,8 @@ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts(
629630
*/
630631
public com.google.cloud.dialogflow.v2.Context getContext(
631632
com.google.cloud.dialogflow.v2.GetContextRequest request) {
632-
return blockingUnaryCall(getChannel(), getGetContextMethod(), getCallOptions(), request);
633+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
634+
getChannel(), getGetContextMethod(), getCallOptions(), request);
633635
}
634636

635637
/**
@@ -642,7 +644,8 @@ public com.google.cloud.dialogflow.v2.Context getContext(
642644
*/
643645
public com.google.cloud.dialogflow.v2.Context createContext(
644646
com.google.cloud.dialogflow.v2.CreateContextRequest request) {
645-
return blockingUnaryCall(getChannel(), getCreateContextMethod(), getCallOptions(), request);
647+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
648+
getChannel(), getCreateContextMethod(), getCallOptions(), request);
646649
}
647650

648651
/**
@@ -654,7 +657,8 @@ public com.google.cloud.dialogflow.v2.Context createContext(
654657
*/
655658
public com.google.cloud.dialogflow.v2.Context updateContext(
656659
com.google.cloud.dialogflow.v2.UpdateContextRequest request) {
657-
return blockingUnaryCall(getChannel(), getUpdateContextMethod(), getCallOptions(), request);
660+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
661+
getChannel(), getUpdateContextMethod(), getCallOptions(), request);
658662
}
659663

660664
/**
@@ -666,7 +670,8 @@ public com.google.cloud.dialogflow.v2.Context updateContext(
666670
*/
667671
public com.google.protobuf.Empty deleteContext(
668672
com.google.cloud.dialogflow.v2.DeleteContextRequest request) {
669-
return blockingUnaryCall(getChannel(), getDeleteContextMethod(), getCallOptions(), request);
673+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
674+
getChannel(), getDeleteContextMethod(), getCallOptions(), request);
670675
}
671676

672677
/**
@@ -678,7 +683,7 @@ public com.google.protobuf.Empty deleteContext(
678683
*/
679684
public com.google.protobuf.Empty deleteAllContexts(
680685
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) {
681-
return blockingUnaryCall(
686+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
682687
getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request);
683688
}
684689
}
@@ -711,7 +716,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
711716
public com.google.common.util.concurrent.ListenableFuture<
712717
com.google.cloud.dialogflow.v2.ListContextsResponse>
713718
listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request) {
714-
return futureUnaryCall(
719+
return io.grpc.stub.ClientCalls.futureUnaryCall(
715720
getChannel().newCall(getListContextsMethod(), getCallOptions()), request);
716721
}
717722

@@ -725,7 +730,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
725730
public com.google.common.util.concurrent.ListenableFuture<
726731
com.google.cloud.dialogflow.v2.Context>
727732
getContext(com.google.cloud.dialogflow.v2.GetContextRequest request) {
728-
return futureUnaryCall(
733+
return io.grpc.stub.ClientCalls.futureUnaryCall(
729734
getChannel().newCall(getGetContextMethod(), getCallOptions()), request);
730735
}
731736

@@ -740,7 +745,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
740745
public com.google.common.util.concurrent.ListenableFuture<
741746
com.google.cloud.dialogflow.v2.Context>
742747
createContext(com.google.cloud.dialogflow.v2.CreateContextRequest request) {
743-
return futureUnaryCall(
748+
return io.grpc.stub.ClientCalls.futureUnaryCall(
744749
getChannel().newCall(getCreateContextMethod(), getCallOptions()), request);
745750
}
746751

@@ -754,7 +759,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
754759
public com.google.common.util.concurrent.ListenableFuture<
755760
com.google.cloud.dialogflow.v2.Context>
756761
updateContext(com.google.cloud.dialogflow.v2.UpdateContextRequest request) {
757-
return futureUnaryCall(
762+
return io.grpc.stub.ClientCalls.futureUnaryCall(
758763
getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request);
759764
}
760765

@@ -767,7 +772,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
767772
*/
768773
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
769774
deleteContext(com.google.cloud.dialogflow.v2.DeleteContextRequest request) {
770-
return futureUnaryCall(
775+
return io.grpc.stub.ClientCalls.futureUnaryCall(
771776
getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request);
772777
}
773778

@@ -780,7 +785,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
780785
*/
781786
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
782787
deleteAllContexts(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) {
783-
return futureUnaryCall(
788+
return io.grpc.stub.ClientCalls.futureUnaryCall(
784789
getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request);
785790
}
786791
}

0 commit comments

Comments
 (0)