com.hederahashgraph.service.proto.java.FileServiceGrpc Maven / Gradle / Ivy
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: file_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class FileServiceGrpc {
private FileServiceGrpc() {}
public static final String SERVICE_NAME = "proto.FileService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createFile",
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 getCreateFileMethod() {
io.grpc.MethodDescriptor getCreateFileMethod;
if ((getCreateFileMethod = FileServiceGrpc.getCreateFileMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getCreateFileMethod = FileServiceGrpc.getCreateFileMethod) == null) {
FileServiceGrpc.getCreateFileMethod = getCreateFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createFile"))
.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 FileServiceMethodDescriptorSupplier("createFile"))
.build();
}
}
}
return getCreateFileMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateFile",
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 getUpdateFileMethod() {
io.grpc.MethodDescriptor getUpdateFileMethod;
if ((getUpdateFileMethod = FileServiceGrpc.getUpdateFileMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getUpdateFileMethod = FileServiceGrpc.getUpdateFileMethod) == null) {
FileServiceGrpc.getUpdateFileMethod = getUpdateFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateFile"))
.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 FileServiceMethodDescriptorSupplier("updateFile"))
.build();
}
}
}
return getUpdateFileMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteFile",
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 getDeleteFileMethod() {
io.grpc.MethodDescriptor getDeleteFileMethod;
if ((getDeleteFileMethod = FileServiceGrpc.getDeleteFileMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getDeleteFileMethod = FileServiceGrpc.getDeleteFileMethod) == null) {
FileServiceGrpc.getDeleteFileMethod = getDeleteFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteFile"))
.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 FileServiceMethodDescriptorSupplier("deleteFile"))
.build();
}
}
}
return getDeleteFileMethod;
}
private static volatile io.grpc.MethodDescriptor getAppendContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "appendContent",
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 getAppendContentMethod() {
io.grpc.MethodDescriptor getAppendContentMethod;
if ((getAppendContentMethod = FileServiceGrpc.getAppendContentMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getAppendContentMethod = FileServiceGrpc.getAppendContentMethod) == null) {
FileServiceGrpc.getAppendContentMethod = getAppendContentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "appendContent"))
.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 FileServiceMethodDescriptorSupplier("appendContent"))
.build();
}
}
}
return getAppendContentMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFileContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getFileContent",
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 getGetFileContentMethod() {
io.grpc.MethodDescriptor getGetFileContentMethod;
if ((getGetFileContentMethod = FileServiceGrpc.getGetFileContentMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getGetFileContentMethod = FileServiceGrpc.getGetFileContentMethod) == null) {
FileServiceGrpc.getGetFileContentMethod = getGetFileContentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getFileContent"))
.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 FileServiceMethodDescriptorSupplier("getFileContent"))
.build();
}
}
}
return getGetFileContentMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFileInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getFileInfo",
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 getGetFileInfoMethod() {
io.grpc.MethodDescriptor getGetFileInfoMethod;
if ((getGetFileInfoMethod = FileServiceGrpc.getGetFileInfoMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getGetFileInfoMethod = FileServiceGrpc.getGetFileInfoMethod) == null) {
FileServiceGrpc.getGetFileInfoMethod = getGetFileInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getFileInfo"))
.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 FileServiceMethodDescriptorSupplier("getFileInfo"))
.build();
}
}
}
return getGetFileInfoMethod;
}
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 = FileServiceGrpc.getSystemDeleteMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getSystemDeleteMethod = FileServiceGrpc.getSystemDeleteMethod) == null) {
FileServiceGrpc.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 FileServiceMethodDescriptorSupplier("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 = FileServiceGrpc.getSystemUndeleteMethod) == null) {
synchronized (FileServiceGrpc.class) {
if ((getSystemUndeleteMethod = FileServiceGrpc.getSystemUndeleteMethod) == null) {
FileServiceGrpc.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 FileServiceMethodDescriptorSupplier("systemUndelete"))
.build();
}
}
}
return getSystemUndeleteMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static FileServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FileServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FileServiceStub(channel, callOptions);
}
};
return FileServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static FileServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FileServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FileServiceBlockingStub(channel, callOptions);
}
};
return FileServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static FileServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FileServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FileServiceFutureStub(channel, callOptions);
}
};
return FileServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static abstract class FileServiceImplBase implements io.grpc.BindableService {
/**
*
**
* Creates a file
*
*/
public void createFile(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFileMethod(), responseObserver);
}
/**
*
**
* Updates a file
*
*/
public void updateFile(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFileMethod(), responseObserver);
}
/**
*
**
* Deletes a file
*
*/
public void deleteFile(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFileMethod(), responseObserver);
}
/**
*
**
* Appends to a file
*
*/
public void appendContent(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAppendContentMethod(), responseObserver);
}
/**
*
**
* Retrieves the file contents
*
*/
public void getFileContent(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFileContentMethod(), responseObserver);
}
/**
*
**
* Retrieves the file information
*
*/
public void getFileInfo(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFileInfoMethod(), responseObserver);
}
/**
*
**
* Deletes a file 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 file 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);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_CREATE_FILE)))
.addMethod(
getUpdateFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_UPDATE_FILE)))
.addMethod(
getDeleteFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_DELETE_FILE)))
.addMethod(
getAppendContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Transaction,
com.hederahashgraph.api.proto.java.TransactionResponse>(
this, METHODID_APPEND_CONTENT)))
.addMethod(
getGetFileContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_FILE_CONTENT)))
.addMethod(
getGetFileInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.hederahashgraph.api.proto.java.Query,
com.hederahashgraph.api.proto.java.Response>(
this, METHODID_GET_FILE_INFO)))
.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)))
.build();
}
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static final class FileServiceStub extends io.grpc.stub.AbstractAsyncStub {
private FileServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FileServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FileServiceStub(channel, callOptions);
}
/**
*
**
* Creates a file
*
*/
public void createFile(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Updates a file
*
*/
public void updateFile(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Deletes a file
*
*/
public void deleteFile(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Appends to a file
*
*/
public void appendContent(com.hederahashgraph.api.proto.java.Transaction request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAppendContentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves the file contents
*
*/
public void getFileContent(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetFileContentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Retrieves the file information
*
*/
public void getFileInfo(com.hederahashgraph.api.proto.java.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetFileInfoMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Deletes a file 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 file 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);
}
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static final class FileServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private FileServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FileServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FileServiceBlockingStub(channel, callOptions);
}
/**
*
**
* Creates a file
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse createFile(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateFileMethod(), getCallOptions(), request);
}
/**
*
**
* Updates a file
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse updateFile(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateFileMethod(), getCallOptions(), request);
}
/**
*
**
* Deletes a file
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse deleteFile(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteFileMethod(), getCallOptions(), request);
}
/**
*
**
* Appends to a file
*
*/
public com.hederahashgraph.api.proto.java.TransactionResponse appendContent(com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAppendContentMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the file contents
*
*/
public com.hederahashgraph.api.proto.java.Response getFileContent(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetFileContentMethod(), getCallOptions(), request);
}
/**
*
**
* Retrieves the file information
*
*/
public com.hederahashgraph.api.proto.java.Response getFileInfo(com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetFileInfoMethod(), getCallOptions(), request);
}
/**
*
**
* Deletes a file 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 file 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);
}
}
/**
*
**
* Transactions and queries for the file service.
*
*/
public static final class FileServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private FileServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FileServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FileServiceFutureStub(channel, callOptions);
}
/**
*
**
* Creates a file
*
*/
public com.google.common.util.concurrent.ListenableFuture createFile(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateFileMethod(), getCallOptions()), request);
}
/**
*
**
* Updates a file
*
*/
public com.google.common.util.concurrent.ListenableFuture updateFile(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateFileMethod(), getCallOptions()), request);
}
/**
*
**
* Deletes a file
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteFile(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteFileMethod(), getCallOptions()), request);
}
/**
*
**
* Appends to a file
*
*/
public com.google.common.util.concurrent.ListenableFuture appendContent(
com.hederahashgraph.api.proto.java.Transaction request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAppendContentMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves the file contents
*
*/
public com.google.common.util.concurrent.ListenableFuture getFileContent(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetFileContentMethod(), getCallOptions()), request);
}
/**
*
**
* Retrieves the file information
*
*/
public com.google.common.util.concurrent.ListenableFuture getFileInfo(
com.hederahashgraph.api.proto.java.Query request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetFileInfoMethod(), getCallOptions()), request);
}
/**
*
**
* Deletes a file 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 file 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);
}
}
private static final int METHODID_CREATE_FILE = 0;
private static final int METHODID_UPDATE_FILE = 1;
private static final int METHODID_DELETE_FILE = 2;
private static final int METHODID_APPEND_CONTENT = 3;
private static final int METHODID_GET_FILE_CONTENT = 4;
private static final int METHODID_GET_FILE_INFO = 5;
private static final int METHODID_SYSTEM_DELETE = 6;
private static final int METHODID_SYSTEM_UNDELETE = 7;
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 FileServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(FileServiceImplBase 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_FILE:
serviceImpl.createFile((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_FILE:
serviceImpl.updateFile((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_FILE:
serviceImpl.deleteFile((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_APPEND_CONTENT:
serviceImpl.appendContent((com.hederahashgraph.api.proto.java.Transaction) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FILE_CONTENT:
serviceImpl.getFileContent((com.hederahashgraph.api.proto.java.Query) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FILE_INFO:
serviceImpl.getFileInfo((com.hederahashgraph.api.proto.java.Query) 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;
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 FileServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
FileServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.hederahashgraph.service.proto.java.FileServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("FileService");
}
}
private static final class FileServiceFileDescriptorSupplier
extends FileServiceBaseDescriptorSupplier {
FileServiceFileDescriptorSupplier() {}
}
private static final class FileServiceMethodDescriptorSupplier
extends FileServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
FileServiceMethodDescriptorSupplier(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 (FileServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new FileServiceFileDescriptorSupplier())
.addMethod(getCreateFileMethod())
.addMethod(getUpdateFileMethod())
.addMethod(getDeleteFileMethod())
.addMethod(getAppendContentMethod())
.addMethod(getGetFileContentMethod())
.addMethod(getGetFileInfoMethod())
.addMethod(getSystemDeleteMethod())
.addMethod(getSystemUndeleteMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy