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

@param optionsBuilder Builder for proto {@link FreePOptions} to merge with defaults
@return the instance of {@link FreeContext} with default values for master
334132
public static FreeContext mergeFrom(FreePOptions.Builder optionsBuilder) {
    FreePOptions masterOptions = FileSystemOptions.freeDefaults(ServerConfiguration.global());
    FreePOptions.Builder mergedOptionsBuilder =
        masterOptions.toBuilder().mergeFrom(optionsBuilder.build());
    return create(mergedOptionsBuilder);
  }
535600
public OptionBuilder buildOption( String name, String... options )
    {
        OptionBuilder option = OptionBuilder.create( name );
        parser.build( option, options );
        return option;
    }
123455
public BuildableType.Builder partialToBuilder(PartialToBuilderMethod partialToBuilder) {
    this.partialToBuilder = Objects.requireNonNull(partialToBuilder);
    _unsetProperties.remove(Property.PARTIAL_TO_BUILDER);
    return (BuildableType.Builder) this;
  }
26419
public BuildableType.Builder mergeBuilder(MergeBuilderMethod mergeBuilder) {
    this.mergeBuilder = Objects.requireNonNull(mergeBuilder);
    _unsetProperties.remove(Property.MERGE_BUILDER);
    return (BuildableType.Builder) this;
  }
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;
    }
957172
public static CreateFileContext mergeFrom(CreateFilePOptions.Builder optionsBuilder) {
    CreateFilePOptions masterOptions =
        FileSystemOptions.createFileDefaults(ServerConfiguration.global());
    CreateFilePOptions.Builder mergedOptionsBuilder =
        masterOptions.toBuilder().mergeFrom(optionsBuilder.build());
    return new CreateFileContext(mergedOptionsBuilder);
  }
327071
public alluxio.grpc.MountPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.MountPOptions.getDefaultInstance() : options_;
  }
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());
	}
993984
@SuppressWarnings("static-access")
    private static synchronized Options buildOptions() {
        Options options = new Options();
        options.addOption(OptionBuilder.hasArg().withArgName("path").withDescription("Specify where to find the class files - must be first argument").create("classpath"));
        options.addOption(OptionBuilder.withLongOpt("classpath").hasArg().withArgName("path").withDescription("Aliases for '-classpath'").create("cp"));

        options.addOption(
            OptionBuilder.withLongOpt("define").
            withDescription("define a system property").
            hasArg(true).
            withArgName("name=value").
            create('D'));
        options.addOption(
            OptionBuilder.withLongOpt("disableopt").
            withDescription("disables one or all optimization elements. " +
                            "optlist can be a comma separated list with the elements: " +
                            "all (disables all optimizations), " +
                            "int (disable any int based optimizations)").
            hasArg(true).
            withArgName("optlist").
            create());
        options.addOption(
            OptionBuilder.hasArg(false)
            .withDescription("usage information")
            .withLongOpt("help")
            .create('h'));
        options.addOption(
            OptionBuilder.hasArg(false)
            .withDescription("debug mode will print out full stack traces")
            .withLongOpt("debug")
            .create('d'));
        options.addOption(
            OptionBuilder.hasArg(false)
            .withDescription("display the Groovy and JVM versions")
            .withLongOpt("version")
            .create('v'));
        options.addOption(
            OptionBuilder.withArgName("charset")
            .hasArg()
            .withDescription("specify the encoding of the files")
            .withLongOpt("encoding")
            .create('c'));
        options.addOption(
            OptionBuilder.withArgName("script")
            .hasArg()
            .withDescription("specify a command line script")
            .create('e'));
        options.addOption(
            OptionBuilder.withArgName("extension")
            .hasOptionalArg()
            .withDescription("modify files in place; create backup if extension is given (e.g. \'.bak\')")
            .create('i'));
        options.addOption(
            OptionBuilder.hasArg(false)
            .withDescription("process files line by line using implicit 'line' variable")
            .create('n'));
        options.addOption(
            OptionBuilder.hasArg(false)
            .withDescription("process files line by line and print result (see also -n)")
            .create('p'));
        options.addOption(
            OptionBuilder.withArgName("port")
            .hasOptionalArg()
            .withDescription("listen on a port and process inbound lines (default: 1960)")
            .create('l'));
        options.addOption(
            OptionBuilder.withArgName("splitPattern")
            .hasOptionalArg()
            .withDescription("split lines using splitPattern (default '\\s') using implicit 'split' variable")
            .withLongOpt("autosplit")
            .create('a'));
        options.addOption(
            OptionBuilder.withLongOpt("indy")
            .withDescription("enables compilation using invokedynamic")
            .create());
        options.addOption(
            OptionBuilder.withLongOpt("configscript")
            .hasArg().withDescription("A script for tweaking the configuration options")
            .create());
        options.addOption(
                OptionBuilder.withLongOpt("basescript")
                .hasArg().withArgName("class").withDescription("Base class name for scripts (must derive from Script)")
                .create('b'));
        return options;

    }
1108528
public alluxio.grpc.UpdateUfsModePOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.UpdateUfsModePOptions.getDefaultInstance() : options_;
  }
1023192
function(contextObj, options) {
        var context = this._parseContext(contextObj);
        var subKey = options.applySubstitutions !== false ? 'subbed': 'unsubbed';
        var collector = this.masterDelta ? [this.masterDelta[subKey]] : [];
        this._readNoMergeHelper(this.tree, 0, context, collector, subKey);
        return cloneDeep(collector);
    }
604820
public alluxio.grpc.SetPathConfigurationPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.SetPathConfigurationPOptions.getDefaultInstance() : options_;
  }
587769
public BuildableType.Builder mergeFrom(BuildableType value) {
    BuildableType_Builder defaults = new BuildableType.Builder();
    if (defaults._unsetProperties.contains(Property.TYPE)
        || !Objects.equals(value.type(), defaults.type())) {
      type(value.type());
    }
    if (defaults._unsetProperties.contains(Property.BUILDER_TYPE)
        || !Objects.equals(value.builderType(), defaults.builderType())) {
      builderType(value.builderType());
    }
    if (defaults._unsetProperties.contains(Property.MERGE_BUILDER)
        || !Objects.equals(value.mergeBuilder(), defaults.mergeBuilder())) {
      mergeBuilder(value.mergeBuilder());
    }
    if (defaults._unsetProperties.contains(Property.PARTIAL_TO_BUILDER)
        || !Objects.equals(value.partialToBuilder(), defaults.partialToBuilder())) {
      partialToBuilder(value.partialToBuilder());
    }
    if (defaults._unsetProperties.contains(Property.BUILDER_FACTORY)
        || !Objects.equals(value.builderFactory(), defaults.builderFactory())) {
      builderFactory(value.builderFactory());
    }
    if (defaults._unsetProperties.contains(Property.SUPPRESS_UNCHECKED)
        || !Objects.equals(value.suppressUnchecked(), defaults.suppressUnchecked())) {
      suppressUnchecked(value.suppressUnchecked());
    }
    return (BuildableType.Builder) this;
  }
1259151
public alluxio.grpc.SetAttributePOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.SetAttributePOptions.getDefaultInstance() : options_;
  }
732120
public alluxio.grpc.UnmountPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.UnmountPOptions.getDefaultInstance() : options_;
  }
1119567
public ConfigBuilder withMasterName(final String masterName) {
        if (masterName == null || "".equals(masterName)) {
            throw new IllegalArgumentException("masterName is null or empty: " + masterName);
        }
        this.masterName = masterName;
        return this;
    }
280875
public RouteBuilder options(){

        if(!methods.contains(HttpMethod.OPTIONS)){
            methods.add(HttpMethod.OPTIONS);
        }
        return this;
    }