com.hedera.hashgraph.sdk.proto.TokenServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
package com.hedera.hashgraph.sdk.proto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* Transactions and queries for the Token Service
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.54.1)",
comments = "Source: token_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class TokenServiceGrpc {
private TokenServiceGrpc() {}
public static final String SERVICE_NAME = "proto.TokenService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateTokenMethod() {
io.grpc.MethodDescriptor getCreateTokenMethod;
if ((getCreateTokenMethod = TokenServiceGrpc.getCreateTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getCreateTokenMethod = TokenServiceGrpc.getCreateTokenMethod) == null) {
TokenServiceGrpc.getCreateTokenMethod = getCreateTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getCreateTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateTokenMethod() {
io.grpc.MethodDescriptor getUpdateTokenMethod;
if ((getUpdateTokenMethod = TokenServiceGrpc.getUpdateTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getUpdateTokenMethod = TokenServiceGrpc.getUpdateTokenMethod) == null) {
TokenServiceGrpc.getUpdateTokenMethod = getUpdateTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getMintTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "mintToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMintTokenMethod() {
io.grpc.MethodDescriptor getMintTokenMethod;
if ((getMintTokenMethod = TokenServiceGrpc.getMintTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getMintTokenMethod = TokenServiceGrpc.getMintTokenMethod) == null) {
TokenServiceGrpc.getMintTokenMethod = getMintTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "mintToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getMintTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getBurnTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "burnToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBurnTokenMethod() {
io.grpc.MethodDescriptor getBurnTokenMethod;
if ((getBurnTokenMethod = TokenServiceGrpc.getBurnTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getBurnTokenMethod = TokenServiceGrpc.getBurnTokenMethod) == null) {
TokenServiceGrpc.getBurnTokenMethod = getBurnTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "burnToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getBurnTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteTokenMethod() {
io.grpc.MethodDescriptor getDeleteTokenMethod;
if ((getDeleteTokenMethod = TokenServiceGrpc.getDeleteTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getDeleteTokenMethod = TokenServiceGrpc.getDeleteTokenMethod) == null) {
TokenServiceGrpc.getDeleteTokenMethod = getDeleteTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getDeleteTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getWipeTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "wipeTokenAccount",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getWipeTokenAccountMethod() {
io.grpc.MethodDescriptor getWipeTokenAccountMethod;
if ((getWipeTokenAccountMethod = TokenServiceGrpc.getWipeTokenAccountMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getWipeTokenAccountMethod = TokenServiceGrpc.getWipeTokenAccountMethod) == null) {
TokenServiceGrpc.getWipeTokenAccountMethod = getWipeTokenAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "wipeTokenAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getWipeTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getFreezeTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "freezeTokenAccount",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFreezeTokenAccountMethod() {
io.grpc.MethodDescriptor getFreezeTokenAccountMethod;
if ((getFreezeTokenAccountMethod = TokenServiceGrpc.getFreezeTokenAccountMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getFreezeTokenAccountMethod = TokenServiceGrpc.getFreezeTokenAccountMethod) == null) {
TokenServiceGrpc.getFreezeTokenAccountMethod = getFreezeTokenAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "freezeTokenAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getFreezeTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getUnfreezeTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "unfreezeTokenAccount",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUnfreezeTokenAccountMethod() {
io.grpc.MethodDescriptor getUnfreezeTokenAccountMethod;
if ((getUnfreezeTokenAccountMethod = TokenServiceGrpc.getUnfreezeTokenAccountMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getUnfreezeTokenAccountMethod = TokenServiceGrpc.getUnfreezeTokenAccountMethod) == null) {
TokenServiceGrpc.getUnfreezeTokenAccountMethod = getUnfreezeTokenAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "unfreezeTokenAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getUnfreezeTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getGrantKycToTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "grantKycToTokenAccount",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGrantKycToTokenAccountMethod() {
io.grpc.MethodDescriptor getGrantKycToTokenAccountMethod;
if ((getGrantKycToTokenAccountMethod = TokenServiceGrpc.getGrantKycToTokenAccountMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getGrantKycToTokenAccountMethod = TokenServiceGrpc.getGrantKycToTokenAccountMethod) == null) {
TokenServiceGrpc.getGrantKycToTokenAccountMethod = getGrantKycToTokenAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "grantKycToTokenAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getGrantKycToTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokeKycFromTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "revokeKycFromTokenAccount",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRevokeKycFromTokenAccountMethod() {
io.grpc.MethodDescriptor getRevokeKycFromTokenAccountMethod;
if ((getRevokeKycFromTokenAccountMethod = TokenServiceGrpc.getRevokeKycFromTokenAccountMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getRevokeKycFromTokenAccountMethod = TokenServiceGrpc.getRevokeKycFromTokenAccountMethod) == null) {
TokenServiceGrpc.getRevokeKycFromTokenAccountMethod = getRevokeKycFromTokenAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "revokeKycFromTokenAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getRevokeKycFromTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getAssociateTokensMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "associateTokens",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAssociateTokensMethod() {
io.grpc.MethodDescriptor getAssociateTokensMethod;
if ((getAssociateTokensMethod = TokenServiceGrpc.getAssociateTokensMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getAssociateTokensMethod = TokenServiceGrpc.getAssociateTokensMethod) == null) {
TokenServiceGrpc.getAssociateTokensMethod = getAssociateTokensMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "associateTokens"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getAssociateTokensMethod;
}
private static volatile io.grpc.MethodDescriptor getDissociateTokensMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "dissociateTokens",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDissociateTokensMethod() {
io.grpc.MethodDescriptor getDissociateTokensMethod;
if ((getDissociateTokensMethod = TokenServiceGrpc.getDissociateTokensMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getDissociateTokensMethod = TokenServiceGrpc.getDissociateTokensMethod) == null) {
TokenServiceGrpc.getDissociateTokensMethod = getDissociateTokensMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "dissociateTokens"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getDissociateTokensMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateTokenFeeScheduleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateTokenFeeSchedule",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateTokenFeeScheduleMethod() {
io.grpc.MethodDescriptor getUpdateTokenFeeScheduleMethod;
if ((getUpdateTokenFeeScheduleMethod = TokenServiceGrpc.getUpdateTokenFeeScheduleMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getUpdateTokenFeeScheduleMethod = TokenServiceGrpc.getUpdateTokenFeeScheduleMethod) == null) {
TokenServiceGrpc.getUpdateTokenFeeScheduleMethod = getUpdateTokenFeeScheduleMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateTokenFeeSchedule"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateTokenFeeScheduleMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTokenInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTokenInfo",
requestType = com.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTokenInfoMethod() {
io.grpc.MethodDescriptor getGetTokenInfoMethod;
if ((getGetTokenInfoMethod = TokenServiceGrpc.getGetTokenInfoMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getGetTokenInfoMethod = TokenServiceGrpc.getGetTokenInfoMethod) == null) {
TokenServiceGrpc.getGetTokenInfoMethod = getGetTokenInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTokenInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Response.getDefaultInstance()))
.build();
}
}
}
return getGetTokenInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountNftInfosMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getAccountNftInfos",
requestType = com.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAccountNftInfosMethod() {
io.grpc.MethodDescriptor getGetAccountNftInfosMethod;
if ((getGetAccountNftInfosMethod = TokenServiceGrpc.getGetAccountNftInfosMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getGetAccountNftInfosMethod = TokenServiceGrpc.getGetAccountNftInfosMethod) == null) {
TokenServiceGrpc.getGetAccountNftInfosMethod = getGetAccountNftInfosMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getAccountNftInfos"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Response.getDefaultInstance()))
.build();
}
}
}
return getGetAccountNftInfosMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTokenNftInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTokenNftInfo",
requestType = com.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTokenNftInfoMethod() {
io.grpc.MethodDescriptor getGetTokenNftInfoMethod;
if ((getGetTokenNftInfoMethod = TokenServiceGrpc.getGetTokenNftInfoMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getGetTokenNftInfoMethod = TokenServiceGrpc.getGetTokenNftInfoMethod) == null) {
TokenServiceGrpc.getGetTokenNftInfoMethod = getGetTokenNftInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTokenNftInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Response.getDefaultInstance()))
.build();
}
}
}
return getGetTokenNftInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTokenNftInfosMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTokenNftInfos",
requestType = com.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTokenNftInfosMethod() {
io.grpc.MethodDescriptor getGetTokenNftInfosMethod;
if ((getGetTokenNftInfosMethod = TokenServiceGrpc.getGetTokenNftInfosMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getGetTokenNftInfosMethod = TokenServiceGrpc.getGetTokenNftInfosMethod) == null) {
TokenServiceGrpc.getGetTokenNftInfosMethod = getGetTokenNftInfosMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTokenNftInfos"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Response.getDefaultInstance()))
.build();
}
}
}
return getGetTokenNftInfosMethod;
}
private static volatile io.grpc.MethodDescriptor getPauseTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "pauseToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPauseTokenMethod() {
io.grpc.MethodDescriptor getPauseTokenMethod;
if ((getPauseTokenMethod = TokenServiceGrpc.getPauseTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getPauseTokenMethod = TokenServiceGrpc.getPauseTokenMethod) == null) {
TokenServiceGrpc.getPauseTokenMethod = getPauseTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "pauseToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getPauseTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getUnpauseTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "unpauseToken",
requestType = com.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUnpauseTokenMethod() {
io.grpc.MethodDescriptor getUnpauseTokenMethod;
if ((getUnpauseTokenMethod = TokenServiceGrpc.getUnpauseTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getUnpauseTokenMethod = TokenServiceGrpc.getUnpauseTokenMethod) == null) {
TokenServiceGrpc.getUnpauseTokenMethod = getUnpauseTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "unpauseToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance()))
.build();
}
}
}
return getUnpauseTokenMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TokenServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TokenServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TokenServiceStub(channel, callOptions);
}
};
return TokenServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TokenServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TokenServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TokenServiceBlockingStub(channel, callOptions);
}
};
return TokenServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TokenServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TokenServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TokenServiceFutureStub(channel, callOptions);
}
};
return TokenServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* Transactions and queries for the Token Service
*
*/
public interface AsyncService {
/**
*
**
* Creates a new Token by submitting the transaction
*
*/
default void createToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTokenMethod(), responseObserver);
}
/**
*
**
* Updates the account by submitting the transaction
*
*/
default void updateToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTokenMethod(), responseObserver);
}
/**
*
**
* Mints an amount of the token to the defined treasury account
*
*/
default void mintToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMintTokenMethod(), responseObserver);
}
/**
*
**
* Burns an amount of the token from the defined treasury account
*
*/
default void burnToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBurnTokenMethod(), responseObserver);
}
/**
*
**
* Deletes a Token
*
*/
default void deleteToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTokenMethod(), responseObserver);
}
/**
*
**
* Wipes the provided amount of tokens from the specified Account ID
*
*/
default void wipeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWipeTokenAccountMethod(), responseObserver);
}
/**
*
**
* Freezes the transfer of tokens to or from the specified Account ID
*
*/
default void freezeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFreezeTokenAccountMethod(), responseObserver);
}
/**
*
**
* Unfreezes the transfer of tokens to or from the specified Account ID
*
*/
default void unfreezeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnfreezeTokenAccountMethod(), responseObserver);
}
/**
*
**
* Flags the provided Account ID as having gone through KYC
*
*/
default void grantKycToTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGrantKycToTokenAccountMethod(), responseObserver);
}
/**
*
**
* Removes the KYC flag of the provided Account ID
*
*/
default void revokeKycFromTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeKycFromTokenAccountMethod(), responseObserver);
}
/**
*
**
* Associates tokens to an account
*
*/
default void associateTokens(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAssociateTokensMethod(), responseObserver);
}
/**
*
**
* Dissociates tokens from an account
*
*/
default void dissociateTokens(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDissociateTokensMethod(), responseObserver);
}
/**
*
**
* Updates the custom fee schedule on a token
*
*/
default void updateTokenFeeSchedule(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTokenFeeScheduleMethod(), responseObserver);
}
/**
*
**
* Retrieves the metadata of a token
*
*/
default void getTokenInfo(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTokenInfoMethod(), responseObserver);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given account
*
*/
@java.lang.Deprecated
default void getAccountNftInfos(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountNftInfosMethod(), responseObserver);
}
/**
*
**
* Retrieves the metadata of an NFT by TokenID and serial number
*
*/
default void getTokenNftInfo(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTokenNftInfoMethod(), responseObserver);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given Token of type NON_FUNGIBLE
*
*/
@java.lang.Deprecated
default void getTokenNftInfos(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTokenNftInfosMethod(), responseObserver);
}
/**
*
* Pause the token
*
*/
default void pauseToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseTokenMethod(), responseObserver);
}
/**
*
* Unpause the token
*
*/
default void unpauseToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnpauseTokenMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service TokenService.
*
**
* Transactions and queries for the Token Service
*
*/
public static abstract class TokenServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return TokenServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service TokenService.
*
**
* Transactions and queries for the Token Service
*
*/
public static final class TokenServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private TokenServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TokenServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TokenServiceStub(channel, callOptions);
}
/**
*
**
* Creates a new Token by submitting the transaction
*
*/
public void createToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Updates the account by submitting the transaction
*
*/
public void updateToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Mints an amount of the token to the defined treasury account
*
*/
public void mintToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMintTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Burns an amount of the token from the defined treasury account
*
*/
public void burnToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBurnTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Deletes a Token
*
*/
public void deleteToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Wipes the provided amount of tokens from the specified Account ID
*
*/
public void wipeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getWipeTokenAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Freezes the transfer of tokens to or from the specified Account ID
*
*/
public void freezeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getFreezeTokenAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Unfreezes the transfer of tokens to or from the specified Account ID
*
*/
public void unfreezeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUnfreezeTokenAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Flags the provided Account ID as having gone through KYC
*
*/
public void grantKycToTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGrantKycToTokenAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Removes the KYC flag of the provided Account ID
*
*/
public void revokeKycFromTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRevokeKycFromTokenAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Associates tokens to an account
*
*/
public void associateTokens(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAssociateTokensMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Dissociates tokens from an account
*
*/
public void dissociateTokens(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDissociateTokensMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Updates the custom fee schedule on a token
*
*/
public void updateTokenFeeSchedule(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateTokenFeeScheduleMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves the metadata of a token
*
*/
public void getTokenInfo(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTokenInfoMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given account
*
*/
@java.lang.Deprecated
public void getAccountNftInfos(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAccountNftInfosMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves the metadata of an NFT by TokenID and serial number
*
*/
public void getTokenNftInfo(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTokenNftInfoMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given Token of type NON_FUNGIBLE
*
*/
@java.lang.Deprecated
public void getTokenNftInfos(com.hedera.hashgraph.sdk.proto.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTokenNftInfosMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Pause the token
*
*/
public void pauseToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPauseTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Unpause the token
*
*/
public void unpauseToken(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUnpauseTokenMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service TokenService.
*
**
* Transactions and queries for the Token Service
*
*/
public static final class TokenServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private TokenServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TokenServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TokenServiceBlockingStub(channel, callOptions);
}
/**
*
**
* Creates a new Token by submitting the transaction
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse createToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Updates the account by submitting the transaction
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse updateToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Mints an amount of the token to the defined treasury account
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse mintToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMintTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Burns an amount of the token from the defined treasury account
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse burnToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBurnTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Deletes a Token
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse deleteToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Wipes the provided amount of tokens from the specified Account ID
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse wipeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getWipeTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Freezes the transfer of tokens to or from the specified Account ID
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse freezeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getFreezeTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Unfreezes the transfer of tokens to or from the specified Account ID
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse unfreezeTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUnfreezeTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Flags the provided Account ID as having gone through KYC
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse grantKycToTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGrantKycToTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Removes the KYC flag of the provided Account ID
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse revokeKycFromTokenAccount(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokeKycFromTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Associates tokens to an account
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse associateTokens(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAssociateTokensMethod(), getCallOptions(), request);
}
/**
*
**
* Dissociates tokens from an account
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse dissociateTokens(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDissociateTokensMethod(), getCallOptions(), request);
}
/**
*
**
* Updates the custom fee schedule on a token
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse updateTokenFeeSchedule(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateTokenFeeScheduleMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the metadata of a token
*
*/
public com.hedera.hashgraph.sdk.proto.Response getTokenInfo(com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTokenInfoMethod(), getCallOptions(), request);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given account
*
*/
@java.lang.Deprecated
public com.hedera.hashgraph.sdk.proto.Response getAccountNftInfos(com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAccountNftInfosMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the metadata of an NFT by TokenID and serial number
*
*/
public com.hedera.hashgraph.sdk.proto.Response getTokenNftInfo(com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTokenNftInfoMethod(), getCallOptions(), request);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given Token of type NON_FUNGIBLE
*
*/
@java.lang.Deprecated
public com.hedera.hashgraph.sdk.proto.Response getTokenNftInfos(com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTokenNftInfosMethod(), getCallOptions(), request);
}
/**
*
* Pause the token
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse pauseToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPauseTokenMethod(), getCallOptions(), request);
}
/**
*
* Unpause the token
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse unpauseToken(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUnpauseTokenMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service TokenService.
*
**
* Transactions and queries for the Token Service
*
*/
public static final class TokenServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private TokenServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TokenServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TokenServiceFutureStub(channel, callOptions);
}
/**
*
**
* Creates a new Token by submitting the transaction
*
*/
public com.google.common.util.concurrent.ListenableFuture createToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Updates the account by submitting the transaction
*
*/
public com.google.common.util.concurrent.ListenableFuture updateToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Mints an amount of the token to the defined treasury account
*
*/
public com.google.common.util.concurrent.ListenableFuture mintToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMintTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Burns an amount of the token from the defined treasury account
*
*/
public com.google.common.util.concurrent.ListenableFuture burnToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBurnTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Deletes a Token
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Wipes the provided amount of tokens from the specified Account ID
*
*/
public com.google.common.util.concurrent.ListenableFuture wipeTokenAccount(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getWipeTokenAccountMethod(), getCallOptions()), request);
}
/**
*
**
* Freezes the transfer of tokens to or from the specified Account ID
*
*/
public com.google.common.util.concurrent.ListenableFuture freezeTokenAccount(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getFreezeTokenAccountMethod(), getCallOptions()), request);
}
/**
*
**
* Unfreezes the transfer of tokens to or from the specified Account ID
*
*/
public com.google.common.util.concurrent.ListenableFuture unfreezeTokenAccount(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUnfreezeTokenAccountMethod(), getCallOptions()), request);
}
/**
*
**
* Flags the provided Account ID as having gone through KYC
*
*/
public com.google.common.util.concurrent.ListenableFuture grantKycToTokenAccount(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGrantKycToTokenAccountMethod(), getCallOptions()), request);
}
/**
*
**
* Removes the KYC flag of the provided Account ID
*
*/
public com.google.common.util.concurrent.ListenableFuture revokeKycFromTokenAccount(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRevokeKycFromTokenAccountMethod(), getCallOptions()), request);
}
/**
*
**
* Associates tokens to an account
*
*/
public com.google.common.util.concurrent.ListenableFuture associateTokens(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAssociateTokensMethod(), getCallOptions()), request);
}
/**
*
**
* Dissociates tokens from an account
*
*/
public com.google.common.util.concurrent.ListenableFuture dissociateTokens(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDissociateTokensMethod(), getCallOptions()), request);
}
/**
*
**
* Updates the custom fee schedule on a token
*
*/
public com.google.common.util.concurrent.ListenableFuture updateTokenFeeSchedule(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateTokenFeeScheduleMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves the metadata of a token
*
*/
public com.google.common.util.concurrent.ListenableFuture getTokenInfo(
com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTokenInfoMethod(), getCallOptions()), request);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given account
*
*/
@java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture getAccountNftInfos(
com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAccountNftInfosMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves the metadata of an NFT by TokenID and serial number
*
*/
public com.google.common.util.concurrent.ListenableFuture getTokenNftInfo(
com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTokenNftInfoMethod(), getCallOptions()), request);
}
/**
*
**
* (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given Token of type NON_FUNGIBLE
*
*/
@java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture getTokenNftInfos(
com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTokenNftInfosMethod(), getCallOptions()), request);
}
/**
*
* Pause the token
*
*/
public com.google.common.util.concurrent.ListenableFuture pauseToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPauseTokenMethod(), getCallOptions()), request);
}
/**
*
* Unpause the token
*
*/
public com.google.common.util.concurrent.ListenableFuture unpauseToken(
com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUnpauseTokenMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_TOKEN = 0;
private static final int METHODID_UPDATE_TOKEN = 1;
private static final int METHODID_MINT_TOKEN = 2;
private static final int METHODID_BURN_TOKEN = 3;
private static final int METHODID_DELETE_TOKEN = 4;
private static final int METHODID_WIPE_TOKEN_ACCOUNT = 5;
private static final int METHODID_FREEZE_TOKEN_ACCOUNT = 6;
private static final int METHODID_UNFREEZE_TOKEN_ACCOUNT = 7;
private static final int METHODID_GRANT_KYC_TO_TOKEN_ACCOUNT = 8;
private static final int METHODID_REVOKE_KYC_FROM_TOKEN_ACCOUNT = 9;
private static final int METHODID_ASSOCIATE_TOKENS = 10;
private static final int METHODID_DISSOCIATE_TOKENS = 11;
private static final int METHODID_UPDATE_TOKEN_FEE_SCHEDULE = 12;
private static final int METHODID_GET_TOKEN_INFO = 13;
private static final int METHODID_GET_ACCOUNT_NFT_INFOS = 14;
private static final int METHODID_GET_TOKEN_NFT_INFO = 15;
private static final int METHODID_GET_TOKEN_NFT_INFOS = 16;
private static final int METHODID_PAUSE_TOKEN = 17;
private static final int METHODID_UNPAUSE_TOKEN = 18;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CREATE_TOKEN:
serviceImpl.createToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_TOKEN:
serviceImpl.updateToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_MINT_TOKEN:
serviceImpl.mintToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BURN_TOKEN:
serviceImpl.burnToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_TOKEN:
serviceImpl.deleteToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_WIPE_TOKEN_ACCOUNT:
serviceImpl.wipeTokenAccount((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_FREEZE_TOKEN_ACCOUNT:
serviceImpl.freezeTokenAccount((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UNFREEZE_TOKEN_ACCOUNT:
serviceImpl.unfreezeTokenAccount((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GRANT_KYC_TO_TOKEN_ACCOUNT:
serviceImpl.grantKycToTokenAccount((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_KYC_FROM_TOKEN_ACCOUNT:
serviceImpl.revokeKycFromTokenAccount((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ASSOCIATE_TOKENS:
serviceImpl.associateTokens((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DISSOCIATE_TOKENS:
serviceImpl.dissociateTokens((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_TOKEN_FEE_SCHEDULE:
serviceImpl.updateTokenFeeSchedule((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TOKEN_INFO:
serviceImpl.getTokenInfo((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ACCOUNT_NFT_INFOS:
serviceImpl.getAccountNftInfos((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TOKEN_NFT_INFO:
serviceImpl.getTokenNftInfo((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TOKEN_NFT_INFOS:
serviceImpl.getTokenNftInfos((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PAUSE_TOKEN:
serviceImpl.pauseToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UNPAUSE_TOKEN:
serviceImpl.unpauseToken((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_CREATE_TOKEN)))
.addMethod(
getUpdateTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_UPDATE_TOKEN)))
.addMethod(
getMintTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_MINT_TOKEN)))
.addMethod(
getBurnTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_BURN_TOKEN)))
.addMethod(
getDeleteTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_DELETE_TOKEN)))
.addMethod(
getWipeTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_WIPE_TOKEN_ACCOUNT)))
.addMethod(
getFreezeTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_FREEZE_TOKEN_ACCOUNT)))
.addMethod(
getUnfreezeTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_UNFREEZE_TOKEN_ACCOUNT)))
.addMethod(
getGrantKycToTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_GRANT_KYC_TO_TOKEN_ACCOUNT)))
.addMethod(
getRevokeKycFromTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_REVOKE_KYC_FROM_TOKEN_ACCOUNT)))
.addMethod(
getAssociateTokensMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_ASSOCIATE_TOKENS)))
.addMethod(
getDissociateTokensMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_DISSOCIATE_TOKENS)))
.addMethod(
getUpdateTokenFeeScheduleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_UPDATE_TOKEN_FEE_SCHEDULE)))
.addMethod(
getGetTokenInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
service, METHODID_GET_TOKEN_INFO)))
.addMethod(
getGetAccountNftInfosMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
service, METHODID_GET_ACCOUNT_NFT_INFOS)))
.addMethod(
getGetTokenNftInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
service, METHODID_GET_TOKEN_NFT_INFO)))
.addMethod(
getGetTokenNftInfosMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
service, METHODID_GET_TOKEN_NFT_INFOS)))
.addMethod(
getPauseTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_PAUSE_TOKEN)))
.addMethod(
getUnpauseTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
service, METHODID_UNPAUSE_TOKEN)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (TokenServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getCreateTokenMethod())
.addMethod(getUpdateTokenMethod())
.addMethod(getMintTokenMethod())
.addMethod(getBurnTokenMethod())
.addMethod(getDeleteTokenMethod())
.addMethod(getWipeTokenAccountMethod())
.addMethod(getFreezeTokenAccountMethod())
.addMethod(getUnfreezeTokenAccountMethod())
.addMethod(getGrantKycToTokenAccountMethod())
.addMethod(getRevokeKycFromTokenAccountMethod())
.addMethod(getAssociateTokensMethod())
.addMethod(getDissociateTokensMethod())
.addMethod(getUpdateTokenFeeScheduleMethod())
.addMethod(getGetTokenInfoMethod())
.addMethod(getGetAccountNftInfosMethod())
.addMethod(getGetTokenNftInfoMethod())
.addMethod(getGetTokenNftInfosMethod())
.addMethod(getPauseTokenMethod())
.addMethod(getUnpauseTokenMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy