public boolean isStreaming() { return grpcStreamingType() != GrpcStreamingType.NonStreaming; }
/** 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; }
ApiCallSettingsView.Builder settings = ApiCallSettingsView.newBuilder();
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; }