Class Experiment.Result.VersionMetrics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.VersionMetrics.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder
All Implemented Interfaces:
Experiment.Result.VersionMetricsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Experiment.Result.VersionMetrics

public static final class Experiment.Result.VersionMetrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.VersionMetrics.Builder> implements Experiment.Result.VersionMetricsOrBuilder
 Version variant and associated metrics.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.VersionMetrics.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.GeneratedMessage.Builder<Experiment.Result.VersionMetrics.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.GeneratedMessage.Builder<Experiment.Result.VersionMetrics.Builder>
    • getDefaultInstanceForType

      public Experiment.Result.VersionMetrics 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 Experiment.Result.VersionMetrics buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Experiment.Result.VersionMetrics.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<Experiment.Result.VersionMetrics.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.VersionMetrics.Builder>
    • mergeFrom

      public Experiment.Result.VersionMetrics.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<Experiment.Result.VersionMetrics.Builder>
      Throws:
      IOException
    • getVersion

      public String getVersion()
       The name of the flow
       [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getVersion in interface Experiment.Result.VersionMetricsOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       The name of the flow
       [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getVersionBytes in interface Experiment.Result.VersionMetricsOrBuilder
      Returns:
      The bytes for version.
    • setVersion

       The name of the flow
       [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

       The name of the flow
       [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Experiment.Result.VersionMetrics.Builder setVersionBytes(com.google.protobuf.ByteString value)
       The name of the flow
       [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getMetricsList

      public List<Experiment.Result.Metric> getMetricsList()
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
      Specified by:
      getMetricsList in interface Experiment.Result.VersionMetricsOrBuilder
    • getMetricsCount

      public int getMetricsCount()
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
      Specified by:
      getMetricsCount in interface Experiment.Result.VersionMetricsOrBuilder
    • getMetrics

      public Experiment.Result.Metric getMetrics(int index)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
      Specified by:
      getMetrics in interface Experiment.Result.VersionMetricsOrBuilder
    • setMetrics

       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • setMetrics

      public Experiment.Result.VersionMetrics.Builder setMetrics(int index, Experiment.Result.Metric.Builder builderForValue)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • addMetrics

       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • addMetrics

       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • addMetrics

       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • addMetrics

      public Experiment.Result.VersionMetrics.Builder addMetrics(int index, Experiment.Result.Metric.Builder builderForValue)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • addAllMetrics

       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • clearMetrics

       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • removeMetrics

      public Experiment.Result.VersionMetrics.Builder removeMetrics(int index)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • getMetricsBuilder

      public Experiment.Result.Metric.Builder getMetricsBuilder(int index)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • getMetricsOrBuilder

      public Experiment.Result.MetricOrBuilder getMetricsOrBuilder(int index)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
      Specified by:
      getMetricsOrBuilder in interface Experiment.Result.VersionMetricsOrBuilder
    • getMetricsOrBuilderList

      public List<? extends Experiment.Result.MetricOrBuilder> getMetricsOrBuilderList()
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
      Specified by:
      getMetricsOrBuilderList in interface Experiment.Result.VersionMetricsOrBuilder
    • addMetricsBuilder

      public Experiment.Result.Metric.Builder addMetricsBuilder()
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • addMetricsBuilder

      public Experiment.Result.Metric.Builder addMetricsBuilder(int index)
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • getMetricsBuilderList

      public List<Experiment.Result.Metric.Builder> getMetricsBuilderList()
       The metrics and corresponding confidence intervals in the inference
       result.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2;
    • getSessionCount

      public int getSessionCount()
       Number of sessions that were allocated to this version.
       
      int32 session_count = 3;
      Specified by:
      getSessionCount in interface Experiment.Result.VersionMetricsOrBuilder
      Returns:
      The sessionCount.
    • setSessionCount

      public Experiment.Result.VersionMetrics.Builder setSessionCount(int value)
       Number of sessions that were allocated to this version.
       
      int32 session_count = 3;
      Parameters:
      value - The sessionCount to set.
      Returns:
      This builder for chaining.
    • clearSessionCount

      public Experiment.Result.VersionMetrics.Builder clearSessionCount()
       Number of sessions that were allocated to this version.
       
      int32 session_count = 3;
      Returns:
      This builder for chaining.