Package inference

Class GrpcService.InferBatchStatistics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcService.InferBatchStatistics.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
inference.GrpcService.InferBatchStatistics.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcService.InferBatchStatisticsOrBuilder, Cloneable
Enclosing class:
GrpcService.InferBatchStatistics

public static final class GrpcService.InferBatchStatistics.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder> implements GrpcService.InferBatchStatisticsOrBuilder
@@
@@.. cpp:var:: message InferBatchStatistics
@@
@@   Inference batch statistics.
@@
 
Protobuf type inference.InferBatchStatistics
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • getDefaultInstanceForType

      public GrpcService.InferBatchStatistics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GrpcService.InferBatchStatistics buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • setField

      public GrpcService.InferBatchStatistics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • clearField

      public GrpcService.InferBatchStatistics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • clearOneof

      public GrpcService.InferBatchStatistics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • setRepeatedField

      public GrpcService.InferBatchStatistics.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • addRepeatedField

      public GrpcService.InferBatchStatistics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • mergeFrom

      public GrpcService.InferBatchStatistics.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcService.InferBatchStatistics.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • mergeFrom

      public GrpcService.InferBatchStatistics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcService.InferBatchStatistics.Builder>
      Throws:
      IOException
    • getBatchSize

      public long getBatchSize()
      @@  .. cpp:var:: uint64 batch_size
      @@
      @@     The size of the batch.
      @@
       
      uint64 batch_size = 1;
      Specified by:
      getBatchSize in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      The batchSize.
    • setBatchSize

      public GrpcService.InferBatchStatistics.Builder setBatchSize(long value)
      @@  .. cpp:var:: uint64 batch_size
      @@
      @@     The size of the batch.
      @@
       
      uint64 batch_size = 1;
      Parameters:
      value - The batchSize to set.
      Returns:
      This builder for chaining.
    • clearBatchSize

      @@  .. cpp:var:: uint64 batch_size
      @@
      @@     The size of the batch.
      @@
       
      uint64 batch_size = 1;
      Returns:
      This builder for chaining.
    • hasComputeInput

      public boolean hasComputeInput()
      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
      Specified by:
      hasComputeInput in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      Whether the computeInput field is set.
    • getComputeInput

      public GrpcService.StatisticDuration getComputeInput()
      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
      Specified by:
      getComputeInput in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      The computeInput.
    • setComputeInput

      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
    • setComputeInput

      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
    • mergeComputeInput

      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
    • clearComputeInput

      public GrpcService.InferBatchStatistics.Builder clearComputeInput()
      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
    • getComputeInputBuilder

      public GrpcService.StatisticDuration.Builder getComputeInputBuilder()
      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
    • getComputeInputOrBuilder

      public GrpcService.StatisticDurationOrBuilder getComputeInputOrBuilder()
      @@  .. cpp:var:: StatisticDuration compute_input
      @@
      @@     The count and cumulative duration to prepare input tensor data as
      @@     required by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy input
      @@     tensor data to the GPU.
      @@
       
      .inference.StatisticDuration compute_input = 2;
      Specified by:
      getComputeInputOrBuilder in interface GrpcService.InferBatchStatisticsOrBuilder
    • hasComputeInfer

      public boolean hasComputeInfer()
      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
      Specified by:
      hasComputeInfer in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      Whether the computeInfer field is set.
    • getComputeInfer

      public GrpcService.StatisticDuration getComputeInfer()
      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
      Specified by:
      getComputeInfer in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      The computeInfer.
    • setComputeInfer

      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
    • setComputeInfer

      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
    • mergeComputeInfer

      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
    • clearComputeInfer

      public GrpcService.InferBatchStatistics.Builder clearComputeInfer()
      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
    • getComputeInferBuilder

      public GrpcService.StatisticDuration.Builder getComputeInferBuilder()
      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
    • getComputeInferOrBuilder

      public GrpcService.StatisticDurationOrBuilder getComputeInferOrBuilder()
      @@  .. cpp:var:: StatisticDuration compute_infer
      @@
      @@     The count and cumulative duration to execute the model with the given
      @@     batch size.
      @@
       
      .inference.StatisticDuration compute_infer = 3;
      Specified by:
      getComputeInferOrBuilder in interface GrpcService.InferBatchStatisticsOrBuilder
    • hasComputeOutput

      public boolean hasComputeOutput()
      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
      Specified by:
      hasComputeOutput in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      Whether the computeOutput field is set.
    • getComputeOutput

      public GrpcService.StatisticDuration getComputeOutput()
      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
      Specified by:
      getComputeOutput in interface GrpcService.InferBatchStatisticsOrBuilder
      Returns:
      The computeOutput.
    • setComputeOutput

      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
    • setComputeOutput

      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
    • mergeComputeOutput

      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
    • clearComputeOutput

      public GrpcService.InferBatchStatistics.Builder clearComputeOutput()
      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
    • getComputeOutputBuilder

      public GrpcService.StatisticDuration.Builder getComputeOutputBuilder()
      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
    • getComputeOutputOrBuilder

      public GrpcService.StatisticDurationOrBuilder getComputeOutputOrBuilder()
      @@  .. cpp:var:: StatisticDuration compute_output
      @@
      @@     The count and cumulative duration to extract output tensor data
      @@     produced by the model framework / backend with the given batch size.
      @@     For example, this duration should include the time to copy output
      @@     tensor data from the GPU.
      @@
       
      .inference.StatisticDuration compute_output = 4;
      Specified by:
      getComputeOutputOrBuilder in interface GrpcService.InferBatchStatisticsOrBuilder
    • setUnknownFields

      public final GrpcService.InferBatchStatistics.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>
    • mergeUnknownFields

      public final GrpcService.InferBatchStatistics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.InferBatchStatistics.Builder>