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 Summary
Modifier and TypeMethodDescriptionaddAllMetrics(Iterable<? extends NamedMetric> values) The unordered collection of metrics in this span.addAllTags(Iterable<String> values) The metadata tags of the span such as span type.addMetrics(int index, NamedMetric value) The unordered collection of metrics in this span.addMetrics(int index, NamedMetric.Builder builderForValue) The unordered collection of metrics in this span.addMetrics(NamedMetric value) The unordered collection of metrics in this span.addMetrics(NamedMetric.Builder builderForValue) The unordered collection of metrics in this span.The unordered collection of metrics in this span.addMetricsBuilder(int index) The unordered collection of metrics in this span.The metadata tags of the span such as span type.addTagsBytes(com.google.protobuf.ByteString value) The metadata tags of the span such as span type.build()clear()Timestamp of the completion of the span.The unordered collection of metrics in this span.The name of the span.Timestamp of the start of the span.The metadata tags of the span such as span type.com.google.protobuf.TimestampTimestamp of the completion of the span.com.google.protobuf.Timestamp.BuilderTimestamp of the completion of the span.com.google.protobuf.TimestampOrBuilderTimestamp of the completion of the span.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMetrics(int index) The unordered collection of metrics in this span.getMetricsBuilder(int index) The unordered collection of metrics in this span.The unordered collection of metrics in this span.intThe unordered collection of metrics in this span.The unordered collection of metrics in this span.getMetricsOrBuilder(int index) The unordered collection of metrics in this span.List<? extends NamedMetricOrBuilder>The unordered collection of metrics in this span.getName()The name of the span.com.google.protobuf.ByteStringThe name of the span.com.google.protobuf.TimestampTimestamp of the start of the span.com.google.protobuf.Timestamp.BuilderTimestamp of the start of the span.com.google.protobuf.TimestampOrBuilderTimestamp of the start of the span.getTags(int index) The metadata tags of the span such as span type.com.google.protobuf.ByteStringgetTagsBytes(int index) The metadata tags of the span such as span type.intThe metadata tags of the span such as span type.com.google.protobuf.ProtocolStringListThe metadata tags of the span such as span type.booleanTimestamp of the completion of the span.booleanTimestamp of the start of the span.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCompleteTime(com.google.protobuf.Timestamp value) Timestamp of the completion of the span.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) Timestamp of the start of the span.removeMetrics(int index) The unordered collection of metrics in this span.setCompleteTime(com.google.protobuf.Timestamp value) Timestamp of the completion of the span.setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of the completion of the span.setMetrics(int index, NamedMetric value) The unordered collection of metrics in this span.setMetrics(int index, NamedMetric.Builder builderForValue) The unordered collection of metrics in this span.The name of the span.setNameBytes(com.google.protobuf.ByteString value) The name of the span.setStartTime(com.google.protobuf.Timestamp value) Timestamp of the start of the span.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of the start of the span.The metadata tags of the span such as span type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Span.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Span.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Span.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Span.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Span.Builder>- Throws:
IOException
-
getName
The name of the span.
string name = 1;- Specified by:
getNamein interfaceSpanOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the span.
string name = 1;- Specified by:
getNameBytesin interfaceSpanOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the span.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the span.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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:
getTagsListin interfaceSpanOrBuilder- 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:
getTagsCountin interfaceSpanOrBuilder- Returns:
- The count of tags.
-
getTags
The metadata tags of the span such as span type.
repeated string tags = 2;- Specified by:
getTagsin interfaceSpanOrBuilder- 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:
getTagsBytesin interfaceSpanOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
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
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
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
The metadata tags of the span such as span type.
repeated string tags = 2;- Returns:
- This builder for chaining.
-
addTagsBytes
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
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;- Specified by:
getMetricsListin interfaceSpanOrBuilder
-
getMetricsCount
public int getMetricsCount()The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;- Specified by:
getMetricsCountin interfaceSpanOrBuilder
-
getMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;- Specified by:
getMetricsin interfaceSpanOrBuilder
-
setMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
setMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
addMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
addMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
addMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
addMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
addAllMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
clearMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
removeMetrics
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
getMetricsBuilder
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
getMetricsOrBuilder
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;- Specified by:
getMetricsOrBuilderin interfaceSpanOrBuilder
-
getMetricsOrBuilderList
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3;- Specified by:
getMetricsOrBuilderListin interfaceSpanOrBuilder
-
addMetricsBuilder
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
addMetricsBuilder
The unordered collection of metrics in this span.
repeated .google.cloud.dialogflow.cx.v3beta1.NamedMetric metrics = 3; -
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:
hasStartTimein interfaceSpanOrBuilder- 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:
getStartTimein interfaceSpanOrBuilder- Returns:
- The startTime.
-
setStartTime
Timestamp of the start of the span.
.google.protobuf.Timestamp start_time = 4; -
setStartTime
Timestamp of the start of the span.
.google.protobuf.Timestamp start_time = 4; -
mergeStartTime
Timestamp of the start of the span.
.google.protobuf.Timestamp start_time = 4; -
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:
getStartTimeOrBuilderin interfaceSpanOrBuilder
-
hasCompleteTime
public boolean hasCompleteTime()Timestamp of the completion of the span.
.google.protobuf.Timestamp complete_time = 5;- Specified by:
hasCompleteTimein interfaceSpanOrBuilder- 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:
getCompleteTimein interfaceSpanOrBuilder- Returns:
- The completeTime.
-
setCompleteTime
Timestamp of the completion of the span.
.google.protobuf.Timestamp complete_time = 5; -
setCompleteTime
Timestamp of the completion of the span.
.google.protobuf.Timestamp complete_time = 5; -
mergeCompleteTime
Timestamp of the completion of the span.
.google.protobuf.Timestamp complete_time = 5; -
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:
getCompleteTimeOrBuilderin interfaceSpanOrBuilder
-