/** ApiCalls that send exactly one request. This includes unary and server streaming apis. */ public List<ApiCallSettingsView> singleRequestRpcCallSettings() { ArrayList<ApiCallSettingsView> retryableCallSettings = new ArrayList<>(); for (ApiCallSettingsView settingsView : callSettings()) { if (settingsView.type().serviceMethodType() == ServiceMethodType.UnaryMethod || settingsView.type().serviceMethodType() == ServiceMethodType.GrpcServerStreamingMethod) { retryableCallSettings.add(settingsView); } } return retryableCallSettings; }
public List<ApiCallSettingsView> longRunningCallSettings() { ArrayList<ApiCallSettingsView> unaryCallSettings = new ArrayList<>(); for (ApiCallSettingsView settingsView : callSettings()) { if (settingsView.type().serviceMethodType() == ServiceMethodType.LongRunningMethod) { unaryCallSettings.add(settingsView); } } return unaryCallSettings; }
public List<ApiCallSettingsView> unaryCallSettings() { ArrayList<ApiCallSettingsView> unaryCallSettings = new ArrayList<>(); for (ApiCallSettingsView settingsView : callSettings()) { if (settingsView.type().serviceMethodType() == ServiceMethodType.UnaryMethod) { unaryCallSettings.add(settingsView); } } return unaryCallSettings; }
public List<ApiCallSettingsView> unaryCallSettings() { ArrayList<ApiCallSettingsView> unaryCallSettings = new ArrayList<>(); for (ApiCallSettingsView settingsView : callSettings()) { if (settingsView.type().serviceMethodType() == ServiceMethodType.UnaryMethod) { unaryCallSettings.add(settingsView); } } return unaryCallSettings; }
public List<ApiCallSettingsView> longRunningCallSettings() { ArrayList<ApiCallSettingsView> unaryCallSettings = new ArrayList<>(); for (ApiCallSettingsView settingsView : callSettings()) { if (settingsView.type().serviceMethodType() == ServiceMethodType.LongRunningMethod) { unaryCallSettings.add(settingsView); } } return unaryCallSettings; }
.callableName(callableName) .interfaceTypeName( context.getNamer().getApiCallableTypeName(callableImplType.serviceMethodType())) .build());
namer.getApiCallableTypeName(callableImplType.serviceMethodType()));