@Override public boolean hasGrpcStreamingMethods() { for (MethodConfig methodConfig : getMethodConfigs()) { if (methodConfig.isGrpcStreaming()) { return true; } } return false; }
@Override public boolean hasLongRunningOperations() { for (MethodConfig methodConfig : getMethodConfigs()) { if (methodConfig.isLongRunningOperation()) { return true; } } return false; }
@Override public boolean hasBatchingMethods() { for (MethodConfig methodConfig : getMethodConfigs()) { if (methodConfig.isBatching()) { return true; } } return false; }
@Override public boolean hasPageStreamingMethods() { for (MethodConfig methodConfig : getMethodConfigs()) { if (methodConfig.isPageStreaming()) { return true; } } return false; }
@Override public boolean hasReroutedInterfaceMethods() { for (MethodConfig methodConfig : getMethodConfigs()) { if (!Strings.isNullOrEmpty(methodConfig.getRerouteToGrpcInterface())) { return true; } } return false; }
/** Returns a list of methods for this interface. Memoize the result. */ @Override public List<DiscoveryMethodModel> getInterfaceConfigMethods() { if (interfaceMethods != null) { return interfaceMethods; } ImmutableList.Builder<DiscoveryMethodModel> methodBuilder = ImmutableList.builder(); for (DiscoGapicMethodConfig methodConfig : getInterfaceConfig().getMethodConfigs()) { DiscoveryMethodModel method = methodConfig.getMethodModel(); if (isSupported(method)) { methodBuilder.add(method); } } interfaceMethods = methodBuilder.build(); return interfaceMethods; }