com.hederahashgraph.service.proto.java.SmartContractServiceGrpc Maven / Gradle / Ivy
The newest version!
package com.hederahashgraph.service.proto.java;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* Transactions and queries for the file service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.45.1)",
comments = "Source: smart_contract_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SmartContractServiceGrpc {
private SmartContractServiceGrpc() {}
public static final String SERVICE_NAME = "proto.SmartContractService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateContractMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createContract",
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 getCreateContractMethod() {
io.grpc.MethodDescriptor getCreateContractMethod;
if ((getCreateContractMethod = SmartContractServiceGrpc.getCreateContractMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getCreateContractMethod = SmartContractServiceGrpc.getCreateContractMethod) == null) {
SmartContractServiceGrpc.getCreateContractMethod = getCreateContractMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createContract"))
.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 SmartContractServiceMethodDescriptorSupplier("createContract"))
.build();
}
}
}
return getCreateContractMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateContractMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateContract",
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 getUpdateContractMethod() {
io.grpc.MethodDescriptor getUpdateContractMethod;
if ((getUpdateContractMethod = SmartContractServiceGrpc.getUpdateContractMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getUpdateContractMethod = SmartContractServiceGrpc.getUpdateContractMethod) == null) {
SmartContractServiceGrpc.getUpdateContractMethod = getUpdateContractMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateContract"))
.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 SmartContractServiceMethodDescriptorSupplier("updateContract"))
.build();
}
}
}
return getUpdateContractMethod;
}
private static volatile io.grpc.MethodDescriptor getContractCallMethodMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "contractCallMethod",
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 getContractCallMethodMethod() {
io.grpc.MethodDescriptor getContractCallMethodMethod;
if ((getContractCallMethodMethod = SmartContractServiceGrpc.getContractCallMethodMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getContractCallMethodMethod = SmartContractServiceGrpc.getContractCallMethodMethod) == null) {
SmartContractServiceGrpc.getContractCallMethodMethod = getContractCallMethodMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "contractCallMethod"))
.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 SmartContractServiceMethodDescriptorSupplier("contractCallMethod"))
.build();
}
}
}
return getContractCallMethodMethod;
}
private static volatile io.grpc.MethodDescriptor getGetContractInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getContractInfo",
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 getGetContractInfoMethod() {
io.grpc.MethodDescriptor getGetContractInfoMethod;
if ((getGetContractInfoMethod = SmartContractServiceGrpc.getGetContractInfoMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getGetContractInfoMethod = SmartContractServiceGrpc.getGetContractInfoMethod) == null) {
SmartContractServiceGrpc.getGetContractInfoMethod = getGetContractInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getContractInfo"))
.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 SmartContractServiceMethodDescriptorSupplier("getContractInfo"))
.build();
}
}
}
return getGetContractInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getContractCallLocalMethodMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "contractCallLocalMethod",
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 getContractCallLocalMethodMethod() {
io.grpc.MethodDescriptor getContractCallLocalMethodMethod;
if ((getContractCallLocalMethodMethod = SmartContractServiceGrpc.getContractCallLocalMethodMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getContractCallLocalMethodMethod = SmartContractServiceGrpc.getContractCallLocalMethodMethod) == null) {
SmartContractServiceGrpc.getContractCallLocalMethodMethod = getContractCallLocalMethodMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "contractCallLocalMethod"))
.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 SmartContractServiceMethodDescriptorSupplier("contractCallLocalMethod"))
.build();
}
}
}
return getContractCallLocalMethodMethod;
}
private static volatile io.grpc.MethodDescriptor getContractGetBytecodeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ContractGetBytecode",
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 getContractGetBytecodeMethod() {
io.grpc.MethodDescriptor getContractGetBytecodeMethod;
if ((getContractGetBytecodeMethod = SmartContractServiceGrpc.getContractGetBytecodeMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getContractGetBytecodeMethod = SmartContractServiceGrpc.getContractGetBytecodeMethod) == null) {
SmartContractServiceGrpc.getContractGetBytecodeMethod = getContractGetBytecodeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ContractGetBytecode"))
.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 SmartContractServiceMethodDescriptorSupplier("ContractGetBytecode"))
.build();
}
}
}
return getContractGetBytecodeMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBySolidityIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getBySolidityID",
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 getGetBySolidityIDMethod() {
io.grpc.MethodDescriptor getGetBySolidityIDMethod;
if ((getGetBySolidityIDMethod = SmartContractServiceGrpc.getGetBySolidityIDMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getGetBySolidityIDMethod = SmartContractServiceGrpc.getGetBySolidityIDMethod) == null) {
SmartContractServiceGrpc.getGetBySolidityIDMethod = getGetBySolidityIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getBySolidityID"))
.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 SmartContractServiceMethodDescriptorSupplier("getBySolidityID"))
.build();
}
}
}
return getGetBySolidityIDMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTxRecordByContractIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getTxRecordByContractID",
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 getGetTxRecordByContractIDMethod() {
io.grpc.MethodDescriptor getGetTxRecordByContractIDMethod;
if ((getGetTxRecordByContractIDMethod = SmartContractServiceGrpc.getGetTxRecordByContractIDMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getGetTxRecordByContractIDMethod = SmartContractServiceGrpc.getGetTxRecordByContractIDMethod) == null) {
SmartContractServiceGrpc.getGetTxRecordByContractIDMethod = getGetTxRecordByContractIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTxRecordByContractID"))
.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 SmartContractServiceMethodDescriptorSupplier("getTxRecordByContractID"))
.build();
}
}
}
return getGetTxRecordByContractIDMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteContractMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteContract",
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 getDeleteContractMethod() {
io.grpc.MethodDescriptor getDeleteContractMethod;
if ((getDeleteContractMethod = SmartContractServiceGrpc.getDeleteContractMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getDeleteContractMethod = SmartContractServiceGrpc.getDeleteContractMethod) == null) {
SmartContractServiceGrpc.getDeleteContractMethod = getDeleteContractMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteContract"))
.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 SmartContractServiceMethodDescriptorSupplier("deleteContract"))
.build();
}
}
}
return getDeleteContractMethod;
}
private static volatile io.grpc.MethodDescriptor getSystemDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "systemDelete",
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 getSystemDeleteMethod() {
io.grpc.MethodDescriptor getSystemDeleteMethod;
if ((getSystemDeleteMethod = SmartContractServiceGrpc.getSystemDeleteMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getSystemDeleteMethod = SmartContractServiceGrpc.getSystemDeleteMethod) == null) {
SmartContractServiceGrpc.getSystemDeleteMethod = getSystemDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "systemDelete"))
.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 SmartContractServiceMethodDescriptorSupplier("systemDelete"))
.build();
}
}
}
return getSystemDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getSystemUndeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "systemUndelete",
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 getSystemUndeleteMethod() {
io.grpc.MethodDescriptor getSystemUndeleteMethod;
if ((getSystemUndeleteMethod = SmartContractServiceGrpc.getSystemUndeleteMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getSystemUndeleteMethod = SmartContractServiceGrpc.getSystemUndeleteMethod) == null) {
SmartContractServiceGrpc.getSystemUndeleteMethod = getSystemUndeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "systemUndelete"))
.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 SmartContractServiceMethodDescriptorSupplier("systemUndelete"))
.build();
}
}
}
return getSystemUndeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getCallEthereumMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "callEthereum",
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 getCallEthereumMethod() {
io.grpc.MethodDescriptor getCallEthereumMethod;
if ((getCallEthereumMethod = SmartContractServiceGrpc.getCallEthereumMethod) == null) {
synchronized (SmartContractServiceGrpc.class) {
if ((getCallEthereumMethod = SmartContractServiceGrpc.getCallEthereumMethod) == null) {
SmartContractServiceGrpc.getCallEthereumMethod = getCallEthereumMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "callEthereum"))
.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 SmartContractServiceMethodDescriptorSupplier("callEthereum"))
.build();
}
}
}
return getCallEthereumMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SmartContractServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartContractServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartContractServiceStub(channel, callOptions);
}
};
return SmartContractServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SmartContractServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartContractServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartContractServiceBlockingStub(channel, callOptions);
}
};
return SmartContractServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SmartContractServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartContractServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartContractServiceFutureStub(channel, callOptions);
}
};
return SmartContractServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static abstract class SmartContractServiceImplBase implements io.grpc.BindableService {
/**
*
**
* Creates a contract
*
*/
public void createContract(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateContractMethod(), responseObserver);
}
/**
*
**
* Updates a contract with the content
*
*/
public void updateContract(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateContractMethod(), responseObserver);
}
/**
*
**
* Calls a contract
*
*/
public void contractCallMethod(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getContractCallMethodMethod(), responseObserver);
}
/**
*
**
* Retrieves the contract information
*
*/
public void getContractInfo(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContractInfoMethod(), responseObserver);
}
/**
*
**
* Calls a smart contract to be run on a single node
*
*/
public void contractCallLocalMethod(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getContractCallLocalMethodMethod(), responseObserver);
}
/**
*
**
* Retrieves the runtime code of a contract
*
*/
public void contractGetBytecode(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getContractGetBytecodeMethod(), responseObserver);
}
/**
*
**
* Retrieves a contract by its Solidity address
*
*/
public void getBySolidityID(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBySolidityIDMethod(), responseObserver);
}
/**
*
**
* Always returns an empty record list, as contract accounts are never effective payers for
* transactions
*
*/
@java.lang.Deprecated
public void getTxRecordByContractID(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTxRecordByContractIDMethod(), responseObserver);
}
/**
*
**
* Deletes a contract instance and transfers any remaining hbars to a specified receiver
*
*/
public void deleteContract(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteContractMethod(), responseObserver);
}
/**
*
**
* Deletes a contract if the submitting account has network admin privileges
*
*/
public void systemDelete(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSystemDeleteMethod(), responseObserver);
}
/**
*
**
* Undeletes a contract if the submitting account has network admin privileges
*
*/
public void systemUndelete(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSystemUndeleteMethod(), responseObserver);
}
/**
*
**
* Ethereum transaction
*
*/
public void callEthereum(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCallEthereumMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateContractMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CREATE_CONTRACT)))
.addMethod(
getUpdateContractMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UPDATE_CONTRACT)))
.addMethod(
getContractCallMethodMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CONTRACT_CALL_METHOD)))
.addMethod(
getGetContractInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_CONTRACT_INFO)))
.addMethod(
getContractCallLocalMethodMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_CONTRACT_CALL_LOCAL_METHOD)))
.addMethod(
getContractGetBytecodeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_CONTRACT_GET_BYTECODE)))
.addMethod(
getGetBySolidityIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_BY_SOLIDITY_ID)))
.addMethod(
getGetTxRecordByContractIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_TX_RECORD_BY_CONTRACT_ID)))
.addMethod(
getDeleteContractMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_DELETE_CONTRACT)))
.addMethod(
getSystemDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_SYSTEM_DELETE)))
.addMethod(
getSystemUndeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_SYSTEM_UNDELETE)))
.addMethod(
getCallEthereumMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CALL_ETHEREUM)))
.build();
}
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static final class SmartContractServiceStub extends io.grpc.stub.AbstractAsyncStub {
private SmartContractServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartContractServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartContractServiceStub(channel, callOptions);
}
/**
*
**
* Creates a contract
*
*/
public void createContract(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateContractMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Updates a contract with the content
*
*/
public void updateContract(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateContractMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Calls a contract
*
*/
public void contractCallMethod(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getContractCallMethodMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves the contract information
*
*/
public void getContractInfo(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetContractInfoMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Calls a smart contract to be run on a single node
*
*/
public void contractCallLocalMethod(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getContractCallLocalMethodMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves the runtime code of a contract
*
*/
public void contractGetBytecode(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getContractGetBytecodeMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves a contract by its Solidity address
*
*/
public void getBySolidityID(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBySolidityIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Always returns an empty record list, as contract accounts are never effective payers for
* transactions
*
*/
@java.lang.Deprecated
public void getTxRecordByContractID(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTxRecordByContractIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Deletes a contract instance and transfers any remaining hbars to a specified receiver
*
*/
public void deleteContract(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteContractMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Deletes a contract if the submitting account has network admin privileges
*
*/
public void systemDelete(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSystemDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Undeletes a contract if the submitting account has network admin privileges
*
*/
public void systemUndelete(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSystemUndeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Ethereum transaction
*
*/
public void callEthereum(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCallEthereumMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static final class SmartContractServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SmartContractServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartContractServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartContractServiceBlockingStub(channel, callOptions);
}
/**
*
**
* Creates a contract
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse createContract(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateContractMethod(), getCallOptions(), request);
}
/**
*
**
* Updates a contract with the content
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse updateContract(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateContractMethod(), getCallOptions(), request);
}
/**
*
**
* Calls a contract
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse contractCallMethod(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getContractCallMethodMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the contract information
*
*/
public com.hederahashgraph.api.proto.java.Response getContractInfo(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetContractInfoMethod(), getCallOptions(), request);
}
/**
*
**
* Calls a smart contract to be run on a single node
*
*/
public com.hederahashgraph.api.proto.java.Response contractCallLocalMethod(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getContractCallLocalMethodMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the runtime code of a contract
*
*/
public com.hederahashgraph.api.proto.java.Response contractGetBytecode(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getContractGetBytecodeMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves a contract by its Solidity address
*
*/
public com.hederahashgraph.api.proto.java.Response getBySolidityID(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBySolidityIDMethod(), getCallOptions(), request);
}
/**
*
**
* Always returns an empty record list, as contract accounts are never effective payers for
* transactions
*
*/
@java.lang.Deprecated
public com.hederahashgraph.api.proto.java.Response getTxRecordByContractID(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTxRecordByContractIDMethod(), getCallOptions(), request);
}
/**
*
**
* Deletes a contract instance and transfers any remaining hbars to a specified receiver
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse deleteContract(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteContractMethod(), getCallOptions(), request);
}
/**
*
**
* Deletes a contract if the submitting account has network admin privileges
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse systemDelete(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSystemDeleteMethod(), getCallOptions(), request);
}
/**
*
**
* Undeletes a contract if the submitting account has network admin privileges
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse systemUndelete(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSystemUndeleteMethod(), getCallOptions(), request);
}
/**
*
**
* Ethereum transaction
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse callEthereum(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCallEthereumMethod(), getCallOptions(), request);
}
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static final class SmartContractServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private SmartContractServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartContractServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartContractServiceFutureStub(channel, callOptions);
}
/**
*
**
* Creates a contract
*
*/
public com.google.common.util.concurrent.ListenableFuture createContract(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateContractMethod(), getCallOptions()), request);
}
/**
*
**
* Updates a contract with the content
*
*/
public com.google.common.util.concurrent.ListenableFuture updateContract(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateContractMethod(), getCallOptions()), request);
}
/**
*
**
* Calls a contract
*
*/
public com.google.common.util.concurrent.ListenableFuture contractCallMethod(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getContractCallMethodMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves the contract information
*
*/
public com.google.common.util.concurrent.ListenableFuture getContractInfo(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetContractInfoMethod(), getCallOptions()), request);
}
/**
*
**
* Calls a smart contract to be run on a single node
*
*/
public com.google.common.util.concurrent.ListenableFuture contractCallLocalMethod(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getContractCallLocalMethodMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves the runtime code of a contract
*
*/
public com.google.common.util.concurrent.ListenableFuture contractGetBytecode(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getContractGetBytecodeMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves a contract by its Solidity address
*
*/
public com.google.common.util.concurrent.ListenableFuture getBySolidityID(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBySolidityIDMethod(), getCallOptions()), request);
}
/**
*
**
* Always returns an empty record list, as contract accounts are never effective payers for
* transactions
*
*/
@java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture getTxRecordByContractID(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTxRecordByContractIDMethod(), getCallOptions()), request);
}
/**
*
**
* Deletes a contract instance and transfers any remaining hbars to a specified receiver
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteContract(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteContractMethod(), getCallOptions()), request);
}
/**
*
**
* Deletes a contract if the submitting account has network admin privileges
*
*/
public com.google.common.util.concurrent.ListenableFuture systemDelete(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSystemDeleteMethod(), getCallOptions()), request);
}
/**
*
**
* Undeletes a contract if the submitting account has network admin privileges
*
*/
public com.google.common.util.concurrent.ListenableFuture systemUndelete(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSystemUndeleteMethod(), getCallOptions()), request);
}
/**
*
**
* Ethereum transaction
*
*/
public com.google.common.util.concurrent.ListenableFuture callEthereum(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCallEthereumMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_CONTRACT = 0;
private static final int METHODID_UPDATE_CONTRACT = 1;
private static final int METHODID_CONTRACT_CALL_METHOD = 2;
private static final int METHODID_GET_CONTRACT_INFO = 3;
private static final int METHODID_CONTRACT_CALL_LOCAL_METHOD = 4;
private static final int METHODID_CONTRACT_GET_BYTECODE = 5;
private static final int METHODID_GET_BY_SOLIDITY_ID = 6;
private static final int METHODID_GET_TX_RECORD_BY_CONTRACT_ID = 7;
private static final int METHODID_DELETE_CONTRACT = 8;
private static final int METHODID_SYSTEM_DELETE = 9;
private static final int METHODID_SYSTEM_UNDELETE = 10;
private static final int METHODID_CALL_ETHEREUM = 11;
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 SmartContractServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(SmartContractServiceImplBase 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_CONTRACT:
serviceImpl.createContract((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CONTRACT:
serviceImpl.updateContract((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTRACT_CALL_METHOD:
serviceImpl.contractCallMethod((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONTRACT_INFO:
serviceImpl.getContractInfo((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTRACT_CALL_LOCAL_METHOD:
serviceImpl.contractCallLocalMethod((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTRACT_GET_BYTECODE:
serviceImpl.contractGetBytecode((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BY_SOLIDITY_ID:
serviceImpl.getBySolidityID((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TX_RECORD_BY_CONTRACT_ID:
serviceImpl.getTxRecordByContractID((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_CONTRACT:
serviceImpl.deleteContract((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SYSTEM_DELETE:
serviceImpl.systemDelete((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SYSTEM_UNDELETE:
serviceImpl.systemUndelete((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CALL_ETHEREUM:
serviceImpl.callEthereum((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 SmartContractServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SmartContractServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.hederahashgraph.service.proto.java.SmartContractServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SmartContractService");
}
}
private static final class SmartContractServiceFileDescriptorSupplier
extends SmartContractServiceBaseDescriptorSupplier {
SmartContractServiceFileDescriptorSupplier() {}
}
private static final class SmartContractServiceMethodDescriptorSupplier
extends SmartContractServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
SmartContractServiceMethodDescriptorSupplier(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 (SmartContractServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SmartContractServiceFileDescriptorSupplier())
.addMethod(getCreateContractMethod())
.addMethod(getUpdateContractMethod())
.addMethod(getContractCallMethodMethod())
.addMethod(getGetContractInfoMethod())
.addMethod(getContractCallLocalMethodMethod())
.addMethod(getContractGetBytecodeMethod())
.addMethod(getGetBySolidityIDMethod())
.addMethod(getGetTxRecordByContractIDMethod())
.addMethod(getDeleteContractMethod())
.addMethod(getSystemDeleteMethod())
.addMethod(getSystemUndeleteMethod())
.addMethod(getCallEthereumMethod())
.build();
}
}
}
return result;
}
}