public class ConfigGeneratorFromProtoDescriptor extends ToolDriverBase implements ConfigGenerator
| Modifier and Type | Field and Description |
|---|---|
static ToolOptions.Option<java.lang.String> |
NAME |
static ToolOptions.Option<java.lang.Boolean> |
SUPPRESS_WARNINGS |
modeldiags, options| Constructor and Description |
|---|
ConfigGeneratorFromProtoDescriptor(ToolOptions options) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.Service |
generateServiceConfig()
Method that generates and returns a
Service object. |
java.util.List<Diag> |
getDiags()
Returns diagnosis, including errors and warnings.
|
com.google.api.Service |
getServiceConfig() |
boolean |
hasErrors()
Check if there are any errors.
|
protected void |
process()
Method implementing the actual tool processing.
|
protected void |
registerAspects()
Registers aspects for this tool.
|
protected void |
registerProcessors()
Registers processors for this tool.
|
getModel, getPlatformExtensions, onErrorsExit, runconcatenateNonEmptyStrings, getDataPath, getDiagCollector, getOptions, reportDiag, setDiagCollectorpublic static final ToolOptions.Option<java.lang.String> NAME
public static final ToolOptions.Option<java.lang.Boolean> SUPPRESS_WARNINGS
public ConfigGeneratorFromProtoDescriptor(ToolOptions options)
@Nullable public com.google.api.Service getServiceConfig()
protected void process()
throws java.io.IOException
GenericToolDriverBaseprocess in class GenericToolDriverBasejava.io.IOExceptionprotected void registerProcessors()
ToolDriverBaseregisterProcessors in class ToolDriverBaseprotected void registerAspects()
ToolDriverBaseregisterAspects in class ToolDriverBase@Nullable
public com.google.api.Service generateServiceConfig()
throws java.io.IOException
ConfigGeneratorService object. Returns null if
service config generation fails.generateServiceConfig in interface ConfigGeneratorjava.io.IOExceptionpublic boolean hasErrors()
hasErrors in interface ConfigGeneratorhasErrors in class ToolDriverBasepublic java.util.List<Diag> getDiags()
getDiags in interface ConfigGeneratorgetDiags in class ToolDriverBase