Class Span.Builder

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

public static final class Span.Builder extends com.google.protobuf.GeneratedMessage.Builder<Span.Builder> implements SpanOrBuilder
 A span represents a sub execution step of an action.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Span
  • 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<Span.Builder>
    • clear

      public Span.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<Span.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<Span.Builder>
    • getDefaultInstanceForType

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

      public Span build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Span buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Span.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<Span.Builder>
    • mergeFrom

      public Span.Builder mergeFrom(Span other)
    • isInitialized

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

      public Span.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<Span.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the span.
       
      string name = 1;
      Specified by:
      getName in interface SpanOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the span.
       
      string name = 1;
      Specified by:
      getNameBytes in interface SpanOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Span.Builder setName(String value)
       The name of the span.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Span.Builder clearName()
       The name of the span.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Span.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the span.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Specified by:
      getTagsList in interface SpanOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Specified by:
      getTagsCount in interface SpanOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Specified by:
      getTags in interface SpanOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Specified by:
      getTagsBytes in interface SpanOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public Span.Builder setTags(int index, String value)
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public Span.Builder addTags(String value)
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public Span.Builder addAllTags(Iterable<String> values)
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public Span.Builder clearTags()
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public Span.Builder addTagsBytes(com.google.protobuf.ByteString value)
       The metadata tags of the span such as span type.
       
      repeated string tags = 2;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • getMetricsList

      public List<NamedMetric> getMetricsList()
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
      Specified by:
      getMetricsList in interface SpanOrBuilder
    • getMetricsCount

      public int getMetricsCount()
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
      Specified by:
      getMetricsCount in interface SpanOrBuilder
    • getMetrics

      public NamedMetric getMetrics(int index)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
      Specified by:
      getMetrics in interface SpanOrBuilder
    • setMetrics

      public Span.Builder setMetrics(int index, NamedMetric value)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • setMetrics

      public Span.Builder setMetrics(int index, NamedMetric.Builder builderForValue)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • addMetrics

      public Span.Builder addMetrics(NamedMetric value)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • addMetrics

      public Span.Builder addMetrics(int index, NamedMetric value)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • addMetrics

      public Span.Builder addMetrics(NamedMetric.Builder builderForValue)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • addMetrics

      public Span.Builder addMetrics(int index, NamedMetric.Builder builderForValue)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • addAllMetrics

      public Span.Builder addAllMetrics(Iterable<? extends NamedMetric> values)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • clearMetrics

      public Span.Builder clearMetrics()
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • removeMetrics

      public Span.Builder removeMetrics(int index)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • getMetricsBuilder

      public NamedMetric.Builder getMetricsBuilder(int index)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • getMetricsOrBuilder

      public NamedMetricOrBuilder getMetricsOrBuilder(int index)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
      Specified by:
      getMetricsOrBuilder in interface SpanOrBuilder
    • getMetricsOrBuilderList

      public List<? extends NamedMetricOrBuilder> getMetricsOrBuilderList()
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
      Specified by:
      getMetricsOrBuilderList in interface SpanOrBuilder
    • addMetricsBuilder

      public NamedMetric.Builder addMetricsBuilder()
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • addMetricsBuilder

      public NamedMetric.Builder addMetricsBuilder(int index)
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • getMetricsBuilderList

      public List<NamedMetric.Builder> getMetricsBuilderList()
       The unordered collection of metrics in this span.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;
    • hasStartTime

      public boolean hasStartTime()
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
      Specified by:
      hasStartTime in interface SpanOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
      Specified by:
      getStartTime in interface SpanOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Span.Builder setStartTime(com.google.protobuf.Timestamp value)
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
    • setStartTime

      public Span.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
    • mergeStartTime

      public Span.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
    • clearStartTime

      public Span.Builder clearStartTime()
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Timestamp of the start of the span.
       
      .google.protobuf.Timestamp start_time = 4;
      Specified by:
      getStartTimeOrBuilder in interface SpanOrBuilder
    • hasCompleteTime

      public boolean hasCompleteTime()
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
      Specified by:
      hasCompleteTime in interface SpanOrBuilder
      Returns:
      Whether the completeTime field is set.
    • getCompleteTime

      public com.google.protobuf.Timestamp getCompleteTime()
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
      Specified by:
      getCompleteTime in interface SpanOrBuilder
      Returns:
      The completeTime.
    • setCompleteTime

      public Span.Builder setCompleteTime(com.google.protobuf.Timestamp value)
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
    • setCompleteTime

      public Span.Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
    • mergeCompleteTime

      public Span.Builder mergeCompleteTime(com.google.protobuf.Timestamp value)
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
    • clearCompleteTime

      public Span.Builder clearCompleteTime()
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
    • getCompleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder()
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
    • getCompleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()
       Timestamp of the completion of the span.
       
      .google.protobuf.Timestamp complete_time = 5;
      Specified by:
      getCompleteTimeOrBuilder in interface SpanOrBuilder