Returns a new instance of the default {@link FetchOptions} used by this requestor. This
method exists primarily since {@link FetchOptions} provides no copy methods.

@return new instance of default fetch options used by this requestor.
767653
public static FetchOptions newDefaultOptions() {
        return FetchOptions.Builder.withDefaults()
            .validateCertificate()
            .doNotFollowRedirects()
            .disallowTruncate()
            // seconds
            .setDeadline((DEFAULT_CONNECT_TIMEOUT_MILLIS + DEFAULT_READ_TIMEOUT_MILLIS)/1000.0);
    }
513840
public T getDefaultValue() {
		if (defaultValue != null) {
			if (serializer != null) {
				return serializer.copy(defaultValue);
			} else {
				throw new IllegalStateException("Serializer not yet initialized.");
			}
		} else {
			return null;
		}
	}
1137399
public alluxio.grpc.GetNewBlockIdForFilePOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.GetNewBlockIdForFilePOptions.getDefaultInstance() : options_;
  }
393261
public alluxio.grpc.GetNewBlockIdForFilePOptions getOptions() {
    return options_ == null ? alluxio.grpc.GetNewBlockIdForFilePOptions.getDefaultInstance() : options_;
  }
748879
public final OptionElement getDefault() {
    OptionElement defaultOption = OptionElement.findByName(options(), "default");
    return defaultOption != null ? defaultOption : null;
  }
287740
public DefaultHeaders<K, V, T> copy() {
        DefaultHeaders<K, V, T> copy = new DefaultHeaders<K, V, T>(
                hashingStrategy, valueConverter, nameValidator, entries.length);
        copy.addImpl(this);
        return copy;
    }
315893
public static InvocationHandler defaultMethodHandler() {
    return (proxy, method, args) -> {
      if (method.isDefault()) {
        return MethodHandles.lookup()
            .in(method.getDeclaringClass())
            .unreflectSpecial(method, method.getDeclaringClass())
            .bindTo(proxy)
            .invokeWithArguments(args);
      } else {
        throw new IllegalArgumentException(method.toString());
      }
    };
  }
1169703
public function setFetchOptions( $fetchOptions )
    {

        // set fetchOptions
        if( $fetchOptions === null ) {
            return $this->fetchOptions;
        }

        if( !is_integer($fetchOptions) ) {
            throw new BadTypeException( $fetchOptions, 'int' );
        }

        $fetchOptions += $fetchOptions & ( self::TYPE_DETECT | self::TYPE_AGNOSTIC ) ? 0 : self::TYPE_DEFAULT;
        $fetchOptions += $fetchOptions & ( self::FLATTEN_IF_POSSIBLE | self::FLATTEN_PREVENT ) ? 0 : self::FLATTEN_DEFAULT;
        $fetchOptions += $fetchOptions & ( self::STYLE_ASSOC | self::STYLE_NUM ) ? 0 : self::STYLE_DEFAULT;
        $fetchOptions += $fetchOptions & ( self::FETCH_SINGLE | self::FETCH_MULTIPLE ) ? 0 : self::FETCH_DEFAULT;
        $fetchOptions += $fetchOptions & ( self::CACHE | self::CACHE_NOT ) ? 0 : self::CACHE_DEFAULT;

        // flatten
        $flatten = (bool) ( $fetchOptions & self::FLATTEN_IF_POSSIBLE ) && ( $this->numFields() === 1 );

        $this->buildFetchCallback( $fetchOptions, $flatten );

        $this->fetchOptions = $fetchOptions;

        return $this;
    }
117182
public Object getDefault()
    {
        Object objDefault = super.getDefault();
        if (objDefault == null)
            objDefault = Integer.toString(DBConstants.LOGIN_USER);
        return objDefault;
    }
223936
public static Option create() throws IllegalArgumentException
    {
        if (longopt == null)
        {
            OptionBuilder.reset();
            throw new IllegalArgumentException("must specify longopt");
        }

        return create(null);
    }
401407
public alluxio.proto.dataserver.Protocol.CreateUfsBlockOptionsOrBuilder getCreateUfsBlockOptionsOrBuilder() {
    return createUfsBlockOptions_ == null ? alluxio.proto.dataserver.Protocol.CreateUfsBlockOptions.getDefaultInstance() : createUfsBlockOptions_;
  }
753844
public static Options defaultOptions() {
        return new Options(
                HELP,
                CONFIG_HELP,
                YAML_HELP,
                VERSION,
                PROPERTY,
                PROPERTIES_URL,
                SERVER_CONFIG,
                CONFIG,
                PROFILES,
                BIND
        );
    }
399302
function instance(defaults, options) {
  if (!singletonQS) {
    singletonQS = queryState(defaults, options);
  } else if (defaults) {
    singletonQS.setIfEmpty(defaults);
  }

  return singletonQS;
}
680940
public alluxio.grpc.GetStatusPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.GetStatusPOptions.getDefaultInstance() : options_;
  }
311100
public alluxio.grpc.CreateFilePOptions getOptions() {
    return options_ == null ? alluxio.grpc.CreateFilePOptions.getDefaultInstance() : options_;
  }
454359
public static synchronized Document getDefaultDocument()
    {
        if (defaultDocument == null)
        {
            DocumentBuilderFactory documentBuilderFactory = 
                DocumentBuilderFactory.newInstance();
            DocumentBuilder documentBuilder = null;
            try
            {
                documentBuilder = documentBuilderFactory.newDocumentBuilder();
            }
            catch (ParserConfigurationException e)
            {
                // Can not happen, since it's the default configuration
                throw new XmlException("Could not create default document", e);
            }
            defaultDocument = documentBuilder.newDocument();
        }
        return defaultDocument;
    }
825396
public HttpRequestInitializer getHttpRequestInitializer(
      final ServiceOptions<?, ?> serviceOptions) {
    Credentials scopedCredentials = serviceOptions.getScopedCredentials();
    final HttpRequestInitializer delegate =
        scopedCredentials != null && scopedCredentials != NoCredentials.getInstance()
            ? new HttpCredentialsAdapter(scopedCredentials)
            : null;
    HeaderProvider internalHeaderProvider =
        getInternalHeaderProviderBuilder(serviceOptions).build();
    final HeaderProvider headerProvider =
        serviceOptions.getMergedHeaderProvider(internalHeaderProvider);

    return new HttpRequestInitializer() {
      @Override
      public void initialize(HttpRequest httpRequest) throws IOException {
        if (delegate != null) {
          delegate.initialize(httpRequest);
        }
        if (connectTimeout >= 0) {
          httpRequest.setConnectTimeout(connectTimeout);
        }
        if (readTimeout >= 0) {
          httpRequest.setReadTimeout(readTimeout);
        }

        HttpHeadersUtils.setHeaders(httpRequest.getHeaders(), headerProvider.getHeaders());
      }
    };
  }