// ExtractAlternativesAsExact returns the first found AlternativesAsExactOption from the
// given variadic arguments or nil otherwise.
12001
func ExtractAlternativesAsExact(opts ...interface{}) *opt.AlternativesAsExactOption {
	for _, o := range opts {
		if v, ok := o.(*opt.AlternativesAsExactOption); ok {
			return v
		}
	}
	return nil
}
381644
func ExtractAttributesToRetrieve(opts ...interface{}) *opt.AttributesToRetrieveOption {
	for _, o := range opts {
		if v, ok := o.(*opt.AttributesToRetrieveOption); ok {
			return v
		}
	}
	return nil
}
1021407
func ExtractSynonyms(opts ...interface{}) *opt.SynonymsOption {
	for _, o := range opts {
		if v, ok := o.(*opt.SynonymsOption); ok {
			return v
		}
	}
	return nil
}
219441
func ExtractSnippetEllipsisText(opts ...interface{}) *opt.SnippetEllipsisTextOption {
	for _, o := range opts {
		if v, ok := o.(*opt.SnippetEllipsisTextOption); ok {
			return v
		}
	}
	return nil
}
1192783
func ExtractTypoTolerance(opts ...interface{}) *opt.TypoToleranceOption {
	for _, o := range opts {
		if v, ok := o.(*opt.TypoToleranceOption); ok {
			return v
		}
	}
	return nil
}
1022152
func extractSwaggerOptionFromFileDescriptor(file *pbdescriptor.FileDescriptorProto) (*swagger_options.Swagger, error) {
	if file.Options == nil {
		return nil, nil
	}
	if !proto.HasExtension(file.Options, swagger_options.E_Openapiv2Swagger) {
		return nil, nil
	}
	ext, err := proto.GetExtension(file.Options, swagger_options.E_Openapiv2Swagger)
	if err != nil {
		return nil, err
	}
	opts, ok := ext.(*swagger_options.Swagger)
	if !ok {
		return nil, fmt.Errorf("extension is %T; want a Swagger object", ext)
	}
	return opts, nil
}
803654
func ExtractAroundPrecision(opts ...interface{}) *opt.AroundPrecisionOption {
	for _, o := range opts {
		if v, ok := o.(*opt.AroundPrecisionOption); ok {
			return v
		}
	}
	return nil
}
1221718
func ExtractCreateIfNotExists(opts ...interface{}) *opt.CreateIfNotExistsOption {
	for _, o := range opts {
		if v, ok := o.(*opt.CreateIfNotExistsOption); ok {
			return v
		}
	}
	return nil
}
307950
func ExtractCamelCaseAttributes(opts ...interface{}) *opt.CamelCaseAttributesOption {
	for _, o := range opts {
		if v, ok := o.(*opt.CamelCaseAttributesOption); ok {
			return v
		}
	}
	return nil
}
453822
func (v *validate) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool) {
	return v.extractTypeInternal(field, false)
}
1281202
func ExtractAttributeForDistinct(opts ...interface{}) *opt.AttributeForDistinctOption {
	for _, o := range opts {
		if v, ok := o.(*opt.AttributeForDistinctOption); ok {
			return v
		}
	}
	return nil
}
462233
func ExtractAdvanced(opts ...interface{}) *opt.AdvancedOption {
	for _, o := range opts {
		if v, ok := o.(*opt.AdvancedOption); ok {
			return v
		}
	}
	return nil
}
934749
func ExtractPrimary(opts ...interface{}) *opt.PrimaryOption {
	for _, o := range opts {
		if v, ok := o.(*opt.PrimaryOption); ok {
			return v
		}
	}
	return nil
}
592641
func substituteExact(template string, state scriptState) (string, libkb.ProofError) {
	return substituteInner(template, state, false)
}
276114
func ExtractCustomRanking(opts ...interface{}) *opt.CustomRankingOption {
	for _, o := range opts {
		if v, ok := o.(*opt.CustomRankingOption); ok {
			return v
		}
	}
	return nil
}
793781
func ExtractOptionalWords(opts ...interface{}) *opt.OptionalWordsOption {
	for _, o := range opts {
		if v, ok := o.(*opt.OptionalWordsOption); ok {
			return v
		}
	}
	return nil
}
420989
func (s *ActionExecution) SetExternalExecutionUrl(v string) *ActionExecution {
	s.ExternalExecutionUrl = &v
	return s
}