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

feat(v2beta1): remote MixedAudio from ResponseMessage #469

Merged
merged 4 commits into from
Mar 16, 2021
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
package com.google.cloud.dialogflow.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
*
Expand Down Expand Up @@ -194,7 +189,8 @@ public void listAnswerRecords(
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>
responseObserver) {
asyncUnimplementedUnaryCall(getListAnswerRecordsMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListAnswerRecordsMethod(), responseObserver);
}

/**
Expand All @@ -207,22 +203,23 @@ public void listAnswerRecords(
public void updateAnswerRecord(
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnswerRecord> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateAnswerRecordMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateAnswerRecordMethod(), responseObserver);
}

@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getListAnswerRecordsMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest,
com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>(
this, METHODID_LIST_ANSWER_RECORDS)))
.addMethod(
getUpdateAnswerRecordMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest,
com.google.cloud.dialogflow.v2.AnswerRecord>(
Expand Down Expand Up @@ -261,7 +258,7 @@ public void listAnswerRecords(
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>
responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()),
request,
responseObserver);
Expand All @@ -277,7 +274,7 @@ public void listAnswerRecords(
public void updateAnswerRecord(
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.AnswerRecord> responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()),
request,
responseObserver);
Expand Down Expand Up @@ -313,7 +310,7 @@ protected AnswerRecordsBlockingStub build(
*/
public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecords(
com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) {
return blockingUnaryCall(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request);
}

Expand All @@ -326,7 +323,7 @@ public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecord
*/
public com.google.cloud.dialogflow.v2.AnswerRecord updateAnswerRecord(
com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) {
return blockingUnaryCall(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request);
}
}
Expand Down Expand Up @@ -361,7 +358,7 @@ protected AnswerRecordsFutureStub build(
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>
listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) {
return futureUnaryCall(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request);
}

Expand All @@ -375,7 +372,7 @@ protected AnswerRecordsFutureStub build(
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.AnswerRecord>
updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) {
return futureUnaryCall(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
package com.google.cloud.dialogflow.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
*
Expand Down Expand Up @@ -363,7 +358,8 @@ public void listContexts(
com.google.cloud.dialogflow.v2.ListContextsRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListContextsResponse>
responseObserver) {
asyncUnimplementedUnaryCall(getListContextsMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListContextsMethod(), responseObserver);
}

/**
Expand All @@ -376,7 +372,7 @@ public void listContexts(
public void getContext(
com.google.cloud.dialogflow.v2.GetContextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);
}

/**
Expand All @@ -390,7 +386,8 @@ public void getContext(
public void createContext(
com.google.cloud.dialogflow.v2.CreateContextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
asyncUnimplementedUnaryCall(getCreateContextMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateContextMethod(), responseObserver);
}

/**
Expand All @@ -403,7 +400,8 @@ public void createContext(
public void updateContext(
com.google.cloud.dialogflow.v2.UpdateContextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateContextMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateContextMethod(), responseObserver);
}

/**
Expand All @@ -416,7 +414,8 @@ public void updateContext(
public void deleteContext(
com.google.cloud.dialogflow.v2.DeleteContextRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
asyncUnimplementedUnaryCall(getDeleteContextMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteContextMethod(), responseObserver);
}

/**
Expand All @@ -429,46 +428,47 @@ public void deleteContext(
public void deleteAllContexts(
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
asyncUnimplementedUnaryCall(getDeleteAllContextsMethod(), responseObserver);
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteAllContextsMethod(), responseObserver);
}

@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getListContextsMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.ListContextsRequest,
com.google.cloud.dialogflow.v2.ListContextsResponse>(
this, METHODID_LIST_CONTEXTS)))
.addMethod(
getGetContextMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.GetContextRequest,
com.google.cloud.dialogflow.v2.Context>(this, METHODID_GET_CONTEXT)))
.addMethod(
getCreateContextMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.CreateContextRequest,
com.google.cloud.dialogflow.v2.Context>(this, METHODID_CREATE_CONTEXT)))
.addMethod(
getUpdateContextMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.UpdateContextRequest,
com.google.cloud.dialogflow.v2.Context>(this, METHODID_UPDATE_CONTEXT)))
.addMethod(
getDeleteContextMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.DeleteContextRequest,
com.google.protobuf.Empty>(this, METHODID_DELETE_CONTEXT)))
.addMethod(
getDeleteAllContextsMethod(),
asyncUnaryCall(
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest,
com.google.protobuf.Empty>(this, METHODID_DELETE_ALL_CONTEXTS)))
Expand Down Expand Up @@ -504,7 +504,7 @@ public void listContexts(
com.google.cloud.dialogflow.v2.ListContextsRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.ListContextsResponse>
responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListContextsMethod(), getCallOptions()),
request,
responseObserver);
Expand All @@ -520,7 +520,7 @@ public void listContexts(
public void getContext(
com.google.cloud.dialogflow.v2.GetContextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver);
}

Expand All @@ -535,7 +535,7 @@ public void getContext(
public void createContext(
com.google.cloud.dialogflow.v2.CreateContextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateContextMethod(), getCallOptions()),
request,
responseObserver);
Expand All @@ -551,7 +551,7 @@ public void createContext(
public void updateContext(
com.google.cloud.dialogflow.v2.UpdateContextRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2.Context> responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateContextMethod(), getCallOptions()),
request,
responseObserver);
Expand All @@ -567,7 +567,7 @@ public void updateContext(
public void deleteContext(
com.google.cloud.dialogflow.v2.DeleteContextRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteContextMethod(), getCallOptions()),
request,
responseObserver);
Expand All @@ -583,7 +583,7 @@ public void deleteContext(
public void deleteAllContexts(
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
asyncUnaryCall(
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()),
request,
responseObserver);
Expand Down Expand Up @@ -617,7 +617,8 @@ protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption
*/
public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts(
com.google.cloud.dialogflow.v2.ListContextsRequest request) {
return blockingUnaryCall(getChannel(), getListContextsMethod(), getCallOptions(), request);
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListContextsMethod(), getCallOptions(), request);
}

/**
Expand All @@ -629,7 +630,8 @@ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts(
*/
public com.google.cloud.dialogflow.v2.Context getContext(
com.google.cloud.dialogflow.v2.GetContextRequest request) {
return blockingUnaryCall(getChannel(), getGetContextMethod(), getCallOptions(), request);
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetContextMethod(), getCallOptions(), request);
}

/**
Expand All @@ -642,7 +644,8 @@ public com.google.cloud.dialogflow.v2.Context getContext(
*/
public com.google.cloud.dialogflow.v2.Context createContext(
com.google.cloud.dialogflow.v2.CreateContextRequest request) {
return blockingUnaryCall(getChannel(), getCreateContextMethod(), getCallOptions(), request);
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateContextMethod(), getCallOptions(), request);
}

/**
Expand All @@ -654,7 +657,8 @@ public com.google.cloud.dialogflow.v2.Context createContext(
*/
public com.google.cloud.dialogflow.v2.Context updateContext(
com.google.cloud.dialogflow.v2.UpdateContextRequest request) {
return blockingUnaryCall(getChannel(), getUpdateContextMethod(), getCallOptions(), request);
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateContextMethod(), getCallOptions(), request);
}

/**
Expand All @@ -666,7 +670,8 @@ public com.google.cloud.dialogflow.v2.Context updateContext(
*/
public com.google.protobuf.Empty deleteContext(
com.google.cloud.dialogflow.v2.DeleteContextRequest request) {
return blockingUnaryCall(getChannel(), getDeleteContextMethod(), getCallOptions(), request);
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteContextMethod(), getCallOptions(), request);
}

/**
Expand All @@ -678,7 +683,7 @@ public com.google.protobuf.Empty deleteContext(
*/
public com.google.protobuf.Empty deleteAllContexts(
com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) {
return blockingUnaryCall(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request);
}
}
Expand Down Expand Up @@ -711,7 +716,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.ListContextsResponse>
listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request) {
return futureUnaryCall(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListContextsMethod(), getCallOptions()), request);
}

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

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

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

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

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