Use PascalCase RPC names for the registration service

This commit is contained in:
Jon Chambers
2023-07-06 16:49:16 -04:00
committed by Jon Chambers
parent 76f2e93a2c
commit ef1a8fc50f
2 changed files with 8 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ public class RegistrationServiceClient implements Managed {
PhoneNumberUtil.getInstance().format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.E164).substring(1));
return toCompletableFuture(stub.withDeadline(toDeadline(timeout))
.createSessionTemp(CreateRegistrationSessionRequest.newBuilder()
.createSession(CreateRegistrationSessionRequest.newBuilder()
.setE164(e164)
.setAccountExistsWithE164(accountExistsWithPhoneNumber)
.build()))
@@ -124,7 +124,7 @@ public class RegistrationServiceClient implements Managed {
}
return toCompletableFuture(stub.withDeadline(toDeadline(timeout))
.sendVerificationCodeTemp(requestBuilder.build()))
.sendVerificationCode(requestBuilder.build()))
.thenApply(response -> {
if (response.hasError()) {
switch (response.getError().getErrorType()) {
@@ -164,7 +164,7 @@ public class RegistrationServiceClient implements Managed {
final String verificationCode,
final Duration timeout) {
return toCompletableFuture(stub.withDeadline(toDeadline(timeout))
.checkVerificationCodeTemp(CheckVerificationCodeRequest.newBuilder()
.checkVerificationCode(CheckVerificationCodeRequest.newBuilder()
.setSessionId(ByteString.copyFrom(sessionId))
.setVerificationCode(verificationCode)
.build()))
@@ -199,7 +199,7 @@ public class RegistrationServiceClient implements Managed {
public CompletableFuture<Optional<RegistrationServiceSession>> getSession(final byte[] sessionId,
final Duration timeout) {
return toCompletableFuture(stub.withDeadline(toDeadline(timeout)).getSessionMetadataTemp(
return toCompletableFuture(stub.withDeadline(toDeadline(timeout)).getSessionMetadata(
GetRegistrationSessionMetadataRequest.newBuilder()
.setSessionId(ByteString.copyFrom(sessionId)).build()))
.thenApply(response -> {