Package viam.app.v1
Class Robot.TracingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.TracingConfig,Robot.TracingConfig.Builder>
viam.app.v1.Robot.TracingConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,Robot.TracingConfigOrBuilder
- Enclosing class:
- Robot.TracingConfig
public static final class Robot.TracingConfig.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.TracingConfig,Robot.TracingConfig.Builder>
implements Robot.TracingConfigOrBuilder
TracingConfig configures whether viam-server will record traces and if so where it will export them.Protobuf type
viam.app.v1.TracingConfig-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionPrint trace spans to the console.Save trace spans to a file on disk.Globally enable or disable tracing support.Send trace spans to an OTLP gRPC endpoint.booleanPrint trace spans to the console.booleangetDisk()Save trace spans to a file on disk.booleanGlobally enable or disable tracing support.Send trace spans to an OTLP gRPC endpoint.com.google.protobuf.ByteStringSend trace spans to an OTLP gRPC endpoint.setConsole(boolean value) Print trace spans to the console.setDisk(boolean value) Save trace spans to a file on disk.setEnabled(boolean value) Globally enable or disable tracing support.setOtlpEndpoint(String value) Send trace spans to an OTLP gRPC endpoint.setOtlpEndpointBytes(com.google.protobuf.ByteString value) Send trace spans to an OTLP gRPC endpoint.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getEnabled
public boolean getEnabled()Globally enable or disable tracing support.
bool enabled = 1 [json_name = "enabled"];- Specified by:
getEnabledin interfaceRobot.TracingConfigOrBuilder- Returns:
- The enabled.
-
setEnabled
Globally enable or disable tracing support.
bool enabled = 1 [json_name = "enabled"];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Globally enable or disable tracing support.
bool enabled = 1 [json_name = "enabled"];- Returns:
- This builder for chaining.
-
getDisk
public boolean getDisk()Save trace spans to a file on disk.
bool disk = 2 [json_name = "disk"];- Specified by:
getDiskin interfaceRobot.TracingConfigOrBuilder- Returns:
- The disk.
-
setDisk
Save trace spans to a file on disk.
bool disk = 2 [json_name = "disk"];- Parameters:
value- The disk to set.- Returns:
- This builder for chaining.
-
clearDisk
Save trace spans to a file on disk.
bool disk = 2 [json_name = "disk"];- Returns:
- This builder for chaining.
-
getConsole
public boolean getConsole()Print trace spans to the console.
bool console = 3 [json_name = "console"];- Specified by:
getConsolein interfaceRobot.TracingConfigOrBuilder- Returns:
- The console.
-
setConsole
Print trace spans to the console.
bool console = 3 [json_name = "console"];- Parameters:
value- The console to set.- Returns:
- This builder for chaining.
-
clearConsole
Print trace spans to the console.
bool console = 3 [json_name = "console"];- Returns:
- This builder for chaining.
-
getOtlpEndpoint
Send trace spans to an OTLP gRPC endpoint.
string otlp_endpoint = 4 [json_name = "otlpEndpoint"];- Specified by:
getOtlpEndpointin interfaceRobot.TracingConfigOrBuilder- Returns:
- The otlpEndpoint.
-
getOtlpEndpointBytes
public com.google.protobuf.ByteString getOtlpEndpointBytes()Send trace spans to an OTLP gRPC endpoint.
string otlp_endpoint = 4 [json_name = "otlpEndpoint"];- Specified by:
getOtlpEndpointBytesin interfaceRobot.TracingConfigOrBuilder- Returns:
- The bytes for otlpEndpoint.
-
setOtlpEndpoint
Send trace spans to an OTLP gRPC endpoint.
string otlp_endpoint = 4 [json_name = "otlpEndpoint"];- Parameters:
value- The otlpEndpoint to set.- Returns:
- This builder for chaining.
-
clearOtlpEndpoint
Send trace spans to an OTLP gRPC endpoint.
string otlp_endpoint = 4 [json_name = "otlpEndpoint"];- Returns:
- This builder for chaining.
-
setOtlpEndpointBytes
Send trace spans to an OTLP gRPC endpoint.
string otlp_endpoint = 4 [json_name = "otlpEndpoint"];- Parameters:
value- The bytes for otlpEndpoint to set.- Returns:
- This builder for chaining.
-