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
  • Method Details

    • getEnabled

      public boolean getEnabled()
       Globally enable or disable tracing support.
       
      bool enabled = 1 [json_name = "enabled"];
      Specified by:
      getEnabled in interface Robot.TracingConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public Robot.TracingConfig.Builder setEnabled(boolean value)
       Globally enable or disable tracing support.
       
      bool enabled = 1 [json_name = "enabled"];
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public Robot.TracingConfig.Builder 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:
      getDisk in interface Robot.TracingConfigOrBuilder
      Returns:
      The disk.
    • setDisk

      public Robot.TracingConfig.Builder setDisk(boolean value)
       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

      public Robot.TracingConfig.Builder 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:
      getConsole in interface Robot.TracingConfigOrBuilder
      Returns:
      The console.
    • setConsole

      public Robot.TracingConfig.Builder setConsole(boolean value)
       Print trace spans to the console.
       
      bool console = 3 [json_name = "console"];
      Parameters:
      value - The console to set.
      Returns:
      This builder for chaining.
    • clearConsole

      public Robot.TracingConfig.Builder clearConsole()
       Print trace spans to the console.
       
      bool console = 3 [json_name = "console"];
      Returns:
      This builder for chaining.
    • getOtlpEndpoint

      public String getOtlpEndpoint()
       Send trace spans to an OTLP gRPC endpoint.
       
      string otlp_endpoint = 4 [json_name = "otlpEndpoint"];
      Specified by:
      getOtlpEndpoint in interface Robot.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:
      getOtlpEndpointBytes in interface Robot.TracingConfigOrBuilder
      Returns:
      The bytes for otlpEndpoint.
    • setOtlpEndpoint

      public Robot.TracingConfig.Builder setOtlpEndpoint(String value)
       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

      public Robot.TracingConfig.Builder clearOtlpEndpoint()
       Send trace spans to an OTLP gRPC endpoint.
       
      string otlp_endpoint = 4 [json_name = "otlpEndpoint"];
      Returns:
      This builder for chaining.
    • setOtlpEndpointBytes

      public Robot.TracingConfig.Builder setOtlpEndpointBytes(com.google.protobuf.ByteString value)
       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.