Interface InvernoGrpcGenerator
public interface InvernoGrpcGenerator
A generator for generating Inverno specific classes to create gRPC client and/or server.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
generate
(byte[] protocRequestBytes) Parses the specified descriptor data into a code generator request and generates Inverno specific gRPC classes.default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
generate
(byte[] protocRequestBytes, com.google.protobuf.ExtensionRegistry extensionRegistry) Parses the specified descriptor data into a code generator request and generates Inverno specific gRPC classes.com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
generate
(com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest request) Generates Inverno specific gRPC classes.default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
Parses the specified descriptor dump file into a code generator request and generates Inverno specific gRPC classes.default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
Parses the specified descriptor dump file into a code generator request and generates Inverno specific gRPC classes.
-
Method Details
-
generate
default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse generate(Path protocRequestDumpPath) throws IOException, com.google.protobuf.InvalidProtocolBufferException Parses the specified descriptor dump file into a code generator request and generates Inverno specific gRPC classes.
- Parameters:
protocRequestDumpPath
- the path to the descriptor dump file- Returns:
- a code generator response containing the generated files
- Throws:
IOException
- if there was an error accessing the dump filecom.google.protobuf.InvalidProtocolBufferException
- if the dump descriptor does not contain a valid code generator data
-
generate
default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse generate(Path protocRequestDumpPath, com.google.protobuf.ExtensionRegistry extensionRegistry) throws IOException, com.google.protobuf.InvalidProtocolBufferException Parses the specified descriptor dump file into a code generator request and generates Inverno specific gRPC classes.
- Parameters:
protocRequestDumpPath
- the path to the descriptor dump fileextensionRegistry
- an extension registry- Returns:
- a code generator response containing the generated files
- Throws:
IOException
- if there was an error accessing the dump filecom.google.protobuf.InvalidProtocolBufferException
- if the dump descriptor does not contain a valid code generator data
-
generate
default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse generate(byte[] protocRequestBytes) throws com.google.protobuf.InvalidProtocolBufferException Parses the specified descriptor data into a code generator request and generates Inverno specific gRPC classes.
- Parameters:
protocRequestBytes
- descriptor data- Returns:
- a code generator response containing the generated files
- Throws:
com.google.protobuf.InvalidProtocolBufferException
- if data are not a valid code generator request
-
generate
default com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse generate(byte[] protocRequestBytes, com.google.protobuf.ExtensionRegistry extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException Parses the specified descriptor data into a code generator request and generates Inverno specific gRPC classes.
- Parameters:
protocRequestBytes
- descriptor dataextensionRegistry
- an extension registry- Returns:
- a code generator response containing the generated files
- Throws:
com.google.protobuf.InvalidProtocolBufferException
- if data are not a valid code generator request
-
generate
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse generate(com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest request) Generates Inverno specific gRPC classes.
- Parameters:
request
-- Returns:
-