com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
package com.hedera.hashgraph.sdk.proto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* Transactions and queries for the file service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.50.2)",
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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Query.class,
responseType = com.hedera.hashgraph.sdk.proto.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction.class,
responseType = com.hedera.hashgraph.sdk.proto.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor 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.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateContractMethod(), responseObserver);
}
/**
*
**
* Updates a contract with the content
*
*/
public void updateContract(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateContractMethod(), responseObserver);
}
/**
*
**
* Calls a contract
*
*/
public void contractCallMethod(com.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getContractCallMethodMethod(), responseObserver);
}
/**
*
**
* Retrieves the contract information
*
*/
public void getContractInfo(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSystemUndeleteMethod(), responseObserver);
}
/**
*
**
* Ethereum transaction
*
*/
public void callEthereum(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
this, METHODID_CREATE_CONTRACT)))
.addMethod(
getUpdateContractMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
this, METHODID_UPDATE_CONTRACT)))
.addMethod(
getContractCallMethodMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
this, METHODID_CONTRACT_CALL_METHOD)))
.addMethod(
getGetContractInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
this, METHODID_GET_CONTRACT_INFO)))
.addMethod(
getContractCallLocalMethodMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
this, METHODID_CONTRACT_CALL_LOCAL_METHOD)))
.addMethod(
getContractGetBytecodeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
this, METHODID_CONTRACT_GET_BYTECODE)))
.addMethod(
getGetBySolidityIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
this, METHODID_GET_BY_SOLIDITY_ID)))
.addMethod(
getGetTxRecordByContractIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Query,
com.hedera.hashgraph.sdk.proto.Response>(
this, METHODID_GET_TX_RECORD_BY_CONTRACT_ID)))
.addMethod(
getDeleteContractMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
this, METHODID_DELETE_CONTRACT)))
.addMethod(
getSystemDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
this, METHODID_SYSTEM_DELETE)))
.addMethod(
getSystemUndeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.TransactionResponse>(
this, METHODID_SYSTEM_UNDELETE)))
.addMethod(
getCallEthereumMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hedera.hashgraph.sdk.proto.Transaction,
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSystemUndeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Ethereum transaction
*
*/
public void callEthereum(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionResponse createContract(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateContractMethod(), getCallOptions(), request);
}
/**
*
**
* Updates a contract with the content
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse updateContract(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateContractMethod(), getCallOptions(), request);
}
/**
*
**
* Calls a contract
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse contractCallMethod(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getContractCallMethodMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the contract information
*
*/
public com.hedera.hashgraph.sdk.proto.Response getContractInfo(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Response contractCallLocalMethod(com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getContractCallLocalMethodMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the runtime code of a contract
*
*/
public com.hedera.hashgraph.sdk.proto.Response contractGetBytecode(com.hedera.hashgraph.sdk.proto.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getContractGetBytecodeMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves a contract by its Solidity address
*
*/
public com.hedera.hashgraph.sdk.proto.Response getBySolidityID(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Response getTxRecordByContractID(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionResponse deleteContract(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionResponse systemDelete(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionResponse systemUndelete(com.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSystemUndeleteMethod(), getCallOptions(), request);
}
/**
*
**
* Ethereum transaction
*
*/
public com.hedera.hashgraph.sdk.proto.TransactionResponse callEthereum(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSystemUndeleteMethod(), getCallOptions()), request);
}
/**
*
**
* Ethereum transaction
*
*/
public com.google.common.util.concurrent.ListenableFuture callEthereum(
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CONTRACT:
serviceImpl.updateContract((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTRACT_CALL_METHOD:
serviceImpl.contractCallMethod((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONTRACT_INFO:
serviceImpl.getContractInfo((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTRACT_CALL_LOCAL_METHOD:
serviceImpl.contractCallLocalMethod((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTRACT_GET_BYTECODE:
serviceImpl.contractGetBytecode((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BY_SOLIDITY_ID:
serviceImpl.getBySolidityID((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TX_RECORD_BY_CONTRACT_ID:
serviceImpl.getTxRecordByContractID((com.hedera.hashgraph.sdk.proto.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_CONTRACT:
serviceImpl.deleteContract((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SYSTEM_DELETE:
serviceImpl.systemDelete((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SYSTEM_UNDELETE:
serviceImpl.systemUndelete((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CALL_ETHEREUM:
serviceImpl.callEthereum((com.hedera.hashgraph.sdk.proto.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
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.hedera.hashgraph.sdk.proto.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;
}
}