com.hederahashgraph.service.proto.java.TokenServiceGrpc Maven / Gradle / Ivy
The newest version!
package com.hederahashgraph.service.proto.java;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* Transactions and queries for the Token Service
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.45.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.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("createToken"))
.build();
}
}
}
return getCreateTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("updateToken"))
.build();
}
}
}
return getUpdateTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getMintTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "mintToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("mintToken"))
.build();
}
}
}
return getMintTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getBurnTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "burnToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("burnToken"))
.build();
}
}
}
return getBurnTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("deleteToken"))
.build();
}
}
}
return getDeleteTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getWipeTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "wipeTokenAccount",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("wipeTokenAccount"))
.build();
}
}
}
return getWipeTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getFreezeTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "freezeTokenAccount",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("freezeTokenAccount"))
.build();
}
}
}
return getFreezeTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getUnfreezeTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "unfreezeTokenAccount",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("unfreezeTokenAccount"))
.build();
}
}
}
return getUnfreezeTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getGrantKycToTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "grantKycToTokenAccount",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("grantKycToTokenAccount"))
.build();
}
}
}
return getGrantKycToTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokeKycFromTokenAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "revokeKycFromTokenAccount",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("revokeKycFromTokenAccount"))
.build();
}
}
}
return getRevokeKycFromTokenAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getAssociateTokensMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "associateTokens",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("associateTokens"))
.build();
}
}
}
return getAssociateTokensMethod;
}
private static volatile io.grpc.MethodDescriptor getDissociateTokensMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "dissociateTokens",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("dissociateTokens"))
.build();
}
}
}
return getDissociateTokensMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateTokenFeeScheduleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateTokenFeeSchedule",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("updateTokenFeeSchedule"))
.build();
}
}
}
return getUpdateTokenFeeScheduleMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTokenInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTokenInfo",
requestType = com.hederahashgraph.api.proto.java.Query.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Response.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("getTokenInfo"))
.build();
}
}
}
return getGetTokenInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountNftInfosMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getAccountNftInfos",
requestType = com.hederahashgraph.api.proto.java.Query.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Response.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("getAccountNftInfos"))
.build();
}
}
}
return getGetAccountNftInfosMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTokenNftInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTokenNftInfo",
requestType = com.hederahashgraph.api.proto.java.Query.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Response.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("getTokenNftInfo"))
.build();
}
}
}
return getGetTokenNftInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTokenNftInfosMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTokenNftInfos",
requestType = com.hederahashgraph.api.proto.java.Query.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Response.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("getTokenNftInfos"))
.build();
}
}
}
return getGetTokenNftInfosMethod;
}
private static volatile io.grpc.MethodDescriptor getPauseTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "pauseToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("pauseToken"))
.build();
}
}
}
return getPauseTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getUnpauseTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "unpauseToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.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.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("unpauseToken"))
.build();
}
}
}
return getUnpauseTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateNftsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateNfts",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateNftsMethod() {
io.grpc.MethodDescriptor getUpdateNftsMethod;
if ((getUpdateNftsMethod = TokenServiceGrpc.getUpdateNftsMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getUpdateNftsMethod = TokenServiceGrpc.getUpdateNftsMethod) == null) {
TokenServiceGrpc.getUpdateNftsMethod = getUpdateNftsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateNfts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("updateNfts"))
.build();
}
}
}
return getUpdateNftsMethod;
}
private static volatile io.grpc.MethodDescriptor getRejectTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "rejectToken",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRejectTokenMethod() {
io.grpc.MethodDescriptor getRejectTokenMethod;
if ((getRejectTokenMethod = TokenServiceGrpc.getRejectTokenMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getRejectTokenMethod = TokenServiceGrpc.getRejectTokenMethod) == null) {
TokenServiceGrpc.getRejectTokenMethod = getRejectTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "rejectToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("rejectToken"))
.build();
}
}
}
return getRejectTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getAirdropTokensMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "airdropTokens",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAirdropTokensMethod() {
io.grpc.MethodDescriptor getAirdropTokensMethod;
if ((getAirdropTokensMethod = TokenServiceGrpc.getAirdropTokensMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getAirdropTokensMethod = TokenServiceGrpc.getAirdropTokensMethod) == null) {
TokenServiceGrpc.getAirdropTokensMethod = getAirdropTokensMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "airdropTokens"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("airdropTokens"))
.build();
}
}
}
return getAirdropTokensMethod;
}
private static volatile io.grpc.MethodDescriptor getCancelAirdropMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "cancelAirdrop",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCancelAirdropMethod() {
io.grpc.MethodDescriptor getCancelAirdropMethod;
if ((getCancelAirdropMethod = TokenServiceGrpc.getCancelAirdropMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getCancelAirdropMethod = TokenServiceGrpc.getCancelAirdropMethod) == null) {
TokenServiceGrpc.getCancelAirdropMethod = getCancelAirdropMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "cancelAirdrop"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("cancelAirdrop"))
.build();
}
}
}
return getCancelAirdropMethod;
}
private static volatile io.grpc.MethodDescriptor getClaimAirdropMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "claimAirdrop",
requestType = com.hederahashgraph.api.proto.java.Transaction.class,
responseType = com.hederahashgraph.api.proto.java.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getClaimAirdropMethod() {
io.grpc.MethodDescriptor getClaimAirdropMethod;
if ((getClaimAirdropMethod = TokenServiceGrpc.getClaimAirdropMethod) == null) {
synchronized (TokenServiceGrpc.class) {
if ((getClaimAirdropMethod = TokenServiceGrpc.getClaimAirdropMethod) == null) {
TokenServiceGrpc.getClaimAirdropMethod = getClaimAirdropMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "claimAirdrop"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TokenServiceMethodDescriptorSupplier("claimAirdrop"))
.build();
}
}
}
return getClaimAirdropMethod;
}
/**
* 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 static abstract class TokenServiceImplBase implements io.grpc.BindableService {
/**
*
**
* Creates a new Token by submitting the transaction
*
*/
public void createToken(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTokenMethod(), responseObserver);
}
/**
*
**
* Updates the account by submitting the transaction
*
*/
public void updateToken(com.hederahashgraph.api.proto.java.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
*
*/
public void mintToken(com.hederahashgraph.api.proto.java.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
*
*/
public void burnToken(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBurnTokenMethod(), responseObserver);
}
/**
*
**
* Deletes a Token
*
*/
public void deleteToken(com.hederahashgraph.api.proto.java.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
*
*/
public void wipeTokenAccount(com.hederahashgraph.api.proto.java.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
*
*/
public void freezeTokenAccount(com.hederahashgraph.api.proto.java.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
*
*/
public void unfreezeTokenAccount(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnfreezeTokenAccountMethod(), responseObserver);
}
/**
*
**
* Flags the provided Account ID as having gone through KYC
*
*/
public void grantKycToTokenAccount(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGrantKycToTokenAccountMethod(), responseObserver);
}
/**
*
**
* Removes the KYC flag of the provided Account ID
*
*/
public void revokeKycFromTokenAccount(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeKycFromTokenAccountMethod(), responseObserver);
}
/**
*
**
* Associates tokens to an account
*
*/
public void associateTokens(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAssociateTokensMethod(), responseObserver);
}
/**
*
**
* Dissociates tokens from an account
*
*/
public void dissociateTokens(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDissociateTokensMethod(), responseObserver);
}
/**
*
**
* Updates the custom fee schedule on a token
*
*/
public void updateTokenFeeSchedule(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTokenFeeScheduleMethod(), responseObserver);
}
/**
*
**
* Retrieves the metadata of a token
*
*/
public void getTokenInfo(com.hederahashgraph.api.proto.java.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
public void getAccountNftInfos(com.hederahashgraph.api.proto.java.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
*
*/
public void getTokenNftInfo(com.hederahashgraph.api.proto.java.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
public void getTokenNftInfos(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTokenNftInfosMethod(), responseObserver);
}
/**
*
* Pause the token
*
*/
public void pauseToken(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseTokenMethod(), responseObserver);
}
/**
*
* Unpause the token
*
*/
public void unpauseToken(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnpauseTokenMethod(), responseObserver);
}
/**
*
**
* Updates the NFTs in a collection by TokenID and serial number
*
*/
public void updateNfts(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNftsMethod(), responseObserver);
}
/**
*
**
* Reject one or more tokens.<br/>
* This transaction SHALL transfer the full balance of one or more tokens from the requesting
* account to the treasury for each token. This transfer SHALL NOT charge any custom fee or
* royalty defined for the token(s) to be rejected.<br/>
* <h3>Effects on success</h3>
* <ul>
* <li>If the rejected token is fungible/common, the requesting account SHALL have a balance
* of 0 for the rejected token. The treasury balance SHALL increase by the amount that
* the requesting account decreased.</li>
* <li>If the rejected token is non-fungible/unique the requesting account SHALL NOT hold
* the specific serialized token that is rejected. The treasury account SHALL hold each
* specific serialized token that was rejected.</li>
* </li>
*
*/
public void rejectToken(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRejectTokenMethod(), responseObserver);
}
/**
*
**
* Airdrop one or more tokens to one or more accounts.<br/>
* This distributes tokens from the balance of one or more sending account(s) to the balance
* of one or more recipient accounts. Accounts will receive the tokens in one of four ways.
* <ul>
* <li>An account already associated to the token to be distributed SHALL receive the
* airdropped tokens immediately to the recipient account balance.</li>
* <li>An account with available automatic association slots SHALL be automatically
* associated to the token, and SHALL immediately receive the airdropped tokens to the
* recipient account balance.</li>
* <li>An account with "receiver signature required" set SHALL have a "Pending Airdrop"
* created and MUST claim that airdrop with a `claimAirdrop` transaction.</li>
* <li>An account with no available automatic association slots SHALL have a
* "Pending Airdrop" created and MUST claim that airdrop with a `claimAirdrop`
* transaction. </li>
* </ul>
* Any airdrop that completes immediately SHALL be irreversible. Any airdrop that results in a
* "Pending Airdrop" MAY be canceled via a `cancelAirdrop` transaction.<br/>
* All transfer fees (including custom fees and royalties), as well as the rent cost for the
* first auto-renewal period for any automatic-association slot occupied by the airdropped
* tokens, SHALL be charged to the account submitting this transaction.
*
*/
public void airdropTokens(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAirdropTokensMethod(), responseObserver);
}
/**
*
**
* Cancel one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account *sending* an airdrop to be canceled.
*
*/
public void cancelAirdrop(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelAirdropMethod(), responseObserver);
}
/**
*
**
* Claim one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account **receiving** an
* airdrop to be claimed.<br>
* If a "Sender" lacks sufficient balance to fulfill the airdrop at the
* time the claim is made, that claim SHALL fail.
*
*/
public void claimAirdrop(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getClaimAirdropMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CREATE_TOKEN)))
.addMethod(
getUpdateTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UPDATE_TOKEN)))
.addMethod(
getMintTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_MINT_TOKEN)))
.addMethod(
getBurnTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_BURN_TOKEN)))
.addMethod(
getDeleteTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_DELETE_TOKEN)))
.addMethod(
getWipeTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_WIPE_TOKEN_ACCOUNT)))
.addMethod(
getFreezeTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_FREEZE_TOKEN_ACCOUNT)))
.addMethod(
getUnfreezeTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UNFREEZE_TOKEN_ACCOUNT)))
.addMethod(
getGrantKycToTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_GRANT_KYC_TO_TOKEN_ACCOUNT)))
.addMethod(
getRevokeKycFromTokenAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_REVOKE_KYC_FROM_TOKEN_ACCOUNT)))
.addMethod(
getAssociateTokensMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_ASSOCIATE_TOKENS)))
.addMethod(
getDissociateTokensMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_DISSOCIATE_TOKENS)))
.addMethod(
getUpdateTokenFeeScheduleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UPDATE_TOKEN_FEE_SCHEDULE)))
.addMethod(
getGetTokenInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_TOKEN_INFO)))
.addMethod(
getGetAccountNftInfosMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_ACCOUNT_NFT_INFOS)))
.addMethod(
getGetTokenNftInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_TOKEN_NFT_INFO)))
.addMethod(
getGetTokenNftInfosMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_TOKEN_NFT_INFOS)))
.addMethod(
getPauseTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_PAUSE_TOKEN)))
.addMethod(
getUnpauseTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UNPAUSE_TOKEN)))
.addMethod(
getUpdateNftsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UPDATE_NFTS)))
.addMethod(
getRejectTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_REJECT_TOKEN)))
.addMethod(
getAirdropTokensMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_AIRDROP_TOKENS)))
.addMethod(
getCancelAirdropMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CANCEL_AIRDROP)))
.addMethod(
getClaimAirdropMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CLAIM_AIRDROP)))
.build();
}
}
/**
*
**
* 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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUnpauseTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Updates the NFTs in a collection by TokenID and serial number
*
*/
public void updateNfts(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateNftsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Reject one or more tokens.<br/>
* This transaction SHALL transfer the full balance of one or more tokens from the requesting
* account to the treasury for each token. This transfer SHALL NOT charge any custom fee or
* royalty defined for the token(s) to be rejected.<br/>
* <h3>Effects on success</h3>
* <ul>
* <li>If the rejected token is fungible/common, the requesting account SHALL have a balance
* of 0 for the rejected token. The treasury balance SHALL increase by the amount that
* the requesting account decreased.</li>
* <li>If the rejected token is non-fungible/unique the requesting account SHALL NOT hold
* the specific serialized token that is rejected. The treasury account SHALL hold each
* specific serialized token that was rejected.</li>
* </li>
*
*/
public void rejectToken(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRejectTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Airdrop one or more tokens to one or more accounts.<br/>
* This distributes tokens from the balance of one or more sending account(s) to the balance
* of one or more recipient accounts. Accounts will receive the tokens in one of four ways.
* <ul>
* <li>An account already associated to the token to be distributed SHALL receive the
* airdropped tokens immediately to the recipient account balance.</li>
* <li>An account with available automatic association slots SHALL be automatically
* associated to the token, and SHALL immediately receive the airdropped tokens to the
* recipient account balance.</li>
* <li>An account with "receiver signature required" set SHALL have a "Pending Airdrop"
* created and MUST claim that airdrop with a `claimAirdrop` transaction.</li>
* <li>An account with no available automatic association slots SHALL have a
* "Pending Airdrop" created and MUST claim that airdrop with a `claimAirdrop`
* transaction. </li>
* </ul>
* Any airdrop that completes immediately SHALL be irreversible. Any airdrop that results in a
* "Pending Airdrop" MAY be canceled via a `cancelAirdrop` transaction.<br/>
* All transfer fees (including custom fees and royalties), as well as the rent cost for the
* first auto-renewal period for any automatic-association slot occupied by the airdropped
* tokens, SHALL be charged to the account submitting this transaction.
*
*/
public void airdropTokens(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAirdropTokensMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Cancel one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account *sending* an airdrop to be canceled.
*
*/
public void cancelAirdrop(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCancelAirdropMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Claim one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account **receiving** an
* airdrop to be claimed.<br>
* If a "Sender" lacks sufficient balance to fulfill the airdrop at the
* time the claim is made, that claim SHALL fail.
*
*/
public void claimAirdrop(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getClaimAirdropMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionResponse createToken(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Updates the account by submitting the transaction
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse updateToken(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionResponse mintToken(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionResponse burnToken(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBurnTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Deletes a Token
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse deleteToken(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionResponse wipeTokenAccount(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionResponse freezeTokenAccount(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionResponse unfreezeTokenAccount(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUnfreezeTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Flags the provided Account ID as having gone through KYC
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse grantKycToTokenAccount(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGrantKycToTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Removes the KYC flag of the provided Account ID
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse revokeKycFromTokenAccount(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokeKycFromTokenAccountMethod(), getCallOptions(), request);
}
/**
*
**
* Associates tokens to an account
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse associateTokens(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAssociateTokensMethod(), getCallOptions(), request);
}
/**
*
**
* Dissociates tokens from an account
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse dissociateTokens(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDissociateTokensMethod(), getCallOptions(), request);
}
/**
*
**
* Updates the custom fee schedule on a token
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse updateTokenFeeSchedule(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateTokenFeeScheduleMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the metadata of a token
*
*/
public com.hederahashgraph.api.proto.java.Response getTokenInfo(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Response getAccountNftInfos(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Response getTokenNftInfo(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Response getTokenNftInfos(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTokenNftInfosMethod(), getCallOptions(), request);
}
/**
*
* Pause the token
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse pauseToken(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPauseTokenMethod(), getCallOptions(), request);
}
/**
*
* Unpause the token
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse unpauseToken(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUnpauseTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Updates the NFTs in a collection by TokenID and serial number
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse updateNfts(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateNftsMethod(), getCallOptions(), request);
}
/**
*
**
* Reject one or more tokens.<br/>
* This transaction SHALL transfer the full balance of one or more tokens from the requesting
* account to the treasury for each token. This transfer SHALL NOT charge any custom fee or
* royalty defined for the token(s) to be rejected.<br/>
* <h3>Effects on success</h3>
* <ul>
* <li>If the rejected token is fungible/common, the requesting account SHALL have a balance
* of 0 for the rejected token. The treasury balance SHALL increase by the amount that
* the requesting account decreased.</li>
* <li>If the rejected token is non-fungible/unique the requesting account SHALL NOT hold
* the specific serialized token that is rejected. The treasury account SHALL hold each
* specific serialized token that was rejected.</li>
* </li>
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse rejectToken(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRejectTokenMethod(), getCallOptions(), request);
}
/**
*
**
* Airdrop one or more tokens to one or more accounts.<br/>
* This distributes tokens from the balance of one or more sending account(s) to the balance
* of one or more recipient accounts. Accounts will receive the tokens in one of four ways.
* <ul>
* <li>An account already associated to the token to be distributed SHALL receive the
* airdropped tokens immediately to the recipient account balance.</li>
* <li>An account with available automatic association slots SHALL be automatically
* associated to the token, and SHALL immediately receive the airdropped tokens to the
* recipient account balance.</li>
* <li>An account with "receiver signature required" set SHALL have a "Pending Airdrop"
* created and MUST claim that airdrop with a `claimAirdrop` transaction.</li>
* <li>An account with no available automatic association slots SHALL have a
* "Pending Airdrop" created and MUST claim that airdrop with a `claimAirdrop`
* transaction. </li>
* </ul>
* Any airdrop that completes immediately SHALL be irreversible. Any airdrop that results in a
* "Pending Airdrop" MAY be canceled via a `cancelAirdrop` transaction.<br/>
* All transfer fees (including custom fees and royalties), as well as the rent cost for the
* first auto-renewal period for any automatic-association slot occupied by the airdropped
* tokens, SHALL be charged to the account submitting this transaction.
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse airdropTokens(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAirdropTokensMethod(), getCallOptions(), request);
}
/**
*
**
* Cancel one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account *sending* an airdrop to be canceled.
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse cancelAirdrop(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCancelAirdropMethod(), getCallOptions(), request);
}
/**
*
**
* Claim one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account **receiving** an
* airdrop to be claimed.<br>
* If a "Sender" lacks sufficient balance to fulfill the airdrop at the
* time the claim is made, that claim SHALL fail.
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse claimAirdrop(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getClaimAirdropMethod(), getCallOptions(), request);
}
}
/**
*
**
* 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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUnpauseTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Updates the NFTs in a collection by TokenID and serial number
*
*/
public com.google.common.util.concurrent.ListenableFuture updateNfts(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateNftsMethod(), getCallOptions()), request);
}
/**
*
**
* Reject one or more tokens.<br/>
* This transaction SHALL transfer the full balance of one or more tokens from the requesting
* account to the treasury for each token. This transfer SHALL NOT charge any custom fee or
* royalty defined for the token(s) to be rejected.<br/>
* <h3>Effects on success</h3>
* <ul>
* <li>If the rejected token is fungible/common, the requesting account SHALL have a balance
* of 0 for the rejected token. The treasury balance SHALL increase by the amount that
* the requesting account decreased.</li>
* <li>If the rejected token is non-fungible/unique the requesting account SHALL NOT hold
* the specific serialized token that is rejected. The treasury account SHALL hold each
* specific serialized token that was rejected.</li>
* </li>
*
*/
public com.google.common.util.concurrent.ListenableFuture rejectToken(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRejectTokenMethod(), getCallOptions()), request);
}
/**
*
**
* Airdrop one or more tokens to one or more accounts.<br/>
* This distributes tokens from the balance of one or more sending account(s) to the balance
* of one or more recipient accounts. Accounts will receive the tokens in one of four ways.
* <ul>
* <li>An account already associated to the token to be distributed SHALL receive the
* airdropped tokens immediately to the recipient account balance.</li>
* <li>An account with available automatic association slots SHALL be automatically
* associated to the token, and SHALL immediately receive the airdropped tokens to the
* recipient account balance.</li>
* <li>An account with "receiver signature required" set SHALL have a "Pending Airdrop"
* created and MUST claim that airdrop with a `claimAirdrop` transaction.</li>
* <li>An account with no available automatic association slots SHALL have a
* "Pending Airdrop" created and MUST claim that airdrop with a `claimAirdrop`
* transaction. </li>
* </ul>
* Any airdrop that completes immediately SHALL be irreversible. Any airdrop that results in a
* "Pending Airdrop" MAY be canceled via a `cancelAirdrop` transaction.<br/>
* All transfer fees (including custom fees and royalties), as well as the rent cost for the
* first auto-renewal period for any automatic-association slot occupied by the airdropped
* tokens, SHALL be charged to the account submitting this transaction.
*
*/
public com.google.common.util.concurrent.ListenableFuture airdropTokens(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAirdropTokensMethod(), getCallOptions()), request);
}
/**
*
**
* Cancel one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account *sending* an airdrop to be canceled.
*
*/
public com.google.common.util.concurrent.ListenableFuture cancelAirdrop(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCancelAirdropMethod(), getCallOptions()), request);
}
/**
*
**
* Claim one or more pending airdrops.
* <p>
* This transaction MUST be signed by _each_ account **receiving** an
* airdrop to be claimed.<br>
* If a "Sender" lacks sufficient balance to fulfill the airdrop at the
* time the claim is made, that claim SHALL fail.
*
*/
public com.google.common.util.concurrent.ListenableFuture claimAirdrop(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getClaimAirdropMethod(), 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 int METHODID_UPDATE_NFTS = 19;
private static final int METHODID_REJECT_TOKEN = 20;
private static final int METHODID_AIRDROP_TOKENS = 21;
private static final int METHODID_CANCEL_AIRDROP = 22;
private static final int METHODID_CLAIM_AIRDROP = 23;
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 TokenServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(TokenServiceImplBase 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.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_TOKEN:
serviceImpl.updateToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_MINT_TOKEN:
serviceImpl.mintToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BURN_TOKEN:
serviceImpl.burnToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_TOKEN:
serviceImpl.deleteToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_WIPE_TOKEN_ACCOUNT:
serviceImpl.wipeTokenAccount((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_FREEZE_TOKEN_ACCOUNT:
serviceImpl.freezeTokenAccount((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UNFREEZE_TOKEN_ACCOUNT:
serviceImpl.unfreezeTokenAccount((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GRANT_KYC_TO_TOKEN_ACCOUNT:
serviceImpl.grantKycToTokenAccount((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_KYC_FROM_TOKEN_ACCOUNT:
serviceImpl.revokeKycFromTokenAccount((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ASSOCIATE_TOKENS:
serviceImpl.associateTokens((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DISSOCIATE_TOKENS:
serviceImpl.dissociateTokens((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_TOKEN_FEE_SCHEDULE:
serviceImpl.updateTokenFeeSchedule((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TOKEN_INFO:
serviceImpl.getTokenInfo((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ACCOUNT_NFT_INFOS:
serviceImpl.getAccountNftInfos((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TOKEN_NFT_INFO:
serviceImpl.getTokenNftInfo((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TOKEN_NFT_INFOS:
serviceImpl.getTokenNftInfos((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PAUSE_TOKEN:
serviceImpl.pauseToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UNPAUSE_TOKEN:
serviceImpl.unpauseToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_NFTS:
serviceImpl.updateNfts((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REJECT_TOKEN:
serviceImpl.rejectToken((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_AIRDROP_TOKENS:
serviceImpl.airdropTokens((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CANCEL_AIRDROP:
serviceImpl.cancelAirdrop((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CLAIM_AIRDROP:
serviceImpl.claimAirdrop((com.hederahashgraph.api.proto.java.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();
}
}
}
private static abstract class TokenServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TokenServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.hederahashgraph.service.proto.java.TokenServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("TokenService");
}
}
private static final class TokenServiceFileDescriptorSupplier
extends TokenServiceBaseDescriptorSupplier {
TokenServiceFileDescriptorSupplier() {}
}
private static final class TokenServiceMethodDescriptorSupplier
extends TokenServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
TokenServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
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)
.setSchemaDescriptor(new TokenServiceFileDescriptorSupplier())
.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())
.addMethod(getUpdateNftsMethod())
.addMethod(getRejectTokenMethod())
.addMethod(getAirdropTokensMethod())
.addMethod(getCancelAirdropMethod())
.addMethod(getClaimAirdropMethod())
.build();
}
}
}
return result;
}
}