Merges and embeds the given {@link MountPOptions} with the corresponding master options.

@param optionsBuilder Builder for proto {@link MountPOptions} to embed
@return the instance of {@link MountContext} with default values for master
506008
public static MountContext mergeFrom(MountPOptions.Builder optionsBuilder) {
    MountPOptions masterOptions = FileSystemOptions.mountDefaults(ServerConfiguration.global());
    MountPOptions.Builder mergedOptionsBuilder =
        masterOptions.toBuilder().mergeFrom(optionsBuilder.build());
    return create(mergedOptionsBuilder);
  }
242612
public static <K, V> ConfigurationOptionBuilder<Map<K, V>> mapOption(ValueConverter<K> keyConverter, ValueConverter<V> valueConverter) {
		return new ConfigurationOptionBuilder<Map<K, V>>(new MapValueConverter<K, V>(keyConverter, valueConverter), Map.class)
				.defaultValue(Collections.<K, V>emptyMap());
	}
300070
public alluxio.grpc.GetMasterIdPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.GetMasterIdPOptions.getDefaultInstance() : options_;
  }
621623
public static ClientOptions of(ClientOptions baseOptions, Iterable<ClientOptionValue<?>> options) {
        // TODO(trustin): Reduce the cost of creating a derived ClientOptions.
        requireNonNull(baseOptions, "baseOptions");
        requireNonNull(options, "options");
        return new ClientOptions(baseOptions, options);
    }
788138
public alluxio.grpc.CancelPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.CancelPOptions.getDefaultInstance() : options_;
  }
987058
public AppiumServiceBuilder withCapabilities(DesiredCapabilities capabilities) {
        if (this.capabilities == null) {
            this.capabilities = capabilities;
        } else {
            DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
            desiredCapabilities.merge(this.capabilities).merge(capabilities);
            this.capabilities = desiredCapabilities;
        }
        return this;
    }
1000811
public alluxio.grpc.SetAclPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.SetAclPOptions.getDefaultInstance() : options_;
  }
1205739
public ResponseBuilder ldpOptions(final ResponseBuilder builder) {
        LOGGER.debug("OPTIONS request for {}", getIdentifier());

        ldpResourceTypes(getResource().getInteractionModel())
            .forEach(type -> builder.link(type.getIRIString(), "type"));

        if (isMemento || TIMEMAP.equals(getRequest().getExt())) {
            // Mementos and TimeMaps are read-only
            builder.header(ALLOW, join(",", GET, HEAD, OPTIONS));
        } else {
            builder.header(ACCEPT_PATCH, APPLICATION_SPARQL_UPDATE);
            // ACL resources allow a limited set of methods (no DELETE or POST)
            // If it's not a container, POST isn't allowed
            if (PreferAccessControl.equals(graphName) || getResource().getInteractionModel().equals(RDFSource) ||
                    getResource().getInteractionModel().equals(NonRDFSource)) {
                builder.header(ALLOW, join(",", GET, HEAD, OPTIONS, PATCH, PUT, DELETE));
            } else {
                // Containers and binaries support POST
                builder.header(ALLOW, join(",", GET, HEAD, OPTIONS, PATCH, PUT, DELETE, POST));
                builder.header(ACCEPT_POST, getServices().getIOService().supportedWriteSyntaxes().stream()
                        .map(RDFSyntax::mediaType).collect(joining(",")));
            }
        }

        return builder;
    }
855523
public alluxio.grpc.FileSystemHeartbeatPOptions getOptions() {
    return options_ == null ? alluxio.grpc.FileSystemHeartbeatPOptions.getDefaultInstance() : options_;
  }
269055
public alluxio.grpc.CreateFilePOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.CreateFilePOptions.getDefaultInstance() : options_;
  }
417106
public AbstractEndpointBuilder<T> applicationContext(ApplicationContext applicationContext) {
        if (getEndpoint() instanceof ApplicationContextAware) {
            ((ApplicationContextAware) getEndpoint()).setApplicationContext(applicationContext);
        }

        if (getEndpoint() instanceof BeanFactoryAware) {
            ((BeanFactoryAware) getEndpoint()).setBeanFactory(applicationContext);
        }

        return this;
    }
1259151
public alluxio.grpc.SetAttributePOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.SetAttributePOptions.getDefaultInstance() : options_;
  }
761898
public GitConfigurationSource build() {
    return new GitConfigurationSource(repositoryURI, tmpPath, tmpRepoPrefix, branchResolver, pathResolver,
        configFilesProvider, propertiesProviderSelector);
  }
740671
public static DeleteContext mergeFrom(DeletePOptions.Builder optionsBuilder) {
    DeletePOptions masterOptions = FileSystemOptions.deleteDefaults(ServerConfiguration.global());
    DeletePOptions.Builder mergedOptionsBuilder =
        masterOptions.toBuilder().mergeFrom(optionsBuilder.build());
    return create(mergedOptionsBuilder);
  }
117646
public alluxio.grpc.MountPOptions getProperties() {
    return properties_ == null ? alluxio.grpc.MountPOptions.getDefaultInstance() : properties_;
  }
535600
public OptionBuilder buildOption( String name, String... options )
    {
        OptionBuilder option = OptionBuilder.create( name );
        parser.build( option, options );
        return option;
    }
795499
private static Options constructHelpOptions() {
    Options options = new Options();
    Option help = Option.builder("h")
        .desc("List all options and their description")
        .longOpt("help")
        .build();

    options.addOption(help);
    return options;
  }