Package gauge.messages
Class Spec.ProtoSpecResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Spec.ProtoSpecResult.Builder>
gauge.messages.Spec.ProtoSpecResult.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Spec.ProtoSpecResultOrBuilder,Cloneable
- Enclosing class:
- Spec.ProtoSpecResult
public static final class Spec.ProtoSpecResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Spec.ProtoSpecResult.Builder>
implements Spec.ProtoSpecResultOrBuilder
/ A proto object representing the result of Spec execution.Protobuf type
gauge.messages.ProtoSpecResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllErrors(Iterable<? extends Spec.Error> values) / Holds parse, validation and skipped errors.addAllFailedDataTableRows(Iterable<? extends Integer> values) / Holds the row numbers, which caused the execution to fail.addAllSkippedDataTableRows(Iterable<? extends Integer> values) / Holds the row numbers, for which the execution skipped.addErrors(int index, Spec.Error value) / Holds parse, validation and skipped errors.addErrors(int index, Spec.Error.Builder builderForValue) / Holds parse, validation and skipped errors.addErrors(Spec.Error value) / Holds parse, validation and skipped errors.addErrors(Spec.Error.Builder builderForValue) / Holds parse, validation and skipped errors./ Holds parse, validation and skipped errors.addErrorsBuilder(int index) / Holds parse, validation and skipped errors.addFailedDataTableRows(int value) / Holds the row numbers, which caused the execution to fail.addSkippedDataTableRows(int value) / Holds the row numbers, for which the execution skipped.build()clear()/ Holds parse, validation and skipped errors./ Holds the time taken for executing the spec./ Flag to indicate failure/ Holds the row numbers, which caused the execution to fail./ Represents the corresponding Specification/ Holds the number of Scenarios executed/ Holds the number of Scenarios failed/ Holds the number of Scenarios skipped/ Flag to indicate if spec is skipped/ Holds the row numbers, for which the execution skipped./ Holds the timestamp of event starting.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetErrors(int index) / Holds parse, validation and skipped errors.getErrorsBuilder(int index) / Holds parse, validation and skipped errors./ Holds parse, validation and skipped errors.int/ Holds parse, validation and skipped errors./ Holds parse, validation and skipped errors.getErrorsOrBuilder(int index) / Holds parse, validation and skipped errors.List<? extends Spec.ErrorOrBuilder>/ Holds parse, validation and skipped errors.long/ Holds the time taken for executing the spec.boolean/ Flag to indicate failureintgetFailedDataTableRows(int index) / Holds the row numbers, which caused the execution to fail.int/ Holds the row numbers, which caused the execution to fail./ Holds the row numbers, which caused the execution to fail./ Represents the corresponding Specification/ Represents the corresponding Specification/ Represents the corresponding Specificationint/ Holds the number of Scenarios executedint/ Holds the number of Scenarios failedint/ Holds the number of Scenarios skippedboolean/ Flag to indicate if spec is skippedintgetSkippedDataTableRows(int index) / Holds the row numbers, for which the execution skipped.int/ Holds the row numbers, for which the execution skipped./ Holds the row numbers, for which the execution skipped./ Holds the timestamp of event starting.com.google.protobuf.ByteString/ Holds the timestamp of event starting.boolean/ Represents the corresponding Specificationprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Spec.ProtoSpecResult other) mergeProtoSpec(Spec.ProtoSpec value) / Represents the corresponding SpecificationremoveErrors(int index) / Holds parse, validation and skipped errors.setErrors(int index, Spec.Error value) / Holds parse, validation and skipped errors.setErrors(int index, Spec.Error.Builder builderForValue) / Holds parse, validation and skipped errors.setExecutionTime(long value) / Holds the time taken for executing the spec.setFailed(boolean value) / Flag to indicate failuresetFailedDataTableRows(int index, int value) / Holds the row numbers, which caused the execution to fail.setProtoSpec(Spec.ProtoSpec value) / Represents the corresponding SpecificationsetProtoSpec(Spec.ProtoSpec.Builder builderForValue) / Represents the corresponding SpecificationsetScenarioCount(int value) / Holds the number of Scenarios executedsetScenarioFailedCount(int value) / Holds the number of Scenarios failedsetScenarioSkippedCount(int value) / Holds the number of Scenarios skippedsetSkipped(boolean value) / Flag to indicate if spec is skippedsetSkippedDataTableRows(int index, int value) / Holds the row numbers, for which the execution skipped.setTimestamp(String value) / Holds the timestamp of event starting.setTimestampBytes(com.google.protobuf.ByteString value) / Holds the timestamp of event starting.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<Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Spec.ProtoSpecResult.Builder>
-
mergeFrom
public Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.Builder>- Throws:
IOException
-
hasProtoSpec
public boolean hasProtoSpec()/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1;- Specified by:
hasProtoSpecin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- Whether the protoSpec field is set.
-
getProtoSpec
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1;- Specified by:
getProtoSpecin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The protoSpec.
-
setProtoSpec
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1; -
setProtoSpec
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1; -
mergeProtoSpec
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1; -
clearProtoSpec
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1; -
getProtoSpecBuilder
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1; -
getProtoSpecOrBuilder
/ Represents the corresponding Specification
.gauge.messages.ProtoSpec protoSpec = 1;- Specified by:
getProtoSpecOrBuilderin interfaceSpec.ProtoSpecResultOrBuilder
-
getScenarioCount
public int getScenarioCount()/ Holds the number of Scenarios executed
int32 scenarioCount = 2;- Specified by:
getScenarioCountin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The scenarioCount.
-
setScenarioCount
/ Holds the number of Scenarios executed
int32 scenarioCount = 2;- Parameters:
value- The scenarioCount to set.- Returns:
- This builder for chaining.
-
clearScenarioCount
/ Holds the number of Scenarios executed
int32 scenarioCount = 2;- Returns:
- This builder for chaining.
-
getScenarioFailedCount
public int getScenarioFailedCount()/ Holds the number of Scenarios failed
int32 scenarioFailedCount = 3;- Specified by:
getScenarioFailedCountin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The scenarioFailedCount.
-
setScenarioFailedCount
/ Holds the number of Scenarios failed
int32 scenarioFailedCount = 3;- Parameters:
value- The scenarioFailedCount to set.- Returns:
- This builder for chaining.
-
clearScenarioFailedCount
/ Holds the number of Scenarios failed
int32 scenarioFailedCount = 3;- Returns:
- This builder for chaining.
-
getFailed
public boolean getFailed()/ Flag to indicate failure
bool failed = 4;- Specified by:
getFailedin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The failed.
-
setFailed
/ Flag to indicate failure
bool failed = 4;- Parameters:
value- The failed to set.- Returns:
- This builder for chaining.
-
clearFailed
/ Flag to indicate failure
bool failed = 4;- Returns:
- This builder for chaining.
-
getFailedDataTableRowsList
/ Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Specified by:
getFailedDataTableRowsListin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- A list containing the failedDataTableRows.
-
getFailedDataTableRowsCount
public int getFailedDataTableRowsCount()/ Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Specified by:
getFailedDataTableRowsCountin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The count of failedDataTableRows.
-
getFailedDataTableRows
public int getFailedDataTableRows(int index) / Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Specified by:
getFailedDataTableRowsin interfaceSpec.ProtoSpecResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The failedDataTableRows at the given index.
-
setFailedDataTableRows
/ Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Parameters:
index- The index to set the value at.value- The failedDataTableRows to set.- Returns:
- This builder for chaining.
-
addFailedDataTableRows
/ Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Parameters:
value- The failedDataTableRows to add.- Returns:
- This builder for chaining.
-
addAllFailedDataTableRows
/ Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Parameters:
values- The failedDataTableRows to add.- Returns:
- This builder for chaining.
-
clearFailedDataTableRows
/ Holds the row numbers, which caused the execution to fail.
repeated int32 failedDataTableRows = 5;- Returns:
- This builder for chaining.
-
getExecutionTime
public long getExecutionTime()/ Holds the time taken for executing the spec.
int64 executionTime = 6;- Specified by:
getExecutionTimein interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The executionTime.
-
setExecutionTime
/ Holds the time taken for executing the spec.
int64 executionTime = 6;- Parameters:
value- The executionTime to set.- Returns:
- This builder for chaining.
-
clearExecutionTime
/ Holds the time taken for executing the spec.
int64 executionTime = 6;- Returns:
- This builder for chaining.
-
getSkipped
public boolean getSkipped()/ Flag to indicate if spec is skipped
bool skipped = 7;- Specified by:
getSkippedin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The skipped.
-
setSkipped
/ Flag to indicate if spec is skipped
bool skipped = 7;- Parameters:
value- The skipped to set.- Returns:
- This builder for chaining.
-
clearSkipped
/ Flag to indicate if spec is skipped
bool skipped = 7;- Returns:
- This builder for chaining.
-
getScenarioSkippedCount
public int getScenarioSkippedCount()/ Holds the number of Scenarios skipped
int32 scenarioSkippedCount = 8;- Specified by:
getScenarioSkippedCountin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The scenarioSkippedCount.
-
setScenarioSkippedCount
/ Holds the number of Scenarios skipped
int32 scenarioSkippedCount = 8;- Parameters:
value- The scenarioSkippedCount to set.- Returns:
- This builder for chaining.
-
clearScenarioSkippedCount
/ Holds the number of Scenarios skipped
int32 scenarioSkippedCount = 8;- Returns:
- This builder for chaining.
-
getSkippedDataTableRowsList
/ Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Specified by:
getSkippedDataTableRowsListin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- A list containing the skippedDataTableRows.
-
getSkippedDataTableRowsCount
public int getSkippedDataTableRowsCount()/ Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Specified by:
getSkippedDataTableRowsCountin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The count of skippedDataTableRows.
-
getSkippedDataTableRows
public int getSkippedDataTableRows(int index) / Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Specified by:
getSkippedDataTableRowsin interfaceSpec.ProtoSpecResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The skippedDataTableRows at the given index.
-
setSkippedDataTableRows
/ Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Parameters:
index- The index to set the value at.value- The skippedDataTableRows to set.- Returns:
- This builder for chaining.
-
addSkippedDataTableRows
/ Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Parameters:
value- The skippedDataTableRows to add.- Returns:
- This builder for chaining.
-
addAllSkippedDataTableRows
/ Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Parameters:
values- The skippedDataTableRows to add.- Returns:
- This builder for chaining.
-
clearSkippedDataTableRows
/ Holds the row numbers, for which the execution skipped.
repeated int32 skippedDataTableRows = 9;- Returns:
- This builder for chaining.
-
getErrorsList
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10;- Specified by:
getErrorsListin interfaceSpec.ProtoSpecResultOrBuilder
-
getErrorsCount
public int getErrorsCount()/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10;- Specified by:
getErrorsCountin interfaceSpec.ProtoSpecResultOrBuilder
-
getErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10;- Specified by:
getErrorsin interfaceSpec.ProtoSpecResultOrBuilder
-
setErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
setErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
addErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
addErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
addErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
addErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
addAllErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
clearErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
removeErrors
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
getErrorsBuilder
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
getErrorsOrBuilder
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10;- Specified by:
getErrorsOrBuilderin interfaceSpec.ProtoSpecResultOrBuilder
-
getErrorsOrBuilderList
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10;- Specified by:
getErrorsOrBuilderListin interfaceSpec.ProtoSpecResultOrBuilder
-
addErrorsBuilder
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
addErrorsBuilder
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
getErrorsBuilderList
/ Holds parse, validation and skipped errors.
repeated .gauge.messages.Error errors = 10; -
getTimestamp
/ Holds the timestamp of event starting.
string timestamp = 11;- Specified by:
getTimestampin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The timestamp.
-
getTimestampBytes
public com.google.protobuf.ByteString getTimestampBytes()/ Holds the timestamp of event starting.
string timestamp = 11;- Specified by:
getTimestampBytesin interfaceSpec.ProtoSpecResultOrBuilder- Returns:
- The bytes for timestamp.
-
setTimestamp
/ Holds the timestamp of event starting.
string timestamp = 11;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
/ Holds the timestamp of event starting.
string timestamp = 11;- Returns:
- This builder for chaining.
-
setTimestampBytes
/ Holds the timestamp of event starting.
string timestamp = 11;- Parameters:
value- The bytes for timestamp to set.- Returns:
- This builder for chaining.
-