/** The name of the surface method which can call the given API method. */ public String getApiMethodName(MethodModel method, VisibilityConfig visibility) { return getApiMethodName(method.asName(), visibility); }
/** The key to use in a dictionary for the given method. */ public String getMethodKey(MethodModel method) { return keyName(method.asName()); }
/** The test case name for the given method. */ @Override public String getTestCaseName(SymbolTable symbolTable, MethodModel method) { Name testCaseName = symbolTable.getNewSymbol(method.asName()); return publicMethodName(testCaseName); }
/** The name of the plain callable variant of the given method. */ public String getCallableMethodName(MethodModel method) { return publicMethodName(method.asName().join("callable")); }
/** The name of the plain callable for the given method. */ public String getCallableName(MethodModel method) { return privateFieldName(method.asName().join("callable")); }
/** The name of the async surface method which can call the given API method. */ public String getAsyncApiMethodName(MethodModel method, VisibilityConfig visibility) { return getApiMethodName(method.asName().join("async"), visibility); }
/** The name of the settings member name for the given method. */ public String getSettingsMemberName(MethodModel method) { return publicMethodName(method.asName().join("settings")); }
/** The name of the callable for the paged callable variant of the given method. */ public String getPagedCallableName(MethodModel method) { return privateFieldName(method.asName().join(Name.from("paged", "callable"))); }
/** The name of the plain callable variant of the given method. */ public String getCallableAsyncMethodName(MethodModel method) { return publicMethodName(method.asName().join(Name.from("callable", "async"))); }
@Override public String getAsyncTestCaseName(SymbolTable symbolTable, MethodModel method) { Name testCaseName = symbolTable.getNewSymbol(method.asName().join("async")); return publicMethodName(testCaseName); } }
/** The test case name for the given method. */ public String getTestCaseName(SymbolTable symbolTable, MethodModel method) { Name testCaseName = symbolTable.getNewSymbol(method.asName().join("test")); return publicMethodName(testCaseName); }
/** The name of the paged callable variant of the given method. */ public String getPagedCallableMethodName(MethodModel method) { return publicMethodName(method.asName().join(Name.from("paged", "callable"))); }
/** The name of the operation callable variant of the given method. */ public String getOperationCallableMethodName(MethodModel method) { return publicMethodName(method.asName().join(Name.from("operation", "callable"))); }
/** The name of the operation callable for the given method. */ public String getOperationCallableName(MethodModel method) { return privateFieldName(method.asName().join(Name.from("operation", "callable"))); }
/** The page streaming descriptor name for the given method. */ public String getPageStreamingDescriptorName(MethodModel method) { return privateFieldName(method.asName().join(Name.from("page", "streaming", "descriptor"))); }
public String getSampleFunctionName(MethodModel method) { return getApiMethodName(Name.from("sample").join(method.asName()), VisibilityConfig.PRIVATE); }
/** The exception test case name for the given method. */ public String getExceptionTestCaseName(SymbolTable symbolTable, MethodModel method) { Name testCaseName = symbolTable.getNewSymbol(method.asName().join(Name.from("exception", "test"))); return publicMethodName(testCaseName); }