Package com.braintrustdata.api.models
Class FunctionInvokeParams.Parent
-
- All Implemented Interfaces:
public final class FunctionInvokeParams.ParentOptions for tracing the function call
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceFunctionInvokeParams.Parent.VisitorAn interface that defines how to map each variant of Parent to a value of type T.
public final classFunctionInvokeParams.Parent.SpanParentStructSpan parent properties
-
Method Summary
Modifier and Type Method Description final Optional<FunctionInvokeParams.Parent.SpanParentStruct>spanParentStruct()Span parent properties final Optional<String>string()The parent's span identifier, created by calling .export()on a spanfinal BooleanisSpanParentStruct()final BooleanisString()final FunctionInvokeParams.Parent.SpanParentStructasSpanParentStruct()Span parent properties final StringasString()The parent's span identifier, created by calling .export()on a spanfinal Optional<JsonValue>_json()final <T extends Any> Taccept(FunctionInvokeParams.Parent.Visitor<T> visitor)final FunctionInvokeParams.Parentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FunctionInvokeParams.ParentofSpanParentStruct(FunctionInvokeParams.Parent.SpanParentStruct spanParentStruct)Span parent properties final static FunctionInvokeParams.ParentofString(String string)The parent's span identifier, created by calling .export()on a span-
-
Method Detail
-
spanParentStruct
final Optional<FunctionInvokeParams.Parent.SpanParentStruct> spanParentStruct()
Span parent properties
-
string
final Optional<String> string()
The parent's span identifier, created by calling
.export()on a span
-
isSpanParentStruct
final Boolean isSpanParentStruct()
-
asSpanParentStruct
final FunctionInvokeParams.Parent.SpanParentStruct asSpanParentStruct()
Span parent properties
-
asString
final String asString()
The parent's span identifier, created by calling
.export()on a span
-
accept
final <T extends Any> T accept(FunctionInvokeParams.Parent.Visitor<T> visitor)
-
validate
final FunctionInvokeParams.Parent validate()
-
ofSpanParentStruct
final static FunctionInvokeParams.Parent ofSpanParentStruct(FunctionInvokeParams.Parent.SpanParentStruct spanParentStruct)
Span parent properties
-
ofString
final static FunctionInvokeParams.Parent ofString(String string)
The parent's span identifier, created by calling
.export()on a span
-
-
-
-