Java Code Examples for com.google.common.collect.ImmutableSet#builder()
The following examples show how to use
com.google.common.collect.ImmutableSet#builder() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GoogleWhitelist.java From arcusplatform with Apache License 2.0 | 6 votes |
@Inject public GoogleWhitelist(GoogleConfig config) { this.whitelistEnabed = config.isWhitelistEnabled(); ImmutableSet.Builder<String> whiteListBldr = ImmutableSet.builder(); String whiteListStr = config.getWhitelist(); if(whiteListStr != null) { String[] places = StringUtils.split(whiteListStr, ','); if(places != null) { for(String p : places) { // force validation of configured uuid's. If they aren't all valid, blow up UUID uuid = UUID.fromString(p.trim()); whiteListBldr.add(uuid.toString()); } } } whiteList = whiteListBldr.build(); }
Example 2
Source File: PhasedExecutionSchedule.java From presto with Apache License 2.0 | 6 votes |
@Override public Set<PlanFragmentId> visitRemoteSource(RemoteSourceNode node, PlanFragmentId currentFragmentId) { ImmutableSet.Builder<PlanFragmentId> sources = ImmutableSet.builder(); Set<PlanFragmentId> previousFragmentSources = ImmutableSet.of(); for (PlanFragmentId remoteFragment : node.getSourceFragmentIds()) { // this current fragment depends on the remote fragment graph.addEdge(currentFragmentId, remoteFragment); // get all sources for the remote fragment Set<PlanFragmentId> remoteFragmentSources = processFragment(remoteFragment); sources.addAll(remoteFragmentSources); // For UNION there can be multiple sources. // Link the previous source to the current source, so we only // schedule one at a time. addEdges(previousFragmentSources, remoteFragmentSources); previousFragmentSources = remoteFragmentSources; } return sources.build(); }
Example 3
Source File: JavaTest.java From buck with Apache License 2.0 | 6 votes |
/** * @return a set of paths to the files which must be passed as the classpath to the java process * when this test is executed */ protected ImmutableSet<Path> getRuntimeClasspath(BuildContext buildContext) { ImmutableSet.Builder<Path> builder = ImmutableSet.builder(); unbundledResourcesRoot.ifPresent( sourcePath -> builder.add(buildContext.getSourcePathResolver().getAbsolutePath(sourcePath))); return builder .addAll( compiledTestsLibrary.getTransitiveClasspaths().stream() .map(buildContext.getSourcePathResolver()::getAbsolutePath) .collect(ImmutableSet.toImmutableSet())) .addAll( additionalClasspathEntriesProvider .map(e -> e.getAdditionalClasspathEntries(buildContext.getSourcePathResolver())) .orElse(ImmutableList.of())) .addAll(getBootClasspathEntries()) .build(); }
Example 4
Source File: Depfiles.java From buck with Apache License 2.0 | 6 votes |
public static Predicate<SourcePath> getCoveredByDepFilePredicate( Optional<PreprocessorDelegate> preprocessorDelegate, Optional<CompilerDelegate> compilerDelegate) { ImmutableSet.Builder<SourcePath> nonDepFileInputsBuilder = ImmutableSet.builder(); if (preprocessorDelegate.isPresent()) { preprocessorDelegate.get().getNonDepFileInputs(nonDepFileInputsBuilder::add); } if (compilerDelegate.isPresent()) { compilerDelegate.get().getNonDepFileInputs(nonDepFileInputsBuilder::add); } ImmutableSet<SourcePath> nonDepFileInputs = nonDepFileInputsBuilder.build(); return path -> !nonDepFileInputs.contains(path) && (!(path instanceof PathSourcePath) || !((PathSourcePath) path).getRelativePath().isAbsolute()); }
Example 5
Source File: ExpandFromRealis.java From tac-kbp-eal with MIT License | 6 votes |
@Override public AnswerKey apply(AnswerKey input) { final Set<Response> existingResponses = Sets.newHashSet(input.allResponses()); final ImmutableSet.Builder<AssessedResponse> newAssessedResponses = ImmutableSet.builder(); newAssessedResponses.addAll(input.annotatedResponses()); for (final AssessedResponse assessedResponse : input.annotatedResponses()) { if (assessedResponse.assessment().realis().isPresent()) { final Response responseWithAssessedRealis = assessedResponse.response() .withRealis(assessedResponse.assessment().realis().get()); if (!existingResponses.contains(responseWithAssessedRealis)) { newAssessedResponses.add(AssessedResponse.of( responseWithAssessedRealis, assessedResponse.assessment())); existingResponses.add(responseWithAssessedRealis); } } } return AnswerKey.from(input.docId(), newAssessedResponses.build(), input.unannotatedResponses(), input.corefAnnotation()); }
Example 6
Source File: RatesCurveGroupDefinition.java From Strata with Apache License 2.0 | 6 votes |
/** * Finds the forward curve names for the specified floating rate name. * <p> * If the curve name is not found, optional empty is returned. * * @param forwardName the floating rate name to find a forward curve name for * @return the set of curve names */ public ImmutableSet<CurveName> findForwardCurveNames(FloatingRateName forwardName) { ImmutableSet.Builder<CurveName> result = ImmutableSet.builder(); FloatingRateName normalized = forwardName.normalized(); for (RatesCurveGroupEntry entry : entries) { for (Index index : entry.getIndices()) { if (index instanceof FloatingRateIndex) { FloatingRateName frName = ((FloatingRateIndex) index).getFloatingRateName(); if (frName.equals(normalized)) { result.add(entry.getCurveName()); break; } } } } return result.build(); }
Example 7
Source File: AppleLibraryDescription.java From buck with Apache License 2.0 | 6 votes |
@Override public Optional<ImmutableSet<FlavorDomain<?>>> flavorDomains( TargetConfiguration toolchainTargetConfiguration) { ImmutableSet.Builder<FlavorDomain<?>> builder = ImmutableSet.builder(); ImmutableSet<FlavorDomain<?>> localDomains = ImmutableSet.of(AppleDebugFormat.FLAVOR_DOMAIN); builder.addAll(localDomains); cxxLibraryFlavored .flavorDomains(toolchainTargetConfiguration) .ifPresent(domains -> builder.addAll(domains)); swiftDelegate .flatMap(s -> s.flavorDomains(toolchainTargetConfiguration)) .ifPresent(domains -> builder.addAll(domains)); ImmutableSet<FlavorDomain<?>> result = builder.build(); // Drop StripStyle because it's overridden by AppleDebugFormat result = result.stream() .filter(domain -> !domain.equals(StripStyle.FLAVOR_DOMAIN)) .collect(ImmutableSet.toImmutableSet()); return Optional.of(result); }
Example 8
Source File: StandardMessenger.java From SynapseAPI with GNU General Public License v3.0 | 6 votes |
@Override public Set<PluginMessageListenerRegistration> getIncomingChannelRegistrations(Plugin plugin, String channel) { if (plugin == null) { throw new IllegalArgumentException("Plugin cannot be null"); } StandardMessenger.validateChannel(channel); synchronized (this.incomingLock) { Set<PluginMessageListenerRegistration> registrations = this.incomingByPlugin.get(plugin); if (registrations != null) { ImmutableSet.Builder builder = ImmutableSet.builder(); for (PluginMessageListenerRegistration registration : registrations) { if (!registration.getChannel().equals(channel)) continue; builder.add(registration); } return builder.build(); } return ImmutableSet.of(); } }
Example 9
Source File: JavaPackage.java From ArchUnit with Apache License 2.0 | 5 votes |
/** * @return all sub-packages including nested sub-packages contained in this package, * e.g. {@code [java.lang, java.lang.annotation, java.util, java.util.concurrent, ...]} for package {@code java} * (compare {@link #getSubPackages()}) */ @PublicAPI(usage = ACCESS) public Set<JavaPackage> getAllSubPackages() { ImmutableSet.Builder<JavaPackage> result = ImmutableSet.builder(); for (JavaPackage subPackage : getSubPackages()) { result.add(subPackage); result.addAll(subPackage.getAllSubPackages()); } return result.build(); }
Example 10
Source File: FunctionParseNode.java From phoenix with BSD 3-Clause "New" or "Revised" License | 5 votes |
@SuppressWarnings({ "unchecked", "rawtypes" }) BuiltInFunctionArgInfo(Argument argument) { if (argument.enumeration().length() > 0) { this.isConstant = true; this.defaultValue = null; this.minValue = null; this.maxValue = null; this.allowedTypes = ENUMERATION_TYPES; Class<?> clazz = null; String packageName = FunctionExpression.class.getPackage().getName(); try { clazz = Class.forName(packageName + "." + argument.enumeration()); } catch (ClassNotFoundException e) { try { clazz = Class.forName(argument.enumeration()); } catch (ClassNotFoundException e1) { } } if (clazz == null || !clazz.isEnum()) { throw new IllegalStateException("The enumeration annotation '" + argument.enumeration() + "' does not resolve to a enumeration class"); } Class<? extends Enum> enumClass = (Class<? extends Enum>)clazz; Enum[] enums = enumClass.getEnumConstants(); ImmutableSet.Builder<String> builder = ImmutableSet.builder(); for (Enum en : enums) { builder.add(en.name()); } allowedValues = builder.build(); } else { this.allowedValues = Collections.emptySet(); this.isConstant = argument.isConstant(); this.allowedTypes = argument.allowedTypes(); this.defaultValue = getExpFromConstant(argument.defaultValue()); this.minValue = getExpFromConstant(argument.minValue()); this.maxValue = getExpFromConstant(argument.maxValue()); } }
Example 11
Source File: DockerContainerImpl.java From brooklyn-server with Apache License 2.0 | 5 votes |
@Override public void init() { super.init(); String imageName = config().get(DockerContainer.IMAGE_NAME); if (!Strings.isNullOrEmpty(imageName)) { config().set(PROVISIONING_PROPERTIES.subKey("imageId"), imageName); } if (Boolean.TRUE.equals(config().get(DockerContainer.DISABLE_SSH))) { config().set(BrooklynConfigKeys.SKIP_ON_BOX_BASE_DIR_RESOLUTION, true); config().set(PROVISIONING_PROPERTIES.subKey("useJcloudsSshInit"), false); config().set(PROVISIONING_PROPERTIES.subKey("waitForSshable"), false); config().set(PROVISIONING_PROPERTIES.subKey("pollForFirstReachableAddress"), false); config().set(EmptySoftwareProcessImpl.USE_SSH_MONITORING, false); } ImmutableSet.Builder<AttributeSensor<Integer>> builder = ImmutableSet.builder(); List<String> portRanges = MutableList.copyOf(config().get(DockerContainer.INBOUND_TCP_PORTS)); for (String portRange : portRanges) { Iterator<Integer> iterator = PortRanges.fromString(portRange).iterator(); while (iterator.hasNext()) { Integer port = iterator.next(); AttributeSensor<Integer> element = Sensors.newIntegerSensor("docker.port." + port); sensors().set(element, port); builder.add(element); } } enrichers().add(EnricherSpec.create(OnPublicNetworkEnricher.class).configure(OnPublicNetworkEnricher.SENSORS, builder.build())); }
Example 12
Source File: InflationEndMonthRateComputationTest.java From Strata with Apache License 2.0 | 5 votes |
@Test public void test_collectIndices() { InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH); ImmutableSet.Builder<Index> builder = ImmutableSet.builder(); test.collectIndices(builder); assertThat(builder.build()).containsOnly(GB_HICP); }
Example 13
Source File: CraftIpBanList.java From Kettle with GNU General Public License v3.0 | 5 votes |
@Override public Set<org.bukkit.BanEntry> getBanEntries() { ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder(); for (String target : list.getKeys()) { builder.add(new CraftIpBanEntry(target, (UserListIPBansEntry) list.getEntry(target), list)); } return builder.build(); }
Example 14
Source File: ExopackageInstaller.java From buck with Apache License 2.0 | 4 votes |
public void finishExoFileInstallation( ImmutableSortedSet<Path> presentFiles, ExopackageInfo exoInfo) throws Exception { ImmutableSet.Builder<Path> wantedPaths = ImmutableSet.builder(); ImmutableMap.Builder<Path, String> metadata = ImmutableMap.builder(); if (exoInfo.getDexInfo().isPresent()) { DexExoHelper dexExoHelper = new DexExoHelper(pathResolver, projectFilesystem, exoInfo.getDexInfo().get()); wantedPaths.addAll(dexExoHelper.getFilesToInstall().keySet()); metadata.putAll(dexExoHelper.getMetadataToInstall()); } if (exoInfo.getNativeLibsInfo().isPresent()) { NativeExoHelper nativeExoHelper = new NativeExoHelper( () -> { try { return device.getDeviceAbis(); } catch (Exception e) { throw new HumanReadableException("Unable to communicate with device", e); } }, pathResolver, projectFilesystem, exoInfo.getNativeLibsInfo().get()); wantedPaths.addAll(nativeExoHelper.getFilesToInstall().keySet()); metadata.putAll(nativeExoHelper.getMetadataToInstall()); } if (exoInfo.getResourcesInfo().isPresent()) { ResourcesExoHelper resourcesExoHelper = new ResourcesExoHelper(pathResolver, projectFilesystem, exoInfo.getResourcesInfo().get()); wantedPaths.addAll(resourcesExoHelper.getFilesToInstall().keySet()); metadata.putAll(resourcesExoHelper.getMetadataToInstall()); } if (exoInfo.getModuleInfo().isPresent()) { ModuleExoHelper moduleExoHelper = new ModuleExoHelper(pathResolver, projectFilesystem, exoInfo.getModuleInfo().get()); wantedPaths.addAll(moduleExoHelper.getFilesToInstall().keySet()); metadata.putAll(moduleExoHelper.getMetadataToInstall()); } deleteUnwantedFiles(presentFiles, wantedPaths.build()); installMetadata(metadata.build()); }
Example 15
Source File: WorkspaceAndProjectGenerator.java From buck with Apache License 2.0 | 4 votes |
/** * Find tests to run. * * @param targetGraph input target graph * @param includeProjectTests whether to include tests of nodes in the project * @param orderedTargetNodes target nodes for which to fetch tests for * @param extraTestBundleTargets extra tests to include * @return test targets that should be run. */ private ImmutableSet<TargetNode<AppleTestDescriptionArg>> getOrderedTestNodes( Optional<BuildTarget> mainTarget, TargetGraph targetGraph, boolean includeProjectTests, boolean includeDependenciesTests, ImmutableSet<TargetNode<?>> orderedTargetNodes, ImmutableSet<TargetNode<AppleTestDescriptionArg>> extraTestBundleTargets) { ImmutableSet.Builder<TargetNode<AppleTestDescriptionArg>> testsBuilder = ImmutableSet.builder(); if (includeProjectTests) { Optional<TargetNode<?>> mainTargetNode = Optional.empty(); if (mainTarget.isPresent()) { mainTargetNode = targetGraph.getOptional(mainTarget.get()); } for (TargetNode<?> node : orderedTargetNodes) { if (includeDependenciesTests || (mainTargetNode.isPresent() && node.equals(mainTargetNode.get()))) { if (!(node.getConstructorArg() instanceof HasTests)) { continue; } ImmutableList<BuildTarget> focusedTests = ((HasTests) node.getConstructorArg()) .getTests().stream() .filter(t -> focusedTargetMatcher.matches(t)) .collect(ImmutableList.toImmutableList()); // Show a warning if the target is not focused but the tests are. if (focusedTests.size() > 0 && !focusedTargetMatcher.matches(node.getBuildTarget())) { buckEventBus.post( ConsoleEvent.warning( "Skipping tests of %s since it's not focused", node.getBuildTarget())); continue; } for (BuildTarget explicitTestTarget : focusedTests) { Optional<TargetNode<?>> explicitTestNode = targetGraph.getOptional(explicitTestTarget); if (explicitTestNode.isPresent()) { Optional<TargetNode<AppleTestDescriptionArg>> castedNode = TargetNodes.castArg(explicitTestNode.get(), AppleTestDescriptionArg.class); if (castedNode.isPresent()) { testsBuilder.add(castedNode.get()); } else { LOG.debug( "Test target specified in '%s' is not a apple_test;" + " not including in project: '%s'", node.getBuildTarget(), explicitTestTarget); } } else { throw new HumanReadableException( "Test target specified in '%s' is not in the target graph: '%s'", node.getBuildTarget(), explicitTestTarget); } } } } } for (TargetNode<AppleTestDescriptionArg> extraTestTarget : extraTestBundleTargets) { testsBuilder.add(extraTestTarget); } return testsBuilder.build(); }
Example 16
Source File: LikeActionImpl.java From schemaorg-java with Apache License 2.0 | 2 votes |
private static ImmutableSet<String> initializePropertySet() { ImmutableSet.Builder<String> builder = ImmutableSet.builder(); builder.add(CoreConstants.PROPERTY_ACTION_STATUS); builder.add(CoreConstants.PROPERTY_ADDITIONAL_TYPE); builder.add(CoreConstants.PROPERTY_AGENT); builder.add(CoreConstants.PROPERTY_ALTERNATE_NAME); builder.add(CoreConstants.PROPERTY_DESCRIPTION); builder.add(CoreConstants.PROPERTY_END_TIME); builder.add(CoreConstants.PROPERTY_ERROR); builder.add(CoreConstants.PROPERTY_IMAGE); builder.add(CoreConstants.PROPERTY_INSTRUMENT); builder.add(CoreConstants.PROPERTY_LOCATION); builder.add(CoreConstants.PROPERTY_MAIN_ENTITY_OF_PAGE); builder.add(CoreConstants.PROPERTY_NAME); builder.add(CoreConstants.PROPERTY_OBJECT); builder.add(CoreConstants.PROPERTY_PARTICIPANT); builder.add(CoreConstants.PROPERTY_POTENTIAL_ACTION); builder.add(CoreConstants.PROPERTY_RESULT); builder.add(CoreConstants.PROPERTY_SAME_AS); builder.add(CoreConstants.PROPERTY_START_TIME); builder.add(CoreConstants.PROPERTY_TARGET); builder.add(CoreConstants.PROPERTY_URL); builder.add(GoogConstants.PROPERTY_DETAILED_DESCRIPTION); builder.add(GoogConstants.PROPERTY_POPULARITY_SCORE); return builder.build(); }
Example 17
Source File: MedicalProcedureImpl.java From schemaorg-java with Apache License 2.0 | 2 votes |
private static ImmutableSet<String> initializePropertySet() { ImmutableSet.Builder<String> builder = ImmutableSet.builder(); builder.add(CoreConstants.PROPERTY_ADDITIONAL_TYPE); builder.add(CoreConstants.PROPERTY_ALTERNATE_NAME); builder.add(CoreConstants.PROPERTY_CODE); builder.add(CoreConstants.PROPERTY_DESCRIPTION); builder.add(CoreConstants.PROPERTY_FOLLOWUP); builder.add(CoreConstants.PROPERTY_GUIDELINE); builder.add(CoreConstants.PROPERTY_HOW_PERFORMED); builder.add(CoreConstants.PROPERTY_IMAGE); builder.add(CoreConstants.PROPERTY_MAIN_ENTITY_OF_PAGE); builder.add(CoreConstants.PROPERTY_MEDICINE_SYSTEM); builder.add(CoreConstants.PROPERTY_NAME); builder.add(CoreConstants.PROPERTY_POTENTIAL_ACTION); builder.add(CoreConstants.PROPERTY_PREPARATION); builder.add(CoreConstants.PROPERTY_PROCEDURE_TYPE); builder.add(CoreConstants.PROPERTY_RECOGNIZING_AUTHORITY); builder.add(CoreConstants.PROPERTY_RELEVANT_SPECIALTY); builder.add(CoreConstants.PROPERTY_SAME_AS); builder.add(CoreConstants.PROPERTY_STUDY); builder.add(CoreConstants.PROPERTY_URL); builder.add(GoogConstants.PROPERTY_DETAILED_DESCRIPTION); builder.add(GoogConstants.PROPERTY_POPULARITY_SCORE); return builder.build(); }
Example 18
Source File: BusinessEventImpl.java From schemaorg-java with Apache License 2.0 | 2 votes |
private static ImmutableSet<String> initializePropertySet() { ImmutableSet.Builder<String> builder = ImmutableSet.builder(); builder.add(CoreConstants.PROPERTY_ADDITIONAL_TYPE); builder.add(CoreConstants.PROPERTY_AGGREGATE_RATING); builder.add(CoreConstants.PROPERTY_ALTERNATE_NAME); builder.add(CoreConstants.PROPERTY_ATTENDEE); builder.add(CoreConstants.PROPERTY_ATTENDEES); builder.add(CoreConstants.PROPERTY_DESCRIPTION); builder.add(CoreConstants.PROPERTY_DOOR_TIME); builder.add(CoreConstants.PROPERTY_DURATION); builder.add(CoreConstants.PROPERTY_END_DATE); builder.add(CoreConstants.PROPERTY_EVENT_STATUS); builder.add(CoreConstants.PROPERTY_IMAGE); builder.add(CoreConstants.PROPERTY_IN_LANGUAGE); builder.add(CoreConstants.PROPERTY_LOCATION); builder.add(CoreConstants.PROPERTY_MAIN_ENTITY_OF_PAGE); builder.add(CoreConstants.PROPERTY_NAME); builder.add(CoreConstants.PROPERTY_OFFERS); builder.add(CoreConstants.PROPERTY_ORGANIZER); builder.add(CoreConstants.PROPERTY_PERFORMER); builder.add(CoreConstants.PROPERTY_PERFORMERS); builder.add(CoreConstants.PROPERTY_POTENTIAL_ACTION); builder.add(CoreConstants.PROPERTY_PREVIOUS_START_DATE); builder.add(CoreConstants.PROPERTY_RECORDED_IN); builder.add(CoreConstants.PROPERTY_REVIEW); builder.add(CoreConstants.PROPERTY_SAME_AS); builder.add(CoreConstants.PROPERTY_START_DATE); builder.add(CoreConstants.PROPERTY_SUB_EVENT); builder.add(CoreConstants.PROPERTY_SUB_EVENTS); builder.add(CoreConstants.PROPERTY_SUPER_EVENT); builder.add(CoreConstants.PROPERTY_TYPICAL_AGE_RANGE); builder.add(CoreConstants.PROPERTY_URL); builder.add(CoreConstants.PROPERTY_WORK_FEATURED); builder.add(CoreConstants.PROPERTY_WORK_PERFORMED); builder.add(GoogConstants.PROPERTY_DETAILED_DESCRIPTION); builder.add(GoogConstants.PROPERTY_POPULARITY_SCORE); return builder.build(); }
Example 19
Source File: JoinActionImpl.java From schemaorg-java with Apache License 2.0 | 2 votes |
private static ImmutableSet<String> initializePropertySet() { ImmutableSet.Builder<String> builder = ImmutableSet.builder(); builder.add(CoreConstants.PROPERTY_ACTION_STATUS); builder.add(CoreConstants.PROPERTY_ADDITIONAL_TYPE); builder.add(CoreConstants.PROPERTY_AGENT); builder.add(CoreConstants.PROPERTY_ALTERNATE_NAME); builder.add(CoreConstants.PROPERTY_DESCRIPTION); builder.add(CoreConstants.PROPERTY_END_TIME); builder.add(CoreConstants.PROPERTY_ERROR); builder.add(CoreConstants.PROPERTY_EVENT); builder.add(CoreConstants.PROPERTY_IMAGE); builder.add(CoreConstants.PROPERTY_INSTRUMENT); builder.add(CoreConstants.PROPERTY_LOCATION); builder.add(CoreConstants.PROPERTY_MAIN_ENTITY_OF_PAGE); builder.add(CoreConstants.PROPERTY_NAME); builder.add(CoreConstants.PROPERTY_OBJECT); builder.add(CoreConstants.PROPERTY_PARTICIPANT); builder.add(CoreConstants.PROPERTY_POTENTIAL_ACTION); builder.add(CoreConstants.PROPERTY_RESULT); builder.add(CoreConstants.PROPERTY_SAME_AS); builder.add(CoreConstants.PROPERTY_START_TIME); builder.add(CoreConstants.PROPERTY_TARGET); builder.add(CoreConstants.PROPERTY_URL); builder.add(GoogConstants.PROPERTY_DETAILED_DESCRIPTION); builder.add(GoogConstants.PROPERTY_POPULARITY_SCORE); return builder.build(); }
Example 20
Source File: AllocateActionImpl.java From schemaorg-java with Apache License 2.0 | 2 votes |
private static ImmutableSet<String> initializePropertySet() { ImmutableSet.Builder<String> builder = ImmutableSet.builder(); builder.add(CoreConstants.PROPERTY_ACTION_STATUS); builder.add(CoreConstants.PROPERTY_ADDITIONAL_TYPE); builder.add(CoreConstants.PROPERTY_AGENT); builder.add(CoreConstants.PROPERTY_ALTERNATE_NAME); builder.add(CoreConstants.PROPERTY_DESCRIPTION); builder.add(CoreConstants.PROPERTY_END_TIME); builder.add(CoreConstants.PROPERTY_ERROR); builder.add(CoreConstants.PROPERTY_IMAGE); builder.add(CoreConstants.PROPERTY_INSTRUMENT); builder.add(CoreConstants.PROPERTY_LOCATION); builder.add(CoreConstants.PROPERTY_MAIN_ENTITY_OF_PAGE); builder.add(CoreConstants.PROPERTY_NAME); builder.add(CoreConstants.PROPERTY_OBJECT); builder.add(CoreConstants.PROPERTY_PARTICIPANT); builder.add(CoreConstants.PROPERTY_POTENTIAL_ACTION); builder.add(CoreConstants.PROPERTY_PURPOSE); builder.add(CoreConstants.PROPERTY_RESULT); builder.add(CoreConstants.PROPERTY_SAME_AS); builder.add(CoreConstants.PROPERTY_START_TIME); builder.add(CoreConstants.PROPERTY_TARGET); builder.add(CoreConstants.PROPERTY_URL); builder.add(GoogConstants.PROPERTY_DETAILED_DESCRIPTION); builder.add(GoogConstants.PROPERTY_POPULARITY_SCORE); return builder.build(); }