java.lang.Object
com.hedera.hashgraph.sdk.proto.FileServiceGrpc
Service gRPC definitions for the Hedera File Service (HFS). #### Signature Requirements The HFS manages file authorization differently, depending on type of file transaction, and this can be surprising.<br/> The core element of file authorization is the `keys` field, which is a `KeyList`; a list of individual `Key` messages, each of which may represent a simple or complex key.<br/> The file service transactions treat this list differently.<br/> A `fileCreate`, `fileAppend`, or `fileUpdate` MUST have a valid signature from _each_ key in the list.<br/> A `fileDelete` MUST have a valid signature from _at least one_ key in the list. This is different, and allows a file "owned" by many entities to be deleted by any one of those entities. A deleted file cannot be restored, so it is important to consider this when assigning keys for a file.<br/> If any of the keys in a `KeyList` are complex, the full requirements of each complex key must be met to count as a "valid signature" for that key. A complex key structure (i.e. a `ThresholdKey`, or `KeyList`, possibly including additional `ThresholdKey` or `KeyList` descendants) may be assigned as the sole entry in a file `keys` field to ensure all transactions have the same signature requirements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceService gRPC definitions for the Hedera File Service (HFS).static final classA stub to allow clients to do limited synchronous rpc calls to service FileService.static final classA stub to allow clients to do synchronous rpc calls to service FileService.static final classA stub to allow clients to do ListenableFuture-style rpc calls to service FileService.static classBase class for the server implementation of the service FileService.static final classA stub to allow clients to do asynchronous rpc calls to service FileService. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinitionbindService(FileServiceGrpc.AsyncService service) static io.grpc.MethodDescriptor<Transaction, TransactionResponse> static io.grpc.MethodDescriptor<Transaction, TransactionResponse> static io.grpc.MethodDescriptor<Transaction, TransactionResponse> static io.grpc.ServiceDescriptorstatic io.grpc.MethodDescriptor<Transaction, TransactionResponse> static io.grpc.MethodDescriptor<Transaction, TransactionResponse> static io.grpc.MethodDescriptor<Transaction, TransactionResponse> newBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the servicenewFutureStub(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getCreateFileMethod
-
getUpdateFileMethod
-
getDeleteFileMethod
-
getAppendContentMethod
-
getGetFileContentMethod
-
getGetFileInfoMethod
-
getSystemDeleteMethod
-
getSystemUndeleteMethod
-
newStub
Creates a new async stub that supports all call types for the service -
newBlockingV2Stub
Creates a new blocking-style stub that supports all types of calls on the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(FileServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-