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 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<Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Spec.ProtoSpecResult.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<Spec.ProtoSpecResult.Builder>
      Throws:
      IOException
    • hasProtoSpec

      public boolean hasProtoSpec()
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
      Specified by:
      hasProtoSpec in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      Whether the protoSpec field is set.
    • getProtoSpec

      public Spec.ProtoSpec getProtoSpec()
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
      Specified by:
      getProtoSpec in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The protoSpec.
    • setProtoSpec

      public Spec.ProtoSpecResult.Builder setProtoSpec(Spec.ProtoSpec value)
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
    • setProtoSpec

      public Spec.ProtoSpecResult.Builder setProtoSpec(Spec.ProtoSpec.Builder builderForValue)
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
    • mergeProtoSpec

      public Spec.ProtoSpecResult.Builder mergeProtoSpec(Spec.ProtoSpec value)
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
    • clearProtoSpec

      public Spec.ProtoSpecResult.Builder clearProtoSpec()
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
    • getProtoSpecBuilder

      public Spec.ProtoSpec.Builder getProtoSpecBuilder()
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
    • getProtoSpecOrBuilder

      public Spec.ProtoSpecOrBuilder getProtoSpecOrBuilder()
       / Represents the corresponding Specification
       
      .gauge.messages.ProtoSpec protoSpec = 1;
      Specified by:
      getProtoSpecOrBuilder in interface Spec.ProtoSpecResultOrBuilder
    • getScenarioCount

      public int getScenarioCount()
       / Holds the number of Scenarios executed
       
      int32 scenarioCount = 2;
      Specified by:
      getScenarioCount in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The scenarioCount.
    • setScenarioCount

      public Spec.ProtoSpecResult.Builder setScenarioCount(int value)
       / Holds the number of Scenarios executed
       
      int32 scenarioCount = 2;
      Parameters:
      value - The scenarioCount to set.
      Returns:
      This builder for chaining.
    • clearScenarioCount

      public Spec.ProtoSpecResult.Builder 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:
      getScenarioFailedCount in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The scenarioFailedCount.
    • setScenarioFailedCount

      public Spec.ProtoSpecResult.Builder setScenarioFailedCount(int value)
       / Holds the number of Scenarios failed
       
      int32 scenarioFailedCount = 3;
      Parameters:
      value - The scenarioFailedCount to set.
      Returns:
      This builder for chaining.
    • clearScenarioFailedCount

      public Spec.ProtoSpecResult.Builder 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:
      getFailed in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The failed.
    • setFailed

      public Spec.ProtoSpecResult.Builder setFailed(boolean value)
       / Flag to indicate failure
       
      bool failed = 4;
      Parameters:
      value - The failed to set.
      Returns:
      This builder for chaining.
    • clearFailed

      public Spec.ProtoSpecResult.Builder clearFailed()
       / Flag to indicate failure
       
      bool failed = 4;
      Returns:
      This builder for chaining.
    • getFailedDataTableRowsList

      public List<Integer> getFailedDataTableRowsList()
       / Holds the row numbers, which caused the execution to fail.
       
      repeated int32 failedDataTableRows = 5;
      Specified by:
      getFailedDataTableRowsList in interface Spec.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:
      getFailedDataTableRowsCount in interface Spec.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:
      getFailedDataTableRows in interface Spec.ProtoSpecResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The failedDataTableRows at the given index.
    • setFailedDataTableRows

      public Spec.ProtoSpecResult.Builder setFailedDataTableRows(int index, int value)
       / 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

      public Spec.ProtoSpecResult.Builder addFailedDataTableRows(int value)
       / 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

      public Spec.ProtoSpecResult.Builder addAllFailedDataTableRows(Iterable<? extends Integer> values)
       / 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

      public Spec.ProtoSpecResult.Builder 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:
      getExecutionTime in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The executionTime.
    • setExecutionTime

      public Spec.ProtoSpecResult.Builder setExecutionTime(long value)
       / Holds the time taken for executing the spec.
       
      int64 executionTime = 6;
      Parameters:
      value - The executionTime to set.
      Returns:
      This builder for chaining.
    • clearExecutionTime

      public Spec.ProtoSpecResult.Builder 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:
      getSkipped in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The skipped.
    • setSkipped

      public Spec.ProtoSpecResult.Builder setSkipped(boolean value)
       / Flag to indicate if spec is skipped
       
      bool skipped = 7;
      Parameters:
      value - The skipped to set.
      Returns:
      This builder for chaining.
    • clearSkipped

      public Spec.ProtoSpecResult.Builder 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:
      getScenarioSkippedCount in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The scenarioSkippedCount.
    • setScenarioSkippedCount

      public Spec.ProtoSpecResult.Builder setScenarioSkippedCount(int value)
       / Holds the number of Scenarios skipped
       
      int32 scenarioSkippedCount = 8;
      Parameters:
      value - The scenarioSkippedCount to set.
      Returns:
      This builder for chaining.
    • clearScenarioSkippedCount

      public Spec.ProtoSpecResult.Builder clearScenarioSkippedCount()
       / Holds the number of Scenarios skipped
       
      int32 scenarioSkippedCount = 8;
      Returns:
      This builder for chaining.
    • getSkippedDataTableRowsList

      public List<Integer> getSkippedDataTableRowsList()
       / Holds the row numbers, for which the execution skipped.
       
      repeated int32 skippedDataTableRows = 9;
      Specified by:
      getSkippedDataTableRowsList in interface Spec.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:
      getSkippedDataTableRowsCount in interface Spec.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:
      getSkippedDataTableRows in interface Spec.ProtoSpecResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The skippedDataTableRows at the given index.
    • setSkippedDataTableRows

      public Spec.ProtoSpecResult.Builder setSkippedDataTableRows(int index, int value)
       / 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

      public Spec.ProtoSpecResult.Builder addSkippedDataTableRows(int value)
       / 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

      public Spec.ProtoSpecResult.Builder addAllSkippedDataTableRows(Iterable<? extends Integer> values)
       / 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

      public Spec.ProtoSpecResult.Builder clearSkippedDataTableRows()
       / Holds the row numbers, for which the execution skipped.
       
      repeated int32 skippedDataTableRows = 9;
      Returns:
      This builder for chaining.
    • getErrorsList

      public List<Spec.Error> getErrorsList()
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
      Specified by:
      getErrorsList in interface Spec.ProtoSpecResultOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
      Specified by:
      getErrorsCount in interface Spec.ProtoSpecResultOrBuilder
    • getErrors

      public Spec.Error getErrors(int index)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
      Specified by:
      getErrors in interface Spec.ProtoSpecResultOrBuilder
    • setErrors

      public Spec.ProtoSpecResult.Builder setErrors(int index, Spec.Error value)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • setErrors

      public Spec.ProtoSpecResult.Builder setErrors(int index, Spec.Error.Builder builderForValue)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • addErrors

      public Spec.ProtoSpecResult.Builder addErrors(Spec.Error value)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • addErrors

      public Spec.ProtoSpecResult.Builder addErrors(int index, Spec.Error value)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • addErrors

      public Spec.ProtoSpecResult.Builder addErrors(Spec.Error.Builder builderForValue)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • addErrors

      public Spec.ProtoSpecResult.Builder addErrors(int index, Spec.Error.Builder builderForValue)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • addAllErrors

      public Spec.ProtoSpecResult.Builder addAllErrors(Iterable<? extends Spec.Error> values)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • clearErrors

      public Spec.ProtoSpecResult.Builder clearErrors()
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • removeErrors

      public Spec.ProtoSpecResult.Builder removeErrors(int index)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • getErrorsBuilder

      public Spec.Error.Builder getErrorsBuilder(int index)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • getErrorsOrBuilder

      public Spec.ErrorOrBuilder getErrorsOrBuilder(int index)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
      Specified by:
      getErrorsOrBuilder in interface Spec.ProtoSpecResultOrBuilder
    • getErrorsOrBuilderList

      public List<? extends Spec.ErrorOrBuilder> getErrorsOrBuilderList()
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
      Specified by:
      getErrorsOrBuilderList in interface Spec.ProtoSpecResultOrBuilder
    • addErrorsBuilder

      public Spec.Error.Builder addErrorsBuilder()
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • addErrorsBuilder

      public Spec.Error.Builder addErrorsBuilder(int index)
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • getErrorsBuilderList

      public List<Spec.Error.Builder> getErrorsBuilderList()
       / Holds parse, validation and skipped errors.
       
      repeated .gauge.messages.Error errors = 10;
    • getTimestamp

      public String getTimestamp()
       / Holds the timestamp of event starting.
       
      string timestamp = 11;
      Specified by:
      getTimestamp in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The timestamp.
    • getTimestampBytes

      public com.google.protobuf.ByteString getTimestampBytes()
       / Holds the timestamp of event starting.
       
      string timestamp = 11;
      Specified by:
      getTimestampBytes in interface Spec.ProtoSpecResultOrBuilder
      Returns:
      The bytes for timestamp.
    • setTimestamp

      public Spec.ProtoSpecResult.Builder setTimestamp(String value)
       / Holds the timestamp of event starting.
       
      string timestamp = 11;
      Parameters:
      value - The timestamp to set.
      Returns:
      This builder for chaining.
    • clearTimestamp

      public Spec.ProtoSpecResult.Builder clearTimestamp()
       / Holds the timestamp of event starting.
       
      string timestamp = 11;
      Returns:
      This builder for chaining.
    • setTimestampBytes

      public Spec.ProtoSpecResult.Builder setTimestampBytes(com.google.protobuf.ByteString value)
       / Holds the timestamp of event starting.
       
      string timestamp = 11;
      Parameters:
      value - The bytes for timestamp to set.
      Returns:
      This builder for chaining.