// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: spec.proto
package gauge.messages;
public final class Spec {
private Spec() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* <pre>
*/ Execution Status
* </pre>
*
* Protobuf enum {@code gauge.messages.ExecutionStatus}
*/
public enum ExecutionStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>NOTEXECUTED = 0;</code>
*/
NOTEXECUTED(0),
/**
* <code>PASSED = 1;</code>
*/
PASSED(1),
/**
* <code>FAILED = 2;</code>
*/
FAILED(2),
/**
* <code>SKIPPED = 3;</code>
*/
SKIPPED(3),
UNRECOGNIZED(-1),
;
/**
* <code>NOTEXECUTED = 0;</code>
*/
public static final int NOTEXECUTED_VALUE = 0;
/**
* <code>PASSED = 1;</code>
*/
public static final int PASSED_VALUE = 1;
/**
* <code>FAILED = 2;</code>
*/
public static final int FAILED_VALUE = 2;
/**
* <code>SKIPPED = 3;</code>
*/
public static final int SKIPPED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExecutionStatus valueOf(int value) {
return forNumber(value);
}
public static ExecutionStatus forNumber(int value) {
switch (value) {
case 0: return NOTEXECUTED;
case 1: return PASSED;
case 2: return FAILED;
case 3: return SKIPPED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ExecutionStatus>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecutionStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ExecutionStatus>() {
public ExecutionStatus findValueByNumber(int number) {
return ExecutionStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return gauge.messages.Spec.getDescriptor().getEnumTypes().get(0);
}
private static final ExecutionStatus[] VALUES = values();
public static ExecutionStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ExecutionStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:gauge.messages.ExecutionStatus)
}
public interface ProtoSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoSpec)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
java.lang.String getSpecHeading();
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
com.google.protobuf.ByteString
getSpecHeadingBytes();
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
java.util.List<gauge.messages.Spec.ProtoItem>
getItemsList();
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
gauge.messages.Spec.ProtoItem getItems(int index);
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
int getItemsCount();
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getItemsOrBuilderList();
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
gauge.messages.Spec.ProtoItemOrBuilder getItemsOrBuilder(
int index);
/**
* <pre>
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
* </pre>
*
* <code>optional bool isTableDriven = 3;</code>
*/
boolean getIsTableDriven();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
boolean hasPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
boolean hasPostHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder();
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
java.lang.String getFileName();
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
java.util.List<java.lang.String>
getTagsList();
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
int getTagsCount();
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
java.lang.String getTags(int index);
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
}
/**
* <pre>
*/ A proto object representing a Specification
* / A specification can contain Scenarios or Steps, besides Comments
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoSpec}
*/
public static final class ProtoSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoSpec)
ProtoSpecOrBuilder {
// Use ProtoSpec.newBuilder() to construct.
private ProtoSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoSpec() {
specHeading_ = "";
items_ = java.util.Collections.emptyList();
isTableDriven_ = false;
fileName_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
specHeading_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(gauge.messages.Spec.ProtoItem.parser(), extensionRegistry));
break;
}
case 24: {
isTableDriven_ = input.readBool();
break;
}
case 34: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (preHookFailure_ != null) {
subBuilder = preHookFailure_.toBuilder();
}
preHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(preHookFailure_);
preHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 42: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (postHookFailure_ != null) {
subBuilder = postHookFailure_.toBuilder();
}
postHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(postHookFailure_);
postHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
fileName_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
tags_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = tags_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSpec.class, gauge.messages.Spec.ProtoSpec.Builder.class);
}
private int bitField0_;
public static final int SPECHEADING_FIELD_NUMBER = 1;
private volatile java.lang.Object specHeading_;
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public java.lang.String getSpecHeading() {
java.lang.Object ref = specHeading_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
specHeading_ = s;
return s;
}
}
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public com.google.protobuf.ByteString
getSpecHeadingBytes() {
java.lang.Object ref = specHeading_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specHeading_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List<gauge.messages.Spec.ProtoItem> items_;
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getItemsList() {
return items_;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public int getItemsCount() {
return items_.size();
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItem getItems(int index) {
return items_.get(index);
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int ISTABLEDRIVEN_FIELD_NUMBER = 3;
private boolean isTableDriven_;
/**
* <pre>
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
* </pre>
*
* <code>optional bool isTableDriven = 3;</code>
*/
public boolean getIsTableDriven() {
return isTableDriven_;
}
public static final int PREHOOKFAILURE_FIELD_NUMBER = 4;
private gauge.messages.Spec.ProtoHookFailure preHookFailure_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
return getPreHookFailure();
}
public static final int POSTHOOKFAILURE_FIELD_NUMBER = 5;
private gauge.messages.Spec.ProtoHookFailure postHookFailure_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return getPostHookFailure();
}
public static final int FILENAME_FIELD_NUMBER = 6;
private volatile java.lang.Object fileName_;
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileName_ = s;
return s;
}
}
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TAGS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList tags_;
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSpecHeadingBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, specHeading_);
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
if (isTableDriven_ != false) {
output.writeBool(3, isTableDriven_);
}
if (preHookFailure_ != null) {
output.writeMessage(4, getPreHookFailure());
}
if (postHookFailure_ != null) {
output.writeMessage(5, getPostHookFailure());
}
if (!getFileNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fileName_);
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tags_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSpecHeadingBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, specHeading_);
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
if (isTableDriven_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isTableDriven_);
}
if (preHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPreHookFailure());
}
if (postHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPostHookFailure());
}
if (!getFileNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fileName_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoSpec)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoSpec other = (gauge.messages.Spec.ProtoSpec) obj;
boolean result = true;
result = result && getSpecHeading()
.equals(other.getSpecHeading());
result = result && getItemsList()
.equals(other.getItemsList());
result = result && (getIsTableDriven()
== other.getIsTableDriven());
result = result && (hasPreHookFailure() == other.hasPreHookFailure());
if (hasPreHookFailure()) {
result = result && getPreHookFailure()
.equals(other.getPreHookFailure());
}
result = result && (hasPostHookFailure() == other.hasPostHookFailure());
if (hasPostHookFailure()) {
result = result && getPostHookFailure()
.equals(other.getPostHookFailure());
}
result = result && getFileName()
.equals(other.getFileName());
result = result && getTagsList()
.equals(other.getTagsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + SPECHEADING_FIELD_NUMBER;
hash = (53 * hash) + getSpecHeading().hashCode();
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (37 * hash) + ISTABLEDRIVEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsTableDriven());
if (hasPreHookFailure()) {
hash = (37 * hash) + PREHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookFailure().hashCode();
}
if (hasPostHookFailure()) {
hash = (37 * hash) + POSTHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookFailure().hashCode();
}
hash = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSpec parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a Specification
* / A specification can contain Scenarios or Steps, besides Comments
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoSpec)
gauge.messages.Spec.ProtoSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSpec.class, gauge.messages.Spec.ProtoSpec.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
}
}
public Builder clear() {
super.clear();
specHeading_ = "";
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
isTableDriven_ = false;
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
fileName_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_descriptor;
}
public gauge.messages.Spec.ProtoSpec getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoSpec.getDefaultInstance();
}
public gauge.messages.Spec.ProtoSpec build() {
gauge.messages.Spec.ProtoSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoSpec buildPartial() {
gauge.messages.Spec.ProtoSpec result = new gauge.messages.Spec.ProtoSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.specHeading_ = specHeading_;
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
result.isTableDriven_ = isTableDriven_;
if (preHookFailureBuilder_ == null) {
result.preHookFailure_ = preHookFailure_;
} else {
result.preHookFailure_ = preHookFailureBuilder_.build();
}
if (postHookFailureBuilder_ == null) {
result.postHookFailure_ = postHookFailure_;
} else {
result.postHookFailure_ = postHookFailureBuilder_.build();
}
result.fileName_ = fileName_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.tags_ = tags_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoSpec) {
return mergeFrom((gauge.messages.Spec.ProtoSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoSpec other) {
if (other == gauge.messages.Spec.ProtoSpec.getDefaultInstance()) return this;
if (!other.getSpecHeading().isEmpty()) {
specHeading_ = other.specHeading_;
onChanged();
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (other.getIsTableDriven() != false) {
setIsTableDriven(other.getIsTableDriven());
}
if (other.hasPreHookFailure()) {
mergePreHookFailure(other.getPreHookFailure());
}
if (other.hasPostHookFailure()) {
mergePostHookFailure(other.getPostHookFailure());
}
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
onChanged();
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object specHeading_ = "";
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public java.lang.String getSpecHeading() {
java.lang.Object ref = specHeading_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
specHeading_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public com.google.protobuf.ByteString
getSpecHeadingBytes() {
java.lang.Object ref = specHeading_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specHeading_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public Builder setSpecHeading(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
specHeading_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public Builder clearSpecHeading() {
specHeading_ = getDefaultInstance().getSpecHeading();
onChanged();
return this;
}
/**
* <pre>
*/ Heading describing the Specification
* </pre>
*
* <code>optional string specHeading = 1;</code>
*/
public Builder setSpecHeadingBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
specHeading_ = value;
onChanged();
return this;
}
private java.util.List<gauge.messages.Spec.ProtoItem> items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> itemsBuilder_;
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItem getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder setItems(
int index, gauge.messages.Spec.ProtoItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder setItems(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder addItems(gauge.messages.Spec.ProtoItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder addItems(
int index, gauge.messages.Spec.ProtoItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder addItems(
gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder addItems(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder addAllItems(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoItem> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ A collection of items that come under this step
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem items = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem.Builder>
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private boolean isTableDriven_ ;
/**
* <pre>
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
* </pre>
*
* <code>optional bool isTableDriven = 3;</code>
*/
public boolean getIsTableDriven() {
return isTableDriven_;
}
/**
* <pre>
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
* </pre>
*
* <code>optional bool isTableDriven = 3;</code>
*/
public Builder setIsTableDriven(boolean value) {
isTableDriven_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
* </pre>
*
* <code>optional bool isTableDriven = 3;</code>
*/
public Builder clearIsTableDriven() {
isTableDriven_ = false;
onChanged();
return this;
}
private gauge.messages.Spec.ProtoHookFailure preHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> preHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailureBuilder_ != null || preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
if (preHookFailureBuilder_ == null) {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
} else {
return preHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public Builder setPreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
preHookFailure_ = value;
onChanged();
} else {
preHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public Builder setPreHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = builderForValue.build();
onChanged();
} else {
preHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public Builder mergePreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (preHookFailure_ != null) {
preHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(preHookFailure_).mergeFrom(value).buildPartial();
} else {
preHookFailure_ = value;
}
onChanged();
} else {
preHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public Builder clearPreHookFailure() {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
onChanged();
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailureBuilder() {
onChanged();
return getPreHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
if (preHookFailureBuilder_ != null) {
return preHookFailureBuilder_.getMessageOrBuilder();
} else {
return preHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPreHookFailureFieldBuilder() {
if (preHookFailureBuilder_ == null) {
preHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPreHookFailure(),
getParentForChildren(),
isClean());
preHookFailure_ = null;
}
return preHookFailureBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure postHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> postHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailureBuilder_ != null || postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
if (postHookFailureBuilder_ == null) {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
} else {
return postHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public Builder setPostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postHookFailure_ = value;
onChanged();
} else {
postHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public Builder setPostHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = builderForValue.build();
onChanged();
} else {
postHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public Builder mergePostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (postHookFailure_ != null) {
postHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(postHookFailure_).mergeFrom(value).buildPartial();
} else {
postHookFailure_ = value;
}
onChanged();
} else {
postHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public Builder clearPostHookFailure() {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
onChanged();
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailureBuilder() {
onChanged();
return getPostHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
if (postHookFailureBuilder_ != null) {
return postHookFailureBuilder_.getMessageOrBuilder();
} else {
return postHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPostHookFailureFieldBuilder() {
if (postHookFailureBuilder_ == null) {
postHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPostHookFailure(),
getParentForChildren(),
isClean());
postHookFailure_ = null;
}
return postHookFailureBuilder_;
}
private java.lang.Object fileName_ = "";
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileName_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
onChanged();
return this;
}
/**
* <pre>
*/ Contains the filename for that holds this specification.
* </pre>
*
* <code>optional string fileName = 6;</code>
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000040;
}
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder addAllTags(
java.lang.Iterable<java.lang.String> values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoSpec)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoSpec)
private static final gauge.messages.Spec.ProtoSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoSpec();
}
public static gauge.messages.Spec.ProtoSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoSpec>
PARSER = new com.google.protobuf.AbstractParser<ProtoSpec>() {
public ProtoSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoSpec> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoSpec> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoItem)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
int getItemTypeValue();
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
gauge.messages.Spec.ProtoItem.ItemType getItemType();
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
boolean hasStep();
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
gauge.messages.Spec.ProtoStep getStep();
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
gauge.messages.Spec.ProtoStepOrBuilder getStepOrBuilder();
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
boolean hasConcept();
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
gauge.messages.Spec.ProtoConcept getConcept();
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
gauge.messages.Spec.ProtoConceptOrBuilder getConceptOrBuilder();
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
boolean hasScenario();
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
gauge.messages.Spec.ProtoScenario getScenario();
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder();
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
boolean hasTableDrivenScenario();
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
gauge.messages.Spec.ProtoTableDrivenScenario getTableDrivenScenario();
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder getTableDrivenScenarioOrBuilder();
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
boolean hasComment();
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
gauge.messages.Spec.ProtoComment getComment();
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
gauge.messages.Spec.ProtoCommentOrBuilder getCommentOrBuilder();
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
boolean hasTable();
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
gauge.messages.Spec.ProtoTable getTable();
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder();
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
boolean hasTags();
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
gauge.messages.Spec.ProtoTags getTags();
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
gauge.messages.Spec.ProtoTagsOrBuilder getTagsOrBuilder();
}
/**
* <pre>
*/ Container for all valid Items under a Specification.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoItem}
*/
public static final class ProtoItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoItem)
ProtoItemOrBuilder {
// Use ProtoItem.newBuilder() to construct.
private ProtoItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoItem() {
itemType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoItem(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
itemType_ = rawValue;
break;
}
case 18: {
gauge.messages.Spec.ProtoStep.Builder subBuilder = null;
if (step_ != null) {
subBuilder = step_.toBuilder();
}
step_ = input.readMessage(gauge.messages.Spec.ProtoStep.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(step_);
step_ = subBuilder.buildPartial();
}
break;
}
case 26: {
gauge.messages.Spec.ProtoConcept.Builder subBuilder = null;
if (concept_ != null) {
subBuilder = concept_.toBuilder();
}
concept_ = input.readMessage(gauge.messages.Spec.ProtoConcept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(concept_);
concept_ = subBuilder.buildPartial();
}
break;
}
case 34: {
gauge.messages.Spec.ProtoScenario.Builder subBuilder = null;
if (scenario_ != null) {
subBuilder = scenario_.toBuilder();
}
scenario_ = input.readMessage(gauge.messages.Spec.ProtoScenario.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scenario_);
scenario_ = subBuilder.buildPartial();
}
break;
}
case 42: {
gauge.messages.Spec.ProtoTableDrivenScenario.Builder subBuilder = null;
if (tableDrivenScenario_ != null) {
subBuilder = tableDrivenScenario_.toBuilder();
}
tableDrivenScenario_ = input.readMessage(gauge.messages.Spec.ProtoTableDrivenScenario.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tableDrivenScenario_);
tableDrivenScenario_ = subBuilder.buildPartial();
}
break;
}
case 50: {
gauge.messages.Spec.ProtoComment.Builder subBuilder = null;
if (comment_ != null) {
subBuilder = comment_.toBuilder();
}
comment_ = input.readMessage(gauge.messages.Spec.ProtoComment.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(comment_);
comment_ = subBuilder.buildPartial();
}
break;
}
case 58: {
gauge.messages.Spec.ProtoTable.Builder subBuilder = null;
if (table_ != null) {
subBuilder = table_.toBuilder();
}
table_ = input.readMessage(gauge.messages.Spec.ProtoTable.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(table_);
table_ = subBuilder.buildPartial();
}
break;
}
case 66: {
gauge.messages.Spec.ProtoTags.Builder subBuilder = null;
if (tags_ != null) {
subBuilder = tags_.toBuilder();
}
tags_ = input.readMessage(gauge.messages.Spec.ProtoTags.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tags_);
tags_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoItem.class, gauge.messages.Spec.ProtoItem.Builder.class);
}
/**
* <pre>
*/ Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags
* </pre>
*
* Protobuf enum {@code gauge.messages.ProtoItem.ItemType}
*/
public enum ItemType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
* Item is a Step
* </pre>
*
* <code>Step = 0;</code>
*/
Step(0),
/**
* <pre>
* Item is a Comment
* </pre>
*
* <code>Comment = 1;</code>
*/
Comment(1),
/**
* <pre>
* Item is a Concept
* </pre>
*
* <code>Concept = 2;</code>
*/
Concept(2),
/**
* <pre>
* Item is a Scenario
* </pre>
*
* <code>Scenario = 3;</code>
*/
Scenario(3),
/**
* <pre>
* Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table.
* </pre>
*
* <code>TableDrivenScenario = 4;</code>
*/
TableDrivenScenario(4),
/**
* <pre>
* Item is a Table
* </pre>
*
* <code>Table = 5;</code>
*/
Table(5),
/**
* <pre>
* Item is a Tag
* </pre>
*
* <code>Tags = 6;</code>
*/
Tags(6),
UNRECOGNIZED(-1),
;
/**
* <pre>
* Item is a Step
* </pre>
*
* <code>Step = 0;</code>
*/
public static final int Step_VALUE = 0;
/**
* <pre>
* Item is a Comment
* </pre>
*
* <code>Comment = 1;</code>
*/
public static final int Comment_VALUE = 1;
/**
* <pre>
* Item is a Concept
* </pre>
*
* <code>Concept = 2;</code>
*/
public static final int Concept_VALUE = 2;
/**
* <pre>
* Item is a Scenario
* </pre>
*
* <code>Scenario = 3;</code>
*/
public static final int Scenario_VALUE = 3;
/**
* <pre>
* Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table.
* </pre>
*
* <code>TableDrivenScenario = 4;</code>
*/
public static final int TableDrivenScenario_VALUE = 4;
/**
* <pre>
* Item is a Table
* </pre>
*
* <code>Table = 5;</code>
*/
public static final int Table_VALUE = 5;
/**
* <pre>
* Item is a Tag
* </pre>
*
* <code>Tags = 6;</code>
*/
public static final int Tags_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ItemType valueOf(int value) {
return forNumber(value);
}
public static ItemType forNumber(int value) {
switch (value) {
case 0: return Step;
case 1: return Comment;
case 2: return Concept;
case 3: return Scenario;
case 4: return TableDrivenScenario;
case 5: return Table;
case 6: return Tags;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ItemType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ItemType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ItemType>() {
public ItemType findValueByNumber(int number) {
return ItemType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return gauge.messages.Spec.ProtoItem.getDescriptor().getEnumTypes().get(0);
}
private static final ItemType[] VALUES = values();
public static ItemType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ItemType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:gauge.messages.ProtoItem.ItemType)
}
public static final int ITEMTYPE_FIELD_NUMBER = 1;
private int itemType_;
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public int getItemTypeValue() {
return itemType_;
}
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public gauge.messages.Spec.ProtoItem.ItemType getItemType() {
gauge.messages.Spec.ProtoItem.ItemType result = gauge.messages.Spec.ProtoItem.ItemType.valueOf(itemType_);
return result == null ? gauge.messages.Spec.ProtoItem.ItemType.UNRECOGNIZED : result;
}
public static final int STEP_FIELD_NUMBER = 2;
private gauge.messages.Spec.ProtoStep step_;
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public boolean hasStep() {
return step_ != null;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public gauge.messages.Spec.ProtoStep getStep() {
return step_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : step_;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public gauge.messages.Spec.ProtoStepOrBuilder getStepOrBuilder() {
return getStep();
}
public static final int CONCEPT_FIELD_NUMBER = 3;
private gauge.messages.Spec.ProtoConcept concept_;
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public boolean hasConcept() {
return concept_ != null;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public gauge.messages.Spec.ProtoConcept getConcept() {
return concept_ == null ? gauge.messages.Spec.ProtoConcept.getDefaultInstance() : concept_;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public gauge.messages.Spec.ProtoConceptOrBuilder getConceptOrBuilder() {
return getConcept();
}
public static final int SCENARIO_FIELD_NUMBER = 4;
private gauge.messages.Spec.ProtoScenario scenario_;
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public boolean hasScenario() {
return scenario_ != null;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
return getScenario();
}
public static final int TABLEDRIVENSCENARIO_FIELD_NUMBER = 5;
private gauge.messages.Spec.ProtoTableDrivenScenario tableDrivenScenario_;
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public boolean hasTableDrivenScenario() {
return tableDrivenScenario_ != null;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public gauge.messages.Spec.ProtoTableDrivenScenario getTableDrivenScenario() {
return tableDrivenScenario_ == null ? gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance() : tableDrivenScenario_;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder getTableDrivenScenarioOrBuilder() {
return getTableDrivenScenario();
}
public static final int COMMENT_FIELD_NUMBER = 6;
private gauge.messages.Spec.ProtoComment comment_;
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public boolean hasComment() {
return comment_ != null;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public gauge.messages.Spec.ProtoComment getComment() {
return comment_ == null ? gauge.messages.Spec.ProtoComment.getDefaultInstance() : comment_;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public gauge.messages.Spec.ProtoCommentOrBuilder getCommentOrBuilder() {
return getComment();
}
public static final int TABLE_FIELD_NUMBER = 7;
private gauge.messages.Spec.ProtoTable table_;
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public boolean hasTable() {
return table_ != null;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public gauge.messages.Spec.ProtoTable getTable() {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
return getTable();
}
public static final int TAGS_FIELD_NUMBER = 8;
private gauge.messages.Spec.ProtoTags tags_;
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public boolean hasTags() {
return tags_ != null;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public gauge.messages.Spec.ProtoTags getTags() {
return tags_ == null ? gauge.messages.Spec.ProtoTags.getDefaultInstance() : tags_;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public gauge.messages.Spec.ProtoTagsOrBuilder getTagsOrBuilder() {
return getTags();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (itemType_ != gauge.messages.Spec.ProtoItem.ItemType.Step.getNumber()) {
output.writeEnum(1, itemType_);
}
if (step_ != null) {
output.writeMessage(2, getStep());
}
if (concept_ != null) {
output.writeMessage(3, getConcept());
}
if (scenario_ != null) {
output.writeMessage(4, getScenario());
}
if (tableDrivenScenario_ != null) {
output.writeMessage(5, getTableDrivenScenario());
}
if (comment_ != null) {
output.writeMessage(6, getComment());
}
if (table_ != null) {
output.writeMessage(7, getTable());
}
if (tags_ != null) {
output.writeMessage(8, getTags());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (itemType_ != gauge.messages.Spec.ProtoItem.ItemType.Step.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, itemType_);
}
if (step_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStep());
}
if (concept_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConcept());
}
if (scenario_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getScenario());
}
if (tableDrivenScenario_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTableDrivenScenario());
}
if (comment_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getComment());
}
if (table_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTable());
}
if (tags_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getTags());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoItem)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoItem other = (gauge.messages.Spec.ProtoItem) obj;
boolean result = true;
result = result && itemType_ == other.itemType_;
result = result && (hasStep() == other.hasStep());
if (hasStep()) {
result = result && getStep()
.equals(other.getStep());
}
result = result && (hasConcept() == other.hasConcept());
if (hasConcept()) {
result = result && getConcept()
.equals(other.getConcept());
}
result = result && (hasScenario() == other.hasScenario());
if (hasScenario()) {
result = result && getScenario()
.equals(other.getScenario());
}
result = result && (hasTableDrivenScenario() == other.hasTableDrivenScenario());
if (hasTableDrivenScenario()) {
result = result && getTableDrivenScenario()
.equals(other.getTableDrivenScenario());
}
result = result && (hasComment() == other.hasComment());
if (hasComment()) {
result = result && getComment()
.equals(other.getComment());
}
result = result && (hasTable() == other.hasTable());
if (hasTable()) {
result = result && getTable()
.equals(other.getTable());
}
result = result && (hasTags() == other.hasTags());
if (hasTags()) {
result = result && getTags()
.equals(other.getTags());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ITEMTYPE_FIELD_NUMBER;
hash = (53 * hash) + itemType_;
if (hasStep()) {
hash = (37 * hash) + STEP_FIELD_NUMBER;
hash = (53 * hash) + getStep().hashCode();
}
if (hasConcept()) {
hash = (37 * hash) + CONCEPT_FIELD_NUMBER;
hash = (53 * hash) + getConcept().hashCode();
}
if (hasScenario()) {
hash = (37 * hash) + SCENARIO_FIELD_NUMBER;
hash = (53 * hash) + getScenario().hashCode();
}
if (hasTableDrivenScenario()) {
hash = (37 * hash) + TABLEDRIVENSCENARIO_FIELD_NUMBER;
hash = (53 * hash) + getTableDrivenScenario().hashCode();
}
if (hasComment()) {
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
}
if (hasTable()) {
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
}
if (hasTags()) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTags().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoItem parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoItem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ Container for all valid Items under a Specification.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoItem)
gauge.messages.Spec.ProtoItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoItem.class, gauge.messages.Spec.ProtoItem.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
itemType_ = 0;
if (stepBuilder_ == null) {
step_ = null;
} else {
step_ = null;
stepBuilder_ = null;
}
if (conceptBuilder_ == null) {
concept_ = null;
} else {
concept_ = null;
conceptBuilder_ = null;
}
if (scenarioBuilder_ == null) {
scenario_ = null;
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
if (tableDrivenScenarioBuilder_ == null) {
tableDrivenScenario_ = null;
} else {
tableDrivenScenario_ = null;
tableDrivenScenarioBuilder_ = null;
}
if (commentBuilder_ == null) {
comment_ = null;
} else {
comment_ = null;
commentBuilder_ = null;
}
if (tableBuilder_ == null) {
table_ = null;
} else {
table_ = null;
tableBuilder_ = null;
}
if (tagsBuilder_ == null) {
tags_ = null;
} else {
tags_ = null;
tagsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_descriptor;
}
public gauge.messages.Spec.ProtoItem getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoItem.getDefaultInstance();
}
public gauge.messages.Spec.ProtoItem build() {
gauge.messages.Spec.ProtoItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoItem buildPartial() {
gauge.messages.Spec.ProtoItem result = new gauge.messages.Spec.ProtoItem(this);
result.itemType_ = itemType_;
if (stepBuilder_ == null) {
result.step_ = step_;
} else {
result.step_ = stepBuilder_.build();
}
if (conceptBuilder_ == null) {
result.concept_ = concept_;
} else {
result.concept_ = conceptBuilder_.build();
}
if (scenarioBuilder_ == null) {
result.scenario_ = scenario_;
} else {
result.scenario_ = scenarioBuilder_.build();
}
if (tableDrivenScenarioBuilder_ == null) {
result.tableDrivenScenario_ = tableDrivenScenario_;
} else {
result.tableDrivenScenario_ = tableDrivenScenarioBuilder_.build();
}
if (commentBuilder_ == null) {
result.comment_ = comment_;
} else {
result.comment_ = commentBuilder_.build();
}
if (tableBuilder_ == null) {
result.table_ = table_;
} else {
result.table_ = tableBuilder_.build();
}
if (tagsBuilder_ == null) {
result.tags_ = tags_;
} else {
result.tags_ = tagsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoItem) {
return mergeFrom((gauge.messages.Spec.ProtoItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoItem other) {
if (other == gauge.messages.Spec.ProtoItem.getDefaultInstance()) return this;
if (other.itemType_ != 0) {
setItemTypeValue(other.getItemTypeValue());
}
if (other.hasStep()) {
mergeStep(other.getStep());
}
if (other.hasConcept()) {
mergeConcept(other.getConcept());
}
if (other.hasScenario()) {
mergeScenario(other.getScenario());
}
if (other.hasTableDrivenScenario()) {
mergeTableDrivenScenario(other.getTableDrivenScenario());
}
if (other.hasComment()) {
mergeComment(other.getComment());
}
if (other.hasTable()) {
mergeTable(other.getTable());
}
if (other.hasTags()) {
mergeTags(other.getTags());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int itemType_ = 0;
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public int getItemTypeValue() {
return itemType_;
}
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public Builder setItemTypeValue(int value) {
itemType_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public gauge.messages.Spec.ProtoItem.ItemType getItemType() {
gauge.messages.Spec.ProtoItem.ItemType result = gauge.messages.Spec.ProtoItem.ItemType.valueOf(itemType_);
return result == null ? gauge.messages.Spec.ProtoItem.ItemType.UNRECOGNIZED : result;
}
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public Builder setItemType(gauge.messages.Spec.ProtoItem.ItemType value) {
if (value == null) {
throw new NullPointerException();
}
itemType_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*/ Itemtype of the current ProtoItem
* </pre>
*
* <code>optional .gauge.messages.ProtoItem.ItemType itemType = 1;</code>
*/
public Builder clearItemType() {
itemType_ = 0;
onChanged();
return this;
}
private gauge.messages.Spec.ProtoStep step_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStep, gauge.messages.Spec.ProtoStep.Builder, gauge.messages.Spec.ProtoStepOrBuilder> stepBuilder_;
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public boolean hasStep() {
return stepBuilder_ != null || step_ != null;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public gauge.messages.Spec.ProtoStep getStep() {
if (stepBuilder_ == null) {
return step_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : step_;
} else {
return stepBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public Builder setStep(gauge.messages.Spec.ProtoStep value) {
if (stepBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
step_ = value;
onChanged();
} else {
stepBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public Builder setStep(
gauge.messages.Spec.ProtoStep.Builder builderForValue) {
if (stepBuilder_ == null) {
step_ = builderForValue.build();
onChanged();
} else {
stepBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public Builder mergeStep(gauge.messages.Spec.ProtoStep value) {
if (stepBuilder_ == null) {
if (step_ != null) {
step_ =
gauge.messages.Spec.ProtoStep.newBuilder(step_).mergeFrom(value).buildPartial();
} else {
step_ = value;
}
onChanged();
} else {
stepBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public Builder clearStep() {
if (stepBuilder_ == null) {
step_ = null;
onChanged();
} else {
step_ = null;
stepBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public gauge.messages.Spec.ProtoStep.Builder getStepBuilder() {
onChanged();
return getStepFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
public gauge.messages.Spec.ProtoStepOrBuilder getStepOrBuilder() {
if (stepBuilder_ != null) {
return stepBuilder_.getMessageOrBuilder();
} else {
return step_ == null ?
gauge.messages.Spec.ProtoStep.getDefaultInstance() : step_;
}
}
/**
* <pre>
*/ Holds the Step definition. Valid only if ItemType = Step
* </pre>
*
* <code>optional .gauge.messages.ProtoStep step = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStep, gauge.messages.Spec.ProtoStep.Builder, gauge.messages.Spec.ProtoStepOrBuilder>
getStepFieldBuilder() {
if (stepBuilder_ == null) {
stepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStep, gauge.messages.Spec.ProtoStep.Builder, gauge.messages.Spec.ProtoStepOrBuilder>(
getStep(),
getParentForChildren(),
isClean());
step_ = null;
}
return stepBuilder_;
}
private gauge.messages.Spec.ProtoConcept concept_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoConcept, gauge.messages.Spec.ProtoConcept.Builder, gauge.messages.Spec.ProtoConceptOrBuilder> conceptBuilder_;
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public boolean hasConcept() {
return conceptBuilder_ != null || concept_ != null;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public gauge.messages.Spec.ProtoConcept getConcept() {
if (conceptBuilder_ == null) {
return concept_ == null ? gauge.messages.Spec.ProtoConcept.getDefaultInstance() : concept_;
} else {
return conceptBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public Builder setConcept(gauge.messages.Spec.ProtoConcept value) {
if (conceptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
concept_ = value;
onChanged();
} else {
conceptBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public Builder setConcept(
gauge.messages.Spec.ProtoConcept.Builder builderForValue) {
if (conceptBuilder_ == null) {
concept_ = builderForValue.build();
onChanged();
} else {
conceptBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public Builder mergeConcept(gauge.messages.Spec.ProtoConcept value) {
if (conceptBuilder_ == null) {
if (concept_ != null) {
concept_ =
gauge.messages.Spec.ProtoConcept.newBuilder(concept_).mergeFrom(value).buildPartial();
} else {
concept_ = value;
}
onChanged();
} else {
conceptBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public Builder clearConcept() {
if (conceptBuilder_ == null) {
concept_ = null;
onChanged();
} else {
concept_ = null;
conceptBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public gauge.messages.Spec.ProtoConcept.Builder getConceptBuilder() {
onChanged();
return getConceptFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
public gauge.messages.Spec.ProtoConceptOrBuilder getConceptOrBuilder() {
if (conceptBuilder_ != null) {
return conceptBuilder_.getMessageOrBuilder();
} else {
return concept_ == null ?
gauge.messages.Spec.ProtoConcept.getDefaultInstance() : concept_;
}
}
/**
* <pre>
*/ Holds the Concept definition. Valid only if ItemType = Concept
* </pre>
*
* <code>optional .gauge.messages.ProtoConcept concept = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoConcept, gauge.messages.Spec.ProtoConcept.Builder, gauge.messages.Spec.ProtoConceptOrBuilder>
getConceptFieldBuilder() {
if (conceptBuilder_ == null) {
conceptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoConcept, gauge.messages.Spec.ProtoConcept.Builder, gauge.messages.Spec.ProtoConceptOrBuilder>(
getConcept(),
getParentForChildren(),
isClean());
concept_ = null;
}
return conceptBuilder_;
}
private gauge.messages.Spec.ProtoScenario scenario_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoScenario, gauge.messages.Spec.ProtoScenario.Builder, gauge.messages.Spec.ProtoScenarioOrBuilder> scenarioBuilder_;
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public boolean hasScenario() {
return scenarioBuilder_ != null || scenario_ != null;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
if (scenarioBuilder_ == null) {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
} else {
return scenarioBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public Builder setScenario(gauge.messages.Spec.ProtoScenario value) {
if (scenarioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scenario_ = value;
onChanged();
} else {
scenarioBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public Builder setScenario(
gauge.messages.Spec.ProtoScenario.Builder builderForValue) {
if (scenarioBuilder_ == null) {
scenario_ = builderForValue.build();
onChanged();
} else {
scenarioBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public Builder mergeScenario(gauge.messages.Spec.ProtoScenario value) {
if (scenarioBuilder_ == null) {
if (scenario_ != null) {
scenario_ =
gauge.messages.Spec.ProtoScenario.newBuilder(scenario_).mergeFrom(value).buildPartial();
} else {
scenario_ = value;
}
onChanged();
} else {
scenarioBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public Builder clearScenario() {
if (scenarioBuilder_ == null) {
scenario_ = null;
onChanged();
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public gauge.messages.Spec.ProtoScenario.Builder getScenarioBuilder() {
onChanged();
return getScenarioFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
if (scenarioBuilder_ != null) {
return scenarioBuilder_.getMessageOrBuilder();
} else {
return scenario_ == null ?
gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
}
/**
* <pre>
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoScenario, gauge.messages.Spec.ProtoScenario.Builder, gauge.messages.Spec.ProtoScenarioOrBuilder>
getScenarioFieldBuilder() {
if (scenarioBuilder_ == null) {
scenarioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoScenario, gauge.messages.Spec.ProtoScenario.Builder, gauge.messages.Spec.ProtoScenarioOrBuilder>(
getScenario(),
getParentForChildren(),
isClean());
scenario_ = null;
}
return scenarioBuilder_;
}
private gauge.messages.Spec.ProtoTableDrivenScenario tableDrivenScenario_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTableDrivenScenario, gauge.messages.Spec.ProtoTableDrivenScenario.Builder, gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder> tableDrivenScenarioBuilder_;
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public boolean hasTableDrivenScenario() {
return tableDrivenScenarioBuilder_ != null || tableDrivenScenario_ != null;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public gauge.messages.Spec.ProtoTableDrivenScenario getTableDrivenScenario() {
if (tableDrivenScenarioBuilder_ == null) {
return tableDrivenScenario_ == null ? gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance() : tableDrivenScenario_;
} else {
return tableDrivenScenarioBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public Builder setTableDrivenScenario(gauge.messages.Spec.ProtoTableDrivenScenario value) {
if (tableDrivenScenarioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tableDrivenScenario_ = value;
onChanged();
} else {
tableDrivenScenarioBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public Builder setTableDrivenScenario(
gauge.messages.Spec.ProtoTableDrivenScenario.Builder builderForValue) {
if (tableDrivenScenarioBuilder_ == null) {
tableDrivenScenario_ = builderForValue.build();
onChanged();
} else {
tableDrivenScenarioBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public Builder mergeTableDrivenScenario(gauge.messages.Spec.ProtoTableDrivenScenario value) {
if (tableDrivenScenarioBuilder_ == null) {
if (tableDrivenScenario_ != null) {
tableDrivenScenario_ =
gauge.messages.Spec.ProtoTableDrivenScenario.newBuilder(tableDrivenScenario_).mergeFrom(value).buildPartial();
} else {
tableDrivenScenario_ = value;
}
onChanged();
} else {
tableDrivenScenarioBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public Builder clearTableDrivenScenario() {
if (tableDrivenScenarioBuilder_ == null) {
tableDrivenScenario_ = null;
onChanged();
} else {
tableDrivenScenario_ = null;
tableDrivenScenarioBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public gauge.messages.Spec.ProtoTableDrivenScenario.Builder getTableDrivenScenarioBuilder() {
onChanged();
return getTableDrivenScenarioFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
public gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder getTableDrivenScenarioOrBuilder() {
if (tableDrivenScenarioBuilder_ != null) {
return tableDrivenScenarioBuilder_.getMessageOrBuilder();
} else {
return tableDrivenScenario_ == null ?
gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance() : tableDrivenScenario_;
}
}
/**
* <pre>
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
* </pre>
*
* <code>optional .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTableDrivenScenario, gauge.messages.Spec.ProtoTableDrivenScenario.Builder, gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder>
getTableDrivenScenarioFieldBuilder() {
if (tableDrivenScenarioBuilder_ == null) {
tableDrivenScenarioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTableDrivenScenario, gauge.messages.Spec.ProtoTableDrivenScenario.Builder, gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder>(
getTableDrivenScenario(),
getParentForChildren(),
isClean());
tableDrivenScenario_ = null;
}
return tableDrivenScenarioBuilder_;
}
private gauge.messages.Spec.ProtoComment comment_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoComment, gauge.messages.Spec.ProtoComment.Builder, gauge.messages.Spec.ProtoCommentOrBuilder> commentBuilder_;
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public boolean hasComment() {
return commentBuilder_ != null || comment_ != null;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public gauge.messages.Spec.ProtoComment getComment() {
if (commentBuilder_ == null) {
return comment_ == null ? gauge.messages.Spec.ProtoComment.getDefaultInstance() : comment_;
} else {
return commentBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public Builder setComment(gauge.messages.Spec.ProtoComment value) {
if (commentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
comment_ = value;
onChanged();
} else {
commentBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public Builder setComment(
gauge.messages.Spec.ProtoComment.Builder builderForValue) {
if (commentBuilder_ == null) {
comment_ = builderForValue.build();
onChanged();
} else {
commentBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public Builder mergeComment(gauge.messages.Spec.ProtoComment value) {
if (commentBuilder_ == null) {
if (comment_ != null) {
comment_ =
gauge.messages.Spec.ProtoComment.newBuilder(comment_).mergeFrom(value).buildPartial();
} else {
comment_ = value;
}
onChanged();
} else {
commentBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public Builder clearComment() {
if (commentBuilder_ == null) {
comment_ = null;
onChanged();
} else {
comment_ = null;
commentBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public gauge.messages.Spec.ProtoComment.Builder getCommentBuilder() {
onChanged();
return getCommentFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
public gauge.messages.Spec.ProtoCommentOrBuilder getCommentOrBuilder() {
if (commentBuilder_ != null) {
return commentBuilder_.getMessageOrBuilder();
} else {
return comment_ == null ?
gauge.messages.Spec.ProtoComment.getDefaultInstance() : comment_;
}
}
/**
* <pre>
*/ Holds the Comment definition. Valid only if ItemType = Comment
* </pre>
*
* <code>optional .gauge.messages.ProtoComment comment = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoComment, gauge.messages.Spec.ProtoComment.Builder, gauge.messages.Spec.ProtoCommentOrBuilder>
getCommentFieldBuilder() {
if (commentBuilder_ == null) {
commentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoComment, gauge.messages.Spec.ProtoComment.Builder, gauge.messages.Spec.ProtoCommentOrBuilder>(
getComment(),
getParentForChildren(),
isClean());
comment_ = null;
}
return commentBuilder_;
}
private gauge.messages.Spec.ProtoTable table_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder> tableBuilder_;
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public boolean hasTable() {
return tableBuilder_ != null || table_ != null;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public gauge.messages.Spec.ProtoTable getTable() {
if (tableBuilder_ == null) {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
} else {
return tableBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public Builder setTable(gauge.messages.Spec.ProtoTable value) {
if (tableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
onChanged();
} else {
tableBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public Builder setTable(
gauge.messages.Spec.ProtoTable.Builder builderForValue) {
if (tableBuilder_ == null) {
table_ = builderForValue.build();
onChanged();
} else {
tableBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public Builder mergeTable(gauge.messages.Spec.ProtoTable value) {
if (tableBuilder_ == null) {
if (table_ != null) {
table_ =
gauge.messages.Spec.ProtoTable.newBuilder(table_).mergeFrom(value).buildPartial();
} else {
table_ = value;
}
onChanged();
} else {
tableBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
table_ = null;
onChanged();
} else {
table_ = null;
tableBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public gauge.messages.Spec.ProtoTable.Builder getTableBuilder() {
onChanged();
return getTableFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
return tableBuilder_.getMessageOrBuilder();
} else {
return table_ == null ?
gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
}
/**
* <pre>
*/ Holds the Table definition. Valid only if ItemType = Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>
getTableFieldBuilder() {
if (tableBuilder_ == null) {
tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>(
getTable(),
getParentForChildren(),
isClean());
table_ = null;
}
return tableBuilder_;
}
private gauge.messages.Spec.ProtoTags tags_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTags, gauge.messages.Spec.ProtoTags.Builder, gauge.messages.Spec.ProtoTagsOrBuilder> tagsBuilder_;
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public boolean hasTags() {
return tagsBuilder_ != null || tags_ != null;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public gauge.messages.Spec.ProtoTags getTags() {
if (tagsBuilder_ == null) {
return tags_ == null ? gauge.messages.Spec.ProtoTags.getDefaultInstance() : tags_;
} else {
return tagsBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public Builder setTags(gauge.messages.Spec.ProtoTags value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tags_ = value;
onChanged();
} else {
tagsBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public Builder setTags(
gauge.messages.Spec.ProtoTags.Builder builderForValue) {
if (tagsBuilder_ == null) {
tags_ = builderForValue.build();
onChanged();
} else {
tagsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public Builder mergeTags(gauge.messages.Spec.ProtoTags value) {
if (tagsBuilder_ == null) {
if (tags_ != null) {
tags_ =
gauge.messages.Spec.ProtoTags.newBuilder(tags_).mergeFrom(value).buildPartial();
} else {
tags_ = value;
}
onChanged();
} else {
tagsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public Builder clearTags() {
if (tagsBuilder_ == null) {
tags_ = null;
onChanged();
} else {
tags_ = null;
tagsBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public gauge.messages.Spec.ProtoTags.Builder getTagsBuilder() {
onChanged();
return getTagsFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
public gauge.messages.Spec.ProtoTagsOrBuilder getTagsOrBuilder() {
if (tagsBuilder_ != null) {
return tagsBuilder_.getMessageOrBuilder();
} else {
return tags_ == null ?
gauge.messages.Spec.ProtoTags.getDefaultInstance() : tags_;
}
}
/**
* <pre>
*/ Holds the Tags definition. Valid only if ItemType = Tags
* </pre>
*
* <code>optional .gauge.messages.ProtoTags tags = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTags, gauge.messages.Spec.ProtoTags.Builder, gauge.messages.Spec.ProtoTagsOrBuilder>
getTagsFieldBuilder() {
if (tagsBuilder_ == null) {
tagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTags, gauge.messages.Spec.ProtoTags.Builder, gauge.messages.Spec.ProtoTagsOrBuilder>(
getTags(),
getParentForChildren(),
isClean());
tags_ = null;
}
return tagsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoItem)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoItem)
private static final gauge.messages.Spec.ProtoItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoItem();
}
public static gauge.messages.Spec.ProtoItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoItem>
PARSER = new com.google.protobuf.AbstractParser<ProtoItem>() {
public ProtoItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoItem(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoItem> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoItem> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoScenarioOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoScenario)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
java.lang.String getScenarioHeading();
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
com.google.protobuf.ByteString
getScenarioHeadingBytes();
/**
* <pre>
*/ Flag to indicate if the Scenario execution failed
* </pre>
*
* <code>optional bool failed = 2 [deprecated = true];</code>
*/
@java.lang.Deprecated boolean getFailed();
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
java.util.List<gauge.messages.Spec.ProtoItem>
getContextsList();
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
gauge.messages.Spec.ProtoItem getContexts(int index);
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
int getContextsCount();
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getContextsOrBuilderList();
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
gauge.messages.Spec.ProtoItemOrBuilder getContextsOrBuilder(
int index);
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
java.util.List<gauge.messages.Spec.ProtoItem>
getScenarioItemsList();
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
gauge.messages.Spec.ProtoItem getScenarioItems(int index);
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
int getScenarioItemsCount();
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getScenarioItemsOrBuilderList();
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
gauge.messages.Spec.ProtoItemOrBuilder getScenarioItemsOrBuilder(
int index);
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
boolean hasPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
boolean hasPostHookFailure();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailure();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder();
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
java.util.List<java.lang.String>
getTagsList();
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
int getTagsCount();
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
java.lang.String getTags(int index);
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 8;</code>
*/
long getExecutionTime();
/**
* <pre>
*/ Flag to indicate if the Scenario execution is skipped
* </pre>
*
* <code>optional bool skipped = 9 [deprecated = true];</code>
*/
@java.lang.Deprecated boolean getSkipped();
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
java.util.List<java.lang.String>
getSkipErrorsList();
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
int getSkipErrorsCount();
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
java.lang.String getSkipErrors(int index);
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
com.google.protobuf.ByteString
getSkipErrorsBytes(int index);
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
java.lang.String getID();
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
com.google.protobuf.ByteString
getIDBytes();
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
java.util.List<gauge.messages.Spec.ProtoItem>
getTearDownStepsList();
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
gauge.messages.Spec.ProtoItem getTearDownSteps(int index);
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
int getTearDownStepsCount();
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getTearDownStepsOrBuilderList();
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
gauge.messages.Spec.ProtoItemOrBuilder getTearDownStepsOrBuilder(
int index);
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
boolean hasSpan();
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
gauge.messages.Spec.Span getSpan();
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder();
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
int getExecutionStatusValue();
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
gauge.messages.Spec.ExecutionStatus getExecutionStatus();
}
/**
* <pre>
*/ A proto object representing a Scenario
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoScenario}
*/
public static final class ProtoScenario extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoScenario)
ProtoScenarioOrBuilder {
// Use ProtoScenario.newBuilder() to construct.
private ProtoScenario(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoScenario() {
scenarioHeading_ = "";
failed_ = false;
contexts_ = java.util.Collections.emptyList();
scenarioItems_ = java.util.Collections.emptyList();
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
executionTime_ = 0L;
skipped_ = false;
skipErrors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
iD_ = "";
tearDownSteps_ = java.util.Collections.emptyList();
executionStatus_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoScenario(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
scenarioHeading_ = s;
break;
}
case 16: {
failed_ = input.readBool();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
contexts_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>();
mutable_bitField0_ |= 0x00000004;
}
contexts_.add(
input.readMessage(gauge.messages.Spec.ProtoItem.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
scenarioItems_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>();
mutable_bitField0_ |= 0x00000008;
}
scenarioItems_.add(
input.readMessage(gauge.messages.Spec.ProtoItem.parser(), extensionRegistry));
break;
}
case 42: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (preHookFailure_ != null) {
subBuilder = preHookFailure_.toBuilder();
}
preHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(preHookFailure_);
preHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 50: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (postHookFailure_ != null) {
subBuilder = postHookFailure_.toBuilder();
}
postHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(postHookFailure_);
postHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
tags_.add(s);
break;
}
case 64: {
executionTime_ = input.readInt64();
break;
}
case 72: {
skipped_ = input.readBool();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
skipErrors_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
skipErrors_.add(s);
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
iD_ = s;
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
tearDownSteps_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>();
mutable_bitField0_ |= 0x00000800;
}
tearDownSteps_.add(
input.readMessage(gauge.messages.Spec.ProtoItem.parser(), extensionRegistry));
break;
}
case 106: {
gauge.messages.Spec.Span.Builder subBuilder = null;
if (span_ != null) {
subBuilder = span_.toBuilder();
}
span_ = input.readMessage(gauge.messages.Spec.Span.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(span_);
span_ = subBuilder.buildPartial();
}
break;
}
case 112: {
int rawValue = input.readEnum();
executionStatus_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
contexts_ = java.util.Collections.unmodifiableList(contexts_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
scenarioItems_ = java.util.Collections.unmodifiableList(scenarioItems_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = tags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
skipErrors_ = skipErrors_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
tearDownSteps_ = java.util.Collections.unmodifiableList(tearDownSteps_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoScenario.class, gauge.messages.Spec.ProtoScenario.Builder.class);
}
private int bitField0_;
public static final int SCENARIOHEADING_FIELD_NUMBER = 1;
private volatile java.lang.Object scenarioHeading_;
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public java.lang.String getScenarioHeading() {
java.lang.Object ref = scenarioHeading_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scenarioHeading_ = s;
return s;
}
}
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public com.google.protobuf.ByteString
getScenarioHeadingBytes() {
java.lang.Object ref = scenarioHeading_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scenarioHeading_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FAILED_FIELD_NUMBER = 2;
private boolean failed_;
/**
* <pre>
*/ Flag to indicate if the Scenario execution failed
* </pre>
*
* <code>optional bool failed = 2 [deprecated = true];</code>
*/
@java.lang.Deprecated public boolean getFailed() {
return failed_;
}
public static final int CONTEXTS_FIELD_NUMBER = 3;
private java.util.List<gauge.messages.Spec.ProtoItem> contexts_;
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getContextsList() {
return contexts_;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getContextsOrBuilderList() {
return contexts_;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public int getContextsCount() {
return contexts_.size();
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItem getContexts(int index) {
return contexts_.get(index);
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getContextsOrBuilder(
int index) {
return contexts_.get(index);
}
public static final int SCENARIOITEMS_FIELD_NUMBER = 4;
private java.util.List<gauge.messages.Spec.ProtoItem> scenarioItems_;
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getScenarioItemsList() {
return scenarioItems_;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getScenarioItemsOrBuilderList() {
return scenarioItems_;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public int getScenarioItemsCount() {
return scenarioItems_.size();
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItem getScenarioItems(int index) {
return scenarioItems_.get(index);
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getScenarioItemsOrBuilder(
int index) {
return scenarioItems_.get(index);
}
public static final int PREHOOKFAILURE_FIELD_NUMBER = 5;
private gauge.messages.Spec.ProtoHookFailure preHookFailure_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
return getPreHookFailure();
}
public static final int POSTHOOKFAILURE_FIELD_NUMBER = 6;
private gauge.messages.Spec.ProtoHookFailure postHookFailure_;
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return getPostHookFailure();
}
public static final int TAGS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList tags_;
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 8;
private long executionTime_;
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 8;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
public static final int SKIPPED_FIELD_NUMBER = 9;
private boolean skipped_;
/**
* <pre>
*/ Flag to indicate if the Scenario execution is skipped
* </pre>
*
* <code>optional bool skipped = 9 [deprecated = true];</code>
*/
@java.lang.Deprecated public boolean getSkipped() {
return skipped_;
}
public static final int SKIPERRORS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList skipErrors_;
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public com.google.protobuf.ProtocolStringList
getSkipErrorsList() {
return skipErrors_;
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public int getSkipErrorsCount() {
return skipErrors_.size();
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public java.lang.String getSkipErrors(int index) {
return skipErrors_.get(index);
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public com.google.protobuf.ByteString
getSkipErrorsBytes(int index) {
return skipErrors_.getByteString(index);
}
public static final int ID_FIELD_NUMBER = 11;
private volatile java.lang.Object iD_;
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public java.lang.String getID() {
java.lang.Object ref = iD_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
iD_ = s;
return s;
}
}
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public com.google.protobuf.ByteString
getIDBytes() {
java.lang.Object ref = iD_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
iD_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEARDOWNSTEPS_FIELD_NUMBER = 12;
private java.util.List<gauge.messages.Spec.ProtoItem> tearDownSteps_;
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getTearDownStepsList() {
return tearDownSteps_;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getTearDownStepsOrBuilderList() {
return tearDownSteps_;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public int getTearDownStepsCount() {
return tearDownSteps_.size();
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItem getTearDownSteps(int index) {
return tearDownSteps_.get(index);
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getTearDownStepsOrBuilder(
int index) {
return tearDownSteps_.get(index);
}
public static final int SPAN_FIELD_NUMBER = 13;
private gauge.messages.Spec.Span span_;
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public boolean hasSpan() {
return span_ != null;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public gauge.messages.Spec.Span getSpan() {
return span_ == null ? gauge.messages.Spec.Span.getDefaultInstance() : span_;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder() {
return getSpan();
}
public static final int EXECUTIONSTATUS_FIELD_NUMBER = 14;
private int executionStatus_;
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public int getExecutionStatusValue() {
return executionStatus_;
}
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public gauge.messages.Spec.ExecutionStatus getExecutionStatus() {
gauge.messages.Spec.ExecutionStatus result = gauge.messages.Spec.ExecutionStatus.valueOf(executionStatus_);
return result == null ? gauge.messages.Spec.ExecutionStatus.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getScenarioHeadingBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scenarioHeading_);
}
if (failed_ != false) {
output.writeBool(2, failed_);
}
for (int i = 0; i < contexts_.size(); i++) {
output.writeMessage(3, contexts_.get(i));
}
for (int i = 0; i < scenarioItems_.size(); i++) {
output.writeMessage(4, scenarioItems_.get(i));
}
if (preHookFailure_ != null) {
output.writeMessage(5, getPreHookFailure());
}
if (postHookFailure_ != null) {
output.writeMessage(6, getPostHookFailure());
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tags_.getRaw(i));
}
if (executionTime_ != 0L) {
output.writeInt64(8, executionTime_);
}
if (skipped_ != false) {
output.writeBool(9, skipped_);
}
for (int i = 0; i < skipErrors_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, skipErrors_.getRaw(i));
}
if (!getIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, iD_);
}
for (int i = 0; i < tearDownSteps_.size(); i++) {
output.writeMessage(12, tearDownSteps_.get(i));
}
if (span_ != null) {
output.writeMessage(13, getSpan());
}
if (executionStatus_ != gauge.messages.Spec.ExecutionStatus.NOTEXECUTED.getNumber()) {
output.writeEnum(14, executionStatus_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getScenarioHeadingBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scenarioHeading_);
}
if (failed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, failed_);
}
for (int i = 0; i < contexts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, contexts_.get(i));
}
for (int i = 0; i < scenarioItems_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, scenarioItems_.get(i));
}
if (preHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPreHookFailure());
}
if (postHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPostHookFailure());
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
if (executionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, executionTime_);
}
if (skipped_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, skipped_);
}
{
int dataSize = 0;
for (int i = 0; i < skipErrors_.size(); i++) {
dataSize += computeStringSizeNoTag(skipErrors_.getRaw(i));
}
size += dataSize;
size += 1 * getSkipErrorsList().size();
}
if (!getIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, iD_);
}
for (int i = 0; i < tearDownSteps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, tearDownSteps_.get(i));
}
if (span_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getSpan());
}
if (executionStatus_ != gauge.messages.Spec.ExecutionStatus.NOTEXECUTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, executionStatus_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoScenario)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoScenario other = (gauge.messages.Spec.ProtoScenario) obj;
boolean result = true;
result = result && getScenarioHeading()
.equals(other.getScenarioHeading());
result = result && (getFailed()
== other.getFailed());
result = result && getContextsList()
.equals(other.getContextsList());
result = result && getScenarioItemsList()
.equals(other.getScenarioItemsList());
result = result && (hasPreHookFailure() == other.hasPreHookFailure());
if (hasPreHookFailure()) {
result = result && getPreHookFailure()
.equals(other.getPreHookFailure());
}
result = result && (hasPostHookFailure() == other.hasPostHookFailure());
if (hasPostHookFailure()) {
result = result && getPostHookFailure()
.equals(other.getPostHookFailure());
}
result = result && getTagsList()
.equals(other.getTagsList());
result = result && (getExecutionTime()
== other.getExecutionTime());
result = result && (getSkipped()
== other.getSkipped());
result = result && getSkipErrorsList()
.equals(other.getSkipErrorsList());
result = result && getID()
.equals(other.getID());
result = result && getTearDownStepsList()
.equals(other.getTearDownStepsList());
result = result && (hasSpan() == other.hasSpan());
if (hasSpan()) {
result = result && getSpan()
.equals(other.getSpan());
}
result = result && executionStatus_ == other.executionStatus_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + SCENARIOHEADING_FIELD_NUMBER;
hash = (53 * hash) + getScenarioHeading().hashCode();
hash = (37 * hash) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailed());
if (getContextsCount() > 0) {
hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
hash = (53 * hash) + getContextsList().hashCode();
}
if (getScenarioItemsCount() > 0) {
hash = (37 * hash) + SCENARIOITEMS_FIELD_NUMBER;
hash = (53 * hash) + getScenarioItemsList().hashCode();
}
if (hasPreHookFailure()) {
hash = (37 * hash) + PREHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookFailure().hashCode();
}
if (hasPostHookFailure()) {
hash = (37 * hash) + POSTHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookFailure().hashCode();
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (37 * hash) + EXECUTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutionTime());
hash = (37 * hash) + SKIPPED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSkipped());
if (getSkipErrorsCount() > 0) {
hash = (37 * hash) + SKIPERRORS_FIELD_NUMBER;
hash = (53 * hash) + getSkipErrorsList().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getID().hashCode();
if (getTearDownStepsCount() > 0) {
hash = (37 * hash) + TEARDOWNSTEPS_FIELD_NUMBER;
hash = (53 * hash) + getTearDownStepsList().hashCode();
}
if (hasSpan()) {
hash = (37 * hash) + SPAN_FIELD_NUMBER;
hash = (53 * hash) + getSpan().hashCode();
}
hash = (37 * hash) + EXECUTIONSTATUS_FIELD_NUMBER;
hash = (53 * hash) + executionStatus_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoScenario parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoScenario parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoScenario prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a Scenario
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoScenario}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoScenario)
gauge.messages.Spec.ProtoScenarioOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoScenario.class, gauge.messages.Spec.ProtoScenario.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoScenario.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContextsFieldBuilder();
getScenarioItemsFieldBuilder();
getTearDownStepsFieldBuilder();
}
}
public Builder clear() {
super.clear();
scenarioHeading_ = "";
failed_ = false;
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
contextsBuilder_.clear();
}
if (scenarioItemsBuilder_ == null) {
scenarioItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
scenarioItemsBuilder_.clear();
}
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
executionTime_ = 0L;
skipped_ = false;
skipErrors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
iD_ = "";
if (tearDownStepsBuilder_ == null) {
tearDownSteps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
} else {
tearDownStepsBuilder_.clear();
}
if (spanBuilder_ == null) {
span_ = null;
} else {
span_ = null;
spanBuilder_ = null;
}
executionStatus_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_descriptor;
}
public gauge.messages.Spec.ProtoScenario getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoScenario.getDefaultInstance();
}
public gauge.messages.Spec.ProtoScenario build() {
gauge.messages.Spec.ProtoScenario result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoScenario buildPartial() {
gauge.messages.Spec.ProtoScenario result = new gauge.messages.Spec.ProtoScenario(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.scenarioHeading_ = scenarioHeading_;
result.failed_ = failed_;
if (contextsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
contexts_ = java.util.Collections.unmodifiableList(contexts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.contexts_ = contexts_;
} else {
result.contexts_ = contextsBuilder_.build();
}
if (scenarioItemsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
scenarioItems_ = java.util.Collections.unmodifiableList(scenarioItems_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.scenarioItems_ = scenarioItems_;
} else {
result.scenarioItems_ = scenarioItemsBuilder_.build();
}
if (preHookFailureBuilder_ == null) {
result.preHookFailure_ = preHookFailure_;
} else {
result.preHookFailure_ = preHookFailureBuilder_.build();
}
if (postHookFailureBuilder_ == null) {
result.postHookFailure_ = postHookFailure_;
} else {
result.postHookFailure_ = postHookFailureBuilder_.build();
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.tags_ = tags_;
result.executionTime_ = executionTime_;
result.skipped_ = skipped_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
skipErrors_ = skipErrors_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.skipErrors_ = skipErrors_;
result.iD_ = iD_;
if (tearDownStepsBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800)) {
tearDownSteps_ = java.util.Collections.unmodifiableList(tearDownSteps_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.tearDownSteps_ = tearDownSteps_;
} else {
result.tearDownSteps_ = tearDownStepsBuilder_.build();
}
if (spanBuilder_ == null) {
result.span_ = span_;
} else {
result.span_ = spanBuilder_.build();
}
result.executionStatus_ = executionStatus_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoScenario) {
return mergeFrom((gauge.messages.Spec.ProtoScenario)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoScenario other) {
if (other == gauge.messages.Spec.ProtoScenario.getDefaultInstance()) return this;
if (!other.getScenarioHeading().isEmpty()) {
scenarioHeading_ = other.scenarioHeading_;
onChanged();
}
if (other.getFailed() != false) {
setFailed(other.getFailed());
}
if (contextsBuilder_ == null) {
if (!other.contexts_.isEmpty()) {
if (contexts_.isEmpty()) {
contexts_ = other.contexts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureContextsIsMutable();
contexts_.addAll(other.contexts_);
}
onChanged();
}
} else {
if (!other.contexts_.isEmpty()) {
if (contextsBuilder_.isEmpty()) {
contextsBuilder_.dispose();
contextsBuilder_ = null;
contexts_ = other.contexts_;
bitField0_ = (bitField0_ & ~0x00000004);
contextsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextsFieldBuilder() : null;
} else {
contextsBuilder_.addAllMessages(other.contexts_);
}
}
}
if (scenarioItemsBuilder_ == null) {
if (!other.scenarioItems_.isEmpty()) {
if (scenarioItems_.isEmpty()) {
scenarioItems_ = other.scenarioItems_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureScenarioItemsIsMutable();
scenarioItems_.addAll(other.scenarioItems_);
}
onChanged();
}
} else {
if (!other.scenarioItems_.isEmpty()) {
if (scenarioItemsBuilder_.isEmpty()) {
scenarioItemsBuilder_.dispose();
scenarioItemsBuilder_ = null;
scenarioItems_ = other.scenarioItems_;
bitField0_ = (bitField0_ & ~0x00000008);
scenarioItemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getScenarioItemsFieldBuilder() : null;
} else {
scenarioItemsBuilder_.addAllMessages(other.scenarioItems_);
}
}
}
if (other.hasPreHookFailure()) {
mergePreHookFailure(other.getPreHookFailure());
}
if (other.hasPostHookFailure()) {
mergePostHookFailure(other.getPostHookFailure());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (other.getExecutionTime() != 0L) {
setExecutionTime(other.getExecutionTime());
}
if (other.getSkipped() != false) {
setSkipped(other.getSkipped());
}
if (!other.skipErrors_.isEmpty()) {
if (skipErrors_.isEmpty()) {
skipErrors_ = other.skipErrors_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureSkipErrorsIsMutable();
skipErrors_.addAll(other.skipErrors_);
}
onChanged();
}
if (!other.getID().isEmpty()) {
iD_ = other.iD_;
onChanged();
}
if (tearDownStepsBuilder_ == null) {
if (!other.tearDownSteps_.isEmpty()) {
if (tearDownSteps_.isEmpty()) {
tearDownSteps_ = other.tearDownSteps_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureTearDownStepsIsMutable();
tearDownSteps_.addAll(other.tearDownSteps_);
}
onChanged();
}
} else {
if (!other.tearDownSteps_.isEmpty()) {
if (tearDownStepsBuilder_.isEmpty()) {
tearDownStepsBuilder_.dispose();
tearDownStepsBuilder_ = null;
tearDownSteps_ = other.tearDownSteps_;
bitField0_ = (bitField0_ & ~0x00000800);
tearDownStepsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTearDownStepsFieldBuilder() : null;
} else {
tearDownStepsBuilder_.addAllMessages(other.tearDownSteps_);
}
}
}
if (other.hasSpan()) {
mergeSpan(other.getSpan());
}
if (other.executionStatus_ != 0) {
setExecutionStatusValue(other.getExecutionStatusValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoScenario parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoScenario) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object scenarioHeading_ = "";
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public java.lang.String getScenarioHeading() {
java.lang.Object ref = scenarioHeading_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scenarioHeading_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public com.google.protobuf.ByteString
getScenarioHeadingBytes() {
java.lang.Object ref = scenarioHeading_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scenarioHeading_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public Builder setScenarioHeading(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
scenarioHeading_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public Builder clearScenarioHeading() {
scenarioHeading_ = getDefaultInstance().getScenarioHeading();
onChanged();
return this;
}
/**
* <pre>
*/ Heading of the given Scenario
* </pre>
*
* <code>optional string scenarioHeading = 1;</code>
*/
public Builder setScenarioHeadingBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
scenarioHeading_ = value;
onChanged();
return this;
}
private boolean failed_ ;
/**
* <pre>
*/ Flag to indicate if the Scenario execution failed
* </pre>
*
* <code>optional bool failed = 2 [deprecated = true];</code>
*/
@java.lang.Deprecated public boolean getFailed() {
return failed_;
}
/**
* <pre>
*/ Flag to indicate if the Scenario execution failed
* </pre>
*
* <code>optional bool failed = 2 [deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag to indicate if the Scenario execution failed
* </pre>
*
* <code>optional bool failed = 2 [deprecated = true];</code>
*/
@java.lang.Deprecated public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private java.util.List<gauge.messages.Spec.ProtoItem> contexts_ =
java.util.Collections.emptyList();
private void ensureContextsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
contexts_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>(contexts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> contextsBuilder_;
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getContextsList() {
if (contextsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contexts_);
} else {
return contextsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public int getContextsCount() {
if (contextsBuilder_ == null) {
return contexts_.size();
} else {
return contextsBuilder_.getCount();
}
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItem getContexts(int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index);
} else {
return contextsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder setContexts(
int index, gauge.messages.Spec.ProtoItem value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.set(index, value);
onChanged();
} else {
contextsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder setContexts(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.set(index, builderForValue.build());
onChanged();
} else {
contextsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder addContexts(gauge.messages.Spec.ProtoItem value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.add(value);
onChanged();
} else {
contextsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder addContexts(
int index, gauge.messages.Spec.ProtoItem value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.add(index, value);
onChanged();
} else {
contextsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder addContexts(
gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(builderForValue.build());
onChanged();
} else {
contextsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder addContexts(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(index, builderForValue.build());
onChanged();
} else {
contextsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder addAllContexts(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoItem> values) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contexts_);
onChanged();
} else {
contextsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder clearContexts() {
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
contextsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public Builder removeContexts(int index) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.remove(index);
onChanged();
} else {
contextsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder getContextsBuilder(
int index) {
return getContextsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getContextsOrBuilder(
int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index); } else {
return contextsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getContextsOrBuilderList() {
if (contextsBuilder_ != null) {
return contextsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contexts_);
}
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addContextsBuilder() {
return getContextsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addContextsBuilder(
int index) {
return getContextsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Context steps. The Context steps are executed before every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem contexts = 3;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem.Builder>
getContextsBuilderList() {
return getContextsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>
getContextsFieldBuilder() {
if (contextsBuilder_ == null) {
contextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>(
contexts_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
contexts_ = null;
}
return contextsBuilder_;
}
private java.util.List<gauge.messages.Spec.ProtoItem> scenarioItems_ =
java.util.Collections.emptyList();
private void ensureScenarioItemsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
scenarioItems_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>(scenarioItems_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> scenarioItemsBuilder_;
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getScenarioItemsList() {
if (scenarioItemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(scenarioItems_);
} else {
return scenarioItemsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public int getScenarioItemsCount() {
if (scenarioItemsBuilder_ == null) {
return scenarioItems_.size();
} else {
return scenarioItemsBuilder_.getCount();
}
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItem getScenarioItems(int index) {
if (scenarioItemsBuilder_ == null) {
return scenarioItems_.get(index);
} else {
return scenarioItemsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder setScenarioItems(
int index, gauge.messages.Spec.ProtoItem value) {
if (scenarioItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureScenarioItemsIsMutable();
scenarioItems_.set(index, value);
onChanged();
} else {
scenarioItemsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder setScenarioItems(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
scenarioItems_.set(index, builderForValue.build());
onChanged();
} else {
scenarioItemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder addScenarioItems(gauge.messages.Spec.ProtoItem value) {
if (scenarioItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureScenarioItemsIsMutable();
scenarioItems_.add(value);
onChanged();
} else {
scenarioItemsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder addScenarioItems(
int index, gauge.messages.Spec.ProtoItem value) {
if (scenarioItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureScenarioItemsIsMutable();
scenarioItems_.add(index, value);
onChanged();
} else {
scenarioItemsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder addScenarioItems(
gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
scenarioItems_.add(builderForValue.build());
onChanged();
} else {
scenarioItemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder addScenarioItems(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
scenarioItems_.add(index, builderForValue.build());
onChanged();
} else {
scenarioItemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder addAllScenarioItems(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoItem> values) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, scenarioItems_);
onChanged();
} else {
scenarioItemsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder clearScenarioItems() {
if (scenarioItemsBuilder_ == null) {
scenarioItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
scenarioItemsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public Builder removeScenarioItems(int index) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
scenarioItems_.remove(index);
onChanged();
} else {
scenarioItemsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder getScenarioItemsBuilder(
int index) {
return getScenarioItemsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getScenarioItemsOrBuilder(
int index) {
if (scenarioItemsBuilder_ == null) {
return scenarioItems_.get(index); } else {
return scenarioItemsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getScenarioItemsOrBuilderList() {
if (scenarioItemsBuilder_ != null) {
return scenarioItemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(scenarioItems_);
}
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addScenarioItemsBuilder() {
return getScenarioItemsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addScenarioItemsBuilder(
int index) {
return getScenarioItemsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem scenarioItems = 4;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem.Builder>
getScenarioItemsBuilderList() {
return getScenarioItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>
getScenarioItemsFieldBuilder() {
if (scenarioItemsBuilder_ == null) {
scenarioItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>(
scenarioItems_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
scenarioItems_ = null;
}
return scenarioItemsBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure preHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> preHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailureBuilder_ != null || preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
if (preHookFailureBuilder_ == null) {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
} else {
return preHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public Builder setPreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
preHookFailure_ = value;
onChanged();
} else {
preHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public Builder setPreHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = builderForValue.build();
onChanged();
} else {
preHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public Builder mergePreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (preHookFailure_ != null) {
preHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(preHookFailure_).mergeFrom(value).buildPartial();
} else {
preHookFailure_ = value;
}
onChanged();
} else {
preHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public Builder clearPreHookFailure() {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
onChanged();
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailureBuilder() {
onChanged();
return getPreHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
if (preHookFailureBuilder_ != null) {
return preHookFailureBuilder_.getMessageOrBuilder();
} else {
return preHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPreHookFailureFieldBuilder() {
if (preHookFailureBuilder_ == null) {
preHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPreHookFailure(),
getParentForChildren(),
isClean());
preHookFailure_ = null;
}
return preHookFailureBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure postHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> postHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailureBuilder_ != null || postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
if (postHookFailureBuilder_ == null) {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
} else {
return postHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public Builder setPostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postHookFailure_ = value;
onChanged();
} else {
postHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public Builder setPostHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = builderForValue.build();
onChanged();
} else {
postHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public Builder mergePostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (postHookFailure_ != null) {
postHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(postHookFailure_).mergeFrom(value).buildPartial();
} else {
postHookFailure_ = value;
}
onChanged();
} else {
postHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public Builder clearPostHookFailure() {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
onChanged();
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailureBuilder() {
onChanged();
return getPostHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
if (postHookFailureBuilder_ != null) {
return postHookFailureBuilder_.getMessageOrBuilder();
} else {
return postHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPostHookFailureFieldBuilder() {
if (postHookFailureBuilder_ == null) {
postHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPostHookFailure(),
getParentForChildren(),
isClean());
postHookFailure_ = null;
}
return postHookFailureBuilder_;
}
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000040;
}
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder addAllTags(
java.lang.Iterable<java.lang.String> values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
* </pre>
*
* <code>repeated string tags = 7;</code>
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private long executionTime_ ;
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 8;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 8;</code>
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 8;</code>
*/
public Builder clearExecutionTime() {
executionTime_ = 0L;
onChanged();
return this;
}
private boolean skipped_ ;
/**
* <pre>
*/ Flag to indicate if the Scenario execution is skipped
* </pre>
*
* <code>optional bool skipped = 9 [deprecated = true];</code>
*/
@java.lang.Deprecated public boolean getSkipped() {
return skipped_;
}
/**
* <pre>
*/ Flag to indicate if the Scenario execution is skipped
* </pre>
*
* <code>optional bool skipped = 9 [deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setSkipped(boolean value) {
skipped_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag to indicate if the Scenario execution is skipped
* </pre>
*
* <code>optional bool skipped = 9 [deprecated = true];</code>
*/
@java.lang.Deprecated public Builder clearSkipped() {
skipped_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList skipErrors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSkipErrorsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
skipErrors_ = new com.google.protobuf.LazyStringArrayList(skipErrors_);
bitField0_ |= 0x00000200;
}
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public com.google.protobuf.ProtocolStringList
getSkipErrorsList() {
return skipErrors_.getUnmodifiableView();
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public int getSkipErrorsCount() {
return skipErrors_.size();
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public java.lang.String getSkipErrors(int index) {
return skipErrors_.get(index);
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public com.google.protobuf.ByteString
getSkipErrorsBytes(int index) {
return skipErrors_.getByteString(index);
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public Builder setSkipErrors(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSkipErrorsIsMutable();
skipErrors_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public Builder addSkipErrors(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSkipErrorsIsMutable();
skipErrors_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public Builder addAllSkipErrors(
java.lang.Iterable<java.lang.String> values) {
ensureSkipErrorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, skipErrors_);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public Builder clearSkipErrors() {
skipErrors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the error messages for skipping scenario from execution
* </pre>
*
* <code>repeated string skipErrors = 10;</code>
*/
public Builder addSkipErrorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSkipErrorsIsMutable();
skipErrors_.add(value);
onChanged();
return this;
}
private java.lang.Object iD_ = "";
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public java.lang.String getID() {
java.lang.Object ref = iD_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
iD_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public com.google.protobuf.ByteString
getIDBytes() {
java.lang.Object ref = iD_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
iD_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public Builder setID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
iD_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public Builder clearID() {
iD_ = getDefaultInstance().getID();
onChanged();
return this;
}
/**
* <pre>
*/ Holds the unique Identifier of a scenario.
* </pre>
*
* <code>optional string ID = 11;</code>
*/
public Builder setIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
iD_ = value;
onChanged();
return this;
}
private java.util.List<gauge.messages.Spec.ProtoItem> tearDownSteps_ =
java.util.Collections.emptyList();
private void ensureTearDownStepsIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
tearDownSteps_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>(tearDownSteps_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> tearDownStepsBuilder_;
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getTearDownStepsList() {
if (tearDownStepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tearDownSteps_);
} else {
return tearDownStepsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public int getTearDownStepsCount() {
if (tearDownStepsBuilder_ == null) {
return tearDownSteps_.size();
} else {
return tearDownStepsBuilder_.getCount();
}
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItem getTearDownSteps(int index) {
if (tearDownStepsBuilder_ == null) {
return tearDownSteps_.get(index);
} else {
return tearDownStepsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder setTearDownSteps(
int index, gauge.messages.Spec.ProtoItem value) {
if (tearDownStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTearDownStepsIsMutable();
tearDownSteps_.set(index, value);
onChanged();
} else {
tearDownStepsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder setTearDownSteps(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
tearDownSteps_.set(index, builderForValue.build());
onChanged();
} else {
tearDownStepsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder addTearDownSteps(gauge.messages.Spec.ProtoItem value) {
if (tearDownStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTearDownStepsIsMutable();
tearDownSteps_.add(value);
onChanged();
} else {
tearDownStepsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder addTearDownSteps(
int index, gauge.messages.Spec.ProtoItem value) {
if (tearDownStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTearDownStepsIsMutable();
tearDownSteps_.add(index, value);
onChanged();
} else {
tearDownStepsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder addTearDownSteps(
gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
tearDownSteps_.add(builderForValue.build());
onChanged();
} else {
tearDownStepsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder addTearDownSteps(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
tearDownSteps_.add(index, builderForValue.build());
onChanged();
} else {
tearDownStepsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder addAllTearDownSteps(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoItem> values) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tearDownSteps_);
onChanged();
} else {
tearDownStepsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder clearTearDownSteps() {
if (tearDownStepsBuilder_ == null) {
tearDownSteps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
tearDownStepsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public Builder removeTearDownSteps(int index) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
tearDownSteps_.remove(index);
onChanged();
} else {
tearDownStepsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder getTearDownStepsBuilder(
int index) {
return getTearDownStepsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getTearDownStepsOrBuilder(
int index) {
if (tearDownStepsBuilder_ == null) {
return tearDownSteps_.get(index); } else {
return tearDownStepsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getTearDownStepsOrBuilderList() {
if (tearDownStepsBuilder_ != null) {
return tearDownStepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tearDownSteps_);
}
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addTearDownStepsBuilder() {
return getTearDownStepsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addTearDownStepsBuilder(
int index) {
return getTearDownStepsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem tearDownSteps = 12;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem.Builder>
getTearDownStepsBuilderList() {
return getTearDownStepsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>
getTearDownStepsFieldBuilder() {
if (tearDownStepsBuilder_ == null) {
tearDownStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>(
tearDownSteps_,
((bitField0_ & 0x00000800) == 0x00000800),
getParentForChildren(),
isClean());
tearDownSteps_ = null;
}
return tearDownStepsBuilder_;
}
private gauge.messages.Spec.Span span_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.Span, gauge.messages.Spec.Span.Builder, gauge.messages.Spec.SpanOrBuilder> spanBuilder_;
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public boolean hasSpan() {
return spanBuilder_ != null || span_ != null;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public gauge.messages.Spec.Span getSpan() {
if (spanBuilder_ == null) {
return span_ == null ? gauge.messages.Spec.Span.getDefaultInstance() : span_;
} else {
return spanBuilder_.getMessage();
}
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public Builder setSpan(gauge.messages.Spec.Span value) {
if (spanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
span_ = value;
onChanged();
} else {
spanBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public Builder setSpan(
gauge.messages.Spec.Span.Builder builderForValue) {
if (spanBuilder_ == null) {
span_ = builderForValue.build();
onChanged();
} else {
spanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public Builder mergeSpan(gauge.messages.Spec.Span value) {
if (spanBuilder_ == null) {
if (span_ != null) {
span_ =
gauge.messages.Spec.Span.newBuilder(span_).mergeFrom(value).buildPartial();
} else {
span_ = value;
}
onChanged();
} else {
spanBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public Builder clearSpan() {
if (spanBuilder_ == null) {
span_ = null;
onChanged();
} else {
span_ = null;
spanBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public gauge.messages.Spec.Span.Builder getSpanBuilder() {
onChanged();
return getSpanFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
public gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder() {
if (spanBuilder_ != null) {
return spanBuilder_.getMessageOrBuilder();
} else {
return span_ == null ?
gauge.messages.Spec.Span.getDefaultInstance() : span_;
}
}
/**
* <pre>
*/ Span(start, end) of scenario
* </pre>
*
* <code>optional .gauge.messages.Span span = 13;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.Span, gauge.messages.Spec.Span.Builder, gauge.messages.Spec.SpanOrBuilder>
getSpanFieldBuilder() {
if (spanBuilder_ == null) {
spanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.Span, gauge.messages.Spec.Span.Builder, gauge.messages.Spec.SpanOrBuilder>(
getSpan(),
getParentForChildren(),
isClean());
span_ = null;
}
return spanBuilder_;
}
private int executionStatus_ = 0;
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public int getExecutionStatusValue() {
return executionStatus_;
}
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public Builder setExecutionStatusValue(int value) {
executionStatus_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public gauge.messages.Spec.ExecutionStatus getExecutionStatus() {
gauge.messages.Spec.ExecutionStatus result = gauge.messages.Spec.ExecutionStatus.valueOf(executionStatus_);
return result == null ? gauge.messages.Spec.ExecutionStatus.UNRECOGNIZED : result;
}
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public Builder setExecutionStatus(gauge.messages.Spec.ExecutionStatus value) {
if (value == null) {
throw new NullPointerException();
}
executionStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*/ Execution status for the scenario
* </pre>
*
* <code>optional .gauge.messages.ExecutionStatus executionStatus = 14;</code>
*/
public Builder clearExecutionStatus() {
executionStatus_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoScenario)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoScenario)
private static final gauge.messages.Spec.ProtoScenario DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoScenario();
}
public static gauge.messages.Spec.ProtoScenario getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoScenario>
PARSER = new com.google.protobuf.AbstractParser<ProtoScenario>() {
public ProtoScenario parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoScenario(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoScenario> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoScenario> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoScenario getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpanOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.Span)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional int64 start = 1;</code>
*/
long getStart();
/**
* <code>optional int64 end = 2;</code>
*/
long getEnd();
}
/**
* <pre>
*/ A proto object representing a Span of content
* </pre>
*
* Protobuf type {@code gauge.messages.Span}
*/
public static final class Span extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.Span)
SpanOrBuilder {
// Use Span.newBuilder() to construct.
private Span(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Span() {
start_ = 0L;
end_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Span(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
start_ = input.readInt64();
break;
}
case 16: {
end_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.Span.class, gauge.messages.Spec.Span.Builder.class);
}
public static final int START_FIELD_NUMBER = 1;
private long start_;
/**
* <code>optional int64 start = 1;</code>
*/
public long getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 2;
private long end_;
/**
* <code>optional int64 end = 2;</code>
*/
public long getEnd() {
return end_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (start_ != 0L) {
output.writeInt64(1, start_);
}
if (end_ != 0L) {
output.writeInt64(2, end_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, start_);
}
if (end_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, end_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.Span)) {
return super.equals(obj);
}
gauge.messages.Spec.Span other = (gauge.messages.Spec.Span) obj;
boolean result = true;
result = result && (getStart()
== other.getStart());
result = result && (getEnd()
== other.getEnd());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStart());
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnd());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.Span parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Span parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.Span parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Span parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.Span parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Span parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Span parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Span parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Span parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Span parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.Span prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a Span of content
* </pre>
*
* Protobuf type {@code gauge.messages.Span}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.Span)
gauge.messages.Spec.SpanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.Span.class, gauge.messages.Spec.Span.Builder.class);
}
// Construct using gauge.messages.Spec.Span.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
start_ = 0L;
end_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_descriptor;
}
public gauge.messages.Spec.Span getDefaultInstanceForType() {
return gauge.messages.Spec.Span.getDefaultInstance();
}
public gauge.messages.Spec.Span build() {
gauge.messages.Spec.Span result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.Span buildPartial() {
gauge.messages.Spec.Span result = new gauge.messages.Spec.Span(this);
result.start_ = start_;
result.end_ = end_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.Span) {
return mergeFrom((gauge.messages.Spec.Span)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.Span other) {
if (other == gauge.messages.Spec.Span.getDefaultInstance()) return this;
if (other.getStart() != 0L) {
setStart(other.getStart());
}
if (other.getEnd() != 0L) {
setEnd(other.getEnd());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.Span parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.Span) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long start_ ;
/**
* <code>optional int64 start = 1;</code>
*/
public long getStart() {
return start_;
}
/**
* <code>optional int64 start = 1;</code>
*/
public Builder setStart(long value) {
start_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 start = 1;</code>
*/
public Builder clearStart() {
start_ = 0L;
onChanged();
return this;
}
private long end_ ;
/**
* <code>optional int64 end = 2;</code>
*/
public long getEnd() {
return end_;
}
/**
* <code>optional int64 end = 2;</code>
*/
public Builder setEnd(long value) {
end_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 end = 2;</code>
*/
public Builder clearEnd() {
end_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.Span)
}
// @@protoc_insertion_point(class_scope:gauge.messages.Span)
private static final gauge.messages.Spec.Span DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.Span();
}
public static gauge.messages.Spec.Span getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Span>
PARSER = new com.google.protobuf.AbstractParser<Span>() {
public Span parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Span(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Span> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Span> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.Span getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoTableDrivenScenarioOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoTableDrivenScenario)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
boolean hasScenario();
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
gauge.messages.Spec.ProtoScenario getScenario();
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder();
/**
* <pre>
*/ Row Index of data table against which the current scenario is executed
* </pre>
*
* <code>optional int32 tableRowIndex = 2;</code>
*/
int getTableRowIndex();
}
/**
* <pre>
*/ A proto object representing a TableDrivenScenario
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTableDrivenScenario}
*/
public static final class ProtoTableDrivenScenario extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoTableDrivenScenario)
ProtoTableDrivenScenarioOrBuilder {
// Use ProtoTableDrivenScenario.newBuilder() to construct.
private ProtoTableDrivenScenario(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoTableDrivenScenario() {
tableRowIndex_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoTableDrivenScenario(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
gauge.messages.Spec.ProtoScenario.Builder subBuilder = null;
if (scenario_ != null) {
subBuilder = scenario_.toBuilder();
}
scenario_ = input.readMessage(gauge.messages.Spec.ProtoScenario.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scenario_);
scenario_ = subBuilder.buildPartial();
}
break;
}
case 16: {
tableRowIndex_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTableDrivenScenario.class, gauge.messages.Spec.ProtoTableDrivenScenario.Builder.class);
}
public static final int SCENARIO_FIELD_NUMBER = 1;
private gauge.messages.Spec.ProtoScenario scenario_;
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public boolean hasScenario() {
return scenario_ != null;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
return getScenario();
}
public static final int TABLEROWINDEX_FIELD_NUMBER = 2;
private int tableRowIndex_;
/**
* <pre>
*/ Row Index of data table against which the current scenario is executed
* </pre>
*
* <code>optional int32 tableRowIndex = 2;</code>
*/
public int getTableRowIndex() {
return tableRowIndex_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (scenario_ != null) {
output.writeMessage(1, getScenario());
}
if (tableRowIndex_ != 0) {
output.writeInt32(2, tableRowIndex_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scenario_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getScenario());
}
if (tableRowIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, tableRowIndex_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoTableDrivenScenario)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoTableDrivenScenario other = (gauge.messages.Spec.ProtoTableDrivenScenario) obj;
boolean result = true;
result = result && (hasScenario() == other.hasScenario());
if (hasScenario()) {
result = result && getScenario()
.equals(other.getScenario());
}
result = result && (getTableRowIndex()
== other.getTableRowIndex());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasScenario()) {
hash = (37 * hash) + SCENARIO_FIELD_NUMBER;
hash = (53 * hash) + getScenario().hashCode();
}
hash = (37 * hash) + TABLEROWINDEX_FIELD_NUMBER;
hash = (53 * hash) + getTableRowIndex();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoTableDrivenScenario prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a TableDrivenScenario
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTableDrivenScenario}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoTableDrivenScenario)
gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTableDrivenScenario.class, gauge.messages.Spec.ProtoTableDrivenScenario.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoTableDrivenScenario.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (scenarioBuilder_ == null) {
scenario_ = null;
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
tableRowIndex_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor;
}
public gauge.messages.Spec.ProtoTableDrivenScenario getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance();
}
public gauge.messages.Spec.ProtoTableDrivenScenario build() {
gauge.messages.Spec.ProtoTableDrivenScenario result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoTableDrivenScenario buildPartial() {
gauge.messages.Spec.ProtoTableDrivenScenario result = new gauge.messages.Spec.ProtoTableDrivenScenario(this);
if (scenarioBuilder_ == null) {
result.scenario_ = scenario_;
} else {
result.scenario_ = scenarioBuilder_.build();
}
result.tableRowIndex_ = tableRowIndex_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoTableDrivenScenario) {
return mergeFrom((gauge.messages.Spec.ProtoTableDrivenScenario)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoTableDrivenScenario other) {
if (other == gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance()) return this;
if (other.hasScenario()) {
mergeScenario(other.getScenario());
}
if (other.getTableRowIndex() != 0) {
setTableRowIndex(other.getTableRowIndex());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoTableDrivenScenario parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoTableDrivenScenario) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private gauge.messages.Spec.ProtoScenario scenario_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoScenario, gauge.messages.Spec.ProtoScenario.Builder, gauge.messages.Spec.ProtoScenarioOrBuilder> scenarioBuilder_;
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public boolean hasScenario() {
return scenarioBuilder_ != null || scenario_ != null;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
if (scenarioBuilder_ == null) {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
} else {
return scenarioBuilder_.getMessage();
}
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public Builder setScenario(gauge.messages.Spec.ProtoScenario value) {
if (scenarioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scenario_ = value;
onChanged();
} else {
scenarioBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public Builder setScenario(
gauge.messages.Spec.ProtoScenario.Builder builderForValue) {
if (scenarioBuilder_ == null) {
scenario_ = builderForValue.build();
onChanged();
} else {
scenarioBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public Builder mergeScenario(gauge.messages.Spec.ProtoScenario value) {
if (scenarioBuilder_ == null) {
if (scenario_ != null) {
scenario_ =
gauge.messages.Spec.ProtoScenario.newBuilder(scenario_).mergeFrom(value).buildPartial();
} else {
scenario_ = value;
}
onChanged();
} else {
scenarioBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public Builder clearScenario() {
if (scenarioBuilder_ == null) {
scenario_ = null;
onChanged();
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public gauge.messages.Spec.ProtoScenario.Builder getScenarioBuilder() {
onChanged();
return getScenarioFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
if (scenarioBuilder_ != null) {
return scenarioBuilder_.getMessageOrBuilder();
} else {
return scenario_ == null ?
gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
}
/**
* <pre>
*/ Scenario under Table driven execution
* </pre>
*
* <code>optional .gauge.messages.ProtoScenario scenario = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoScenario, gauge.messages.Spec.ProtoScenario.Builder, gauge.messages.Spec.ProtoScenarioOrBuilder>
getScenarioFieldBuilder() {
if (scenarioBuilder_ == null) {
scenarioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoScenario, gauge.messages.Spec.ProtoScenario.Builder, gauge.messages.Spec.ProtoScenarioOrBuilder>(
getScenario(),
getParentForChildren(),
isClean());
scenario_ = null;
}
return scenarioBuilder_;
}
private int tableRowIndex_ ;
/**
* <pre>
*/ Row Index of data table against which the current scenario is executed
* </pre>
*
* <code>optional int32 tableRowIndex = 2;</code>
*/
public int getTableRowIndex() {
return tableRowIndex_;
}
/**
* <pre>
*/ Row Index of data table against which the current scenario is executed
* </pre>
*
* <code>optional int32 tableRowIndex = 2;</code>
*/
public Builder setTableRowIndex(int value) {
tableRowIndex_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Row Index of data table against which the current scenario is executed
* </pre>
*
* <code>optional int32 tableRowIndex = 2;</code>
*/
public Builder clearTableRowIndex() {
tableRowIndex_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoTableDrivenScenario)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoTableDrivenScenario)
private static final gauge.messages.Spec.ProtoTableDrivenScenario DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoTableDrivenScenario();
}
public static gauge.messages.Spec.ProtoTableDrivenScenario getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoTableDrivenScenario>
PARSER = new com.google.protobuf.AbstractParser<ProtoTableDrivenScenario>() {
public ProtoTableDrivenScenario parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoTableDrivenScenario(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoTableDrivenScenario> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoTableDrivenScenario> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoTableDrivenScenario getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoStepOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoStep)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
java.lang.String getActualText();
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
com.google.protobuf.ByteString
getActualTextBytes();
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
java.lang.String getParsedText();
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
com.google.protobuf.ByteString
getParsedTextBytes();
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
java.util.List<gauge.messages.Spec.Fragment>
getFragmentsList();
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
gauge.messages.Spec.Fragment getFragments(int index);
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
int getFragmentsCount();
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
java.util.List<? extends gauge.messages.Spec.FragmentOrBuilder>
getFragmentsOrBuilderList();
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
gauge.messages.Spec.FragmentOrBuilder getFragmentsOrBuilder(
int index);
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
boolean hasStepExecutionResult();
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
gauge.messages.Spec.ProtoStepExecutionResult getStepExecutionResult();
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder();
}
/**
* <pre>
*/ A proto object representing a Step
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoStep}
*/
public static final class ProtoStep extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoStep)
ProtoStepOrBuilder {
// Use ProtoStep.newBuilder() to construct.
private ProtoStep(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoStep() {
actualText_ = "";
parsedText_ = "";
fragments_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoStep(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
actualText_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
parsedText_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fragments_ = new java.util.ArrayList<gauge.messages.Spec.Fragment>();
mutable_bitField0_ |= 0x00000004;
}
fragments_.add(
input.readMessage(gauge.messages.Spec.Fragment.parser(), extensionRegistry));
break;
}
case 34: {
gauge.messages.Spec.ProtoStepExecutionResult.Builder subBuilder = null;
if (stepExecutionResult_ != null) {
subBuilder = stepExecutionResult_.toBuilder();
}
stepExecutionResult_ = input.readMessage(gauge.messages.Spec.ProtoStepExecutionResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stepExecutionResult_);
stepExecutionResult_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoStep.class, gauge.messages.Spec.ProtoStep.Builder.class);
}
private int bitField0_;
public static final int ACTUALTEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object actualText_;
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public java.lang.String getActualText() {
java.lang.Object ref = actualText_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
actualText_ = s;
return s;
}
}
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public com.google.protobuf.ByteString
getActualTextBytes() {
java.lang.Object ref = actualText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actualText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARSEDTEXT_FIELD_NUMBER = 2;
private volatile java.lang.Object parsedText_;
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public java.lang.String getParsedText() {
java.lang.Object ref = parsedText_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parsedText_ = s;
return s;
}
}
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public com.google.protobuf.ByteString
getParsedTextBytes() {
java.lang.Object ref = parsedText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parsedText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FRAGMENTS_FIELD_NUMBER = 3;
private java.util.List<gauge.messages.Spec.Fragment> fragments_;
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public java.util.List<gauge.messages.Spec.Fragment> getFragmentsList() {
return fragments_;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public java.util.List<? extends gauge.messages.Spec.FragmentOrBuilder>
getFragmentsOrBuilderList() {
return fragments_;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public int getFragmentsCount() {
return fragments_.size();
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.Fragment getFragments(int index) {
return fragments_.get(index);
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.FragmentOrBuilder getFragmentsOrBuilder(
int index) {
return fragments_.get(index);
}
public static final int STEPEXECUTIONRESULT_FIELD_NUMBER = 4;
private gauge.messages.Spec.ProtoStepExecutionResult stepExecutionResult_;
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public boolean hasStepExecutionResult() {
return stepExecutionResult_ != null;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResult getStepExecutionResult() {
return stepExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder() {
return getStepExecutionResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getActualTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actualText_);
}
if (!getParsedTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parsedText_);
}
for (int i = 0; i < fragments_.size(); i++) {
output.writeMessage(3, fragments_.get(i));
}
if (stepExecutionResult_ != null) {
output.writeMessage(4, getStepExecutionResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getActualTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actualText_);
}
if (!getParsedTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parsedText_);
}
for (int i = 0; i < fragments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, fragments_.get(i));
}
if (stepExecutionResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStepExecutionResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoStep)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoStep other = (gauge.messages.Spec.ProtoStep) obj;
boolean result = true;
result = result && getActualText()
.equals(other.getActualText());
result = result && getParsedText()
.equals(other.getParsedText());
result = result && getFragmentsList()
.equals(other.getFragmentsList());
result = result && (hasStepExecutionResult() == other.hasStepExecutionResult());
if (hasStepExecutionResult()) {
result = result && getStepExecutionResult()
.equals(other.getStepExecutionResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ACTUALTEXT_FIELD_NUMBER;
hash = (53 * hash) + getActualText().hashCode();
hash = (37 * hash) + PARSEDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getParsedText().hashCode();
if (getFragmentsCount() > 0) {
hash = (37 * hash) + FRAGMENTS_FIELD_NUMBER;
hash = (53 * hash) + getFragmentsList().hashCode();
}
if (hasStepExecutionResult()) {
hash = (37 * hash) + STEPEXECUTIONRESULT_FIELD_NUMBER;
hash = (53 * hash) + getStepExecutionResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoStep parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStep parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStep parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStep parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStep parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoStep prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a Step
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoStep}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoStep)
gauge.messages.Spec.ProtoStepOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoStep.class, gauge.messages.Spec.ProtoStep.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoStep.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFragmentsFieldBuilder();
}
}
public Builder clear() {
super.clear();
actualText_ = "";
parsedText_ = "";
if (fragmentsBuilder_ == null) {
fragments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
fragmentsBuilder_.clear();
}
if (stepExecutionResultBuilder_ == null) {
stepExecutionResult_ = null;
} else {
stepExecutionResult_ = null;
stepExecutionResultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_descriptor;
}
public gauge.messages.Spec.ProtoStep getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoStep.getDefaultInstance();
}
public gauge.messages.Spec.ProtoStep build() {
gauge.messages.Spec.ProtoStep result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoStep buildPartial() {
gauge.messages.Spec.ProtoStep result = new gauge.messages.Spec.ProtoStep(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.actualText_ = actualText_;
result.parsedText_ = parsedText_;
if (fragmentsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fragments_ = fragments_;
} else {
result.fragments_ = fragmentsBuilder_.build();
}
if (stepExecutionResultBuilder_ == null) {
result.stepExecutionResult_ = stepExecutionResult_;
} else {
result.stepExecutionResult_ = stepExecutionResultBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoStep) {
return mergeFrom((gauge.messages.Spec.ProtoStep)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoStep other) {
if (other == gauge.messages.Spec.ProtoStep.getDefaultInstance()) return this;
if (!other.getActualText().isEmpty()) {
actualText_ = other.actualText_;
onChanged();
}
if (!other.getParsedText().isEmpty()) {
parsedText_ = other.parsedText_;
onChanged();
}
if (fragmentsBuilder_ == null) {
if (!other.fragments_.isEmpty()) {
if (fragments_.isEmpty()) {
fragments_ = other.fragments_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFragmentsIsMutable();
fragments_.addAll(other.fragments_);
}
onChanged();
}
} else {
if (!other.fragments_.isEmpty()) {
if (fragmentsBuilder_.isEmpty()) {
fragmentsBuilder_.dispose();
fragmentsBuilder_ = null;
fragments_ = other.fragments_;
bitField0_ = (bitField0_ & ~0x00000004);
fragmentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentsFieldBuilder() : null;
} else {
fragmentsBuilder_.addAllMessages(other.fragments_);
}
}
}
if (other.hasStepExecutionResult()) {
mergeStepExecutionResult(other.getStepExecutionResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoStep parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoStep) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object actualText_ = "";
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public java.lang.String getActualText() {
java.lang.Object ref = actualText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
actualText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public com.google.protobuf.ByteString
getActualTextBytes() {
java.lang.Object ref = actualText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actualText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public Builder setActualText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
actualText_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public Builder clearActualText() {
actualText_ = getDefaultInstance().getActualText();
onChanged();
return this;
}
/**
* <pre>
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
* </pre>
*
* <code>optional string actualText = 1;</code>
*/
public Builder setActualTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
actualText_ = value;
onChanged();
return this;
}
private java.lang.Object parsedText_ = "";
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public java.lang.String getParsedText() {
java.lang.Object ref = parsedText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parsedText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public com.google.protobuf.ByteString
getParsedTextBytes() {
java.lang.Object ref = parsedText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parsedText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public Builder setParsedText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parsedText_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public Builder clearParsedText() {
parsedText_ = getDefaultInstance().getParsedText();
onChanged();
return this;
}
/**
* <pre>
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
* </pre>
*
* <code>optional string parsedText = 2;</code>
*/
public Builder setParsedTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parsedText_ = value;
onChanged();
return this;
}
private java.util.List<gauge.messages.Spec.Fragment> fragments_ =
java.util.Collections.emptyList();
private void ensureFragmentsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
fragments_ = new java.util.ArrayList<gauge.messages.Spec.Fragment>(fragments_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.Fragment, gauge.messages.Spec.Fragment.Builder, gauge.messages.Spec.FragmentOrBuilder> fragmentsBuilder_;
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public java.util.List<gauge.messages.Spec.Fragment> getFragmentsList() {
if (fragmentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fragments_);
} else {
return fragmentsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public int getFragmentsCount() {
if (fragmentsBuilder_ == null) {
return fragments_.size();
} else {
return fragmentsBuilder_.getCount();
}
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.Fragment getFragments(int index) {
if (fragmentsBuilder_ == null) {
return fragments_.get(index);
} else {
return fragmentsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder setFragments(
int index, gauge.messages.Spec.Fragment value) {
if (fragmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFragmentsIsMutable();
fragments_.set(index, value);
onChanged();
} else {
fragmentsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder setFragments(
int index, gauge.messages.Spec.Fragment.Builder builderForValue) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
fragments_.set(index, builderForValue.build());
onChanged();
} else {
fragmentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder addFragments(gauge.messages.Spec.Fragment value) {
if (fragmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFragmentsIsMutable();
fragments_.add(value);
onChanged();
} else {
fragmentsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder addFragments(
int index, gauge.messages.Spec.Fragment value) {
if (fragmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFragmentsIsMutable();
fragments_.add(index, value);
onChanged();
} else {
fragmentsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder addFragments(
gauge.messages.Spec.Fragment.Builder builderForValue) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
fragments_.add(builderForValue.build());
onChanged();
} else {
fragmentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder addFragments(
int index, gauge.messages.Spec.Fragment.Builder builderForValue) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
fragments_.add(index, builderForValue.build());
onChanged();
} else {
fragmentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder addAllFragments(
java.lang.Iterable<? extends gauge.messages.Spec.Fragment> values) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fragments_);
onChanged();
} else {
fragmentsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder clearFragments() {
if (fragmentsBuilder_ == null) {
fragments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
fragmentsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public Builder removeFragments(int index) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
fragments_.remove(index);
onChanged();
} else {
fragmentsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.Fragment.Builder getFragmentsBuilder(
int index) {
return getFragmentsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.FragmentOrBuilder getFragmentsOrBuilder(
int index) {
if (fragmentsBuilder_ == null) {
return fragments_.get(index); } else {
return fragmentsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public java.util.List<? extends gauge.messages.Spec.FragmentOrBuilder>
getFragmentsOrBuilderList() {
if (fragmentsBuilder_ != null) {
return fragmentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fragments_);
}
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.Fragment.Builder addFragmentsBuilder() {
return getFragmentsFieldBuilder().addBuilder(
gauge.messages.Spec.Fragment.getDefaultInstance());
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public gauge.messages.Spec.Fragment.Builder addFragmentsBuilder(
int index) {
return getFragmentsFieldBuilder().addBuilder(
index, gauge.messages.Spec.Fragment.getDefaultInstance());
}
/**
* <pre>
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
* </pre>
*
* <code>repeated .gauge.messages.Fragment fragments = 3;</code>
*/
public java.util.List<gauge.messages.Spec.Fragment.Builder>
getFragmentsBuilderList() {
return getFragmentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.Fragment, gauge.messages.Spec.Fragment.Builder, gauge.messages.Spec.FragmentOrBuilder>
getFragmentsFieldBuilder() {
if (fragmentsBuilder_ == null) {
fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.Fragment, gauge.messages.Spec.Fragment.Builder, gauge.messages.Spec.FragmentOrBuilder>(
fragments_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
fragments_ = null;
}
return fragmentsBuilder_;
}
private gauge.messages.Spec.ProtoStepExecutionResult stepExecutionResult_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStepExecutionResult, gauge.messages.Spec.ProtoStepExecutionResult.Builder, gauge.messages.Spec.ProtoStepExecutionResultOrBuilder> stepExecutionResultBuilder_;
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public boolean hasStepExecutionResult() {
return stepExecutionResultBuilder_ != null || stepExecutionResult_ != null;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResult getStepExecutionResult() {
if (stepExecutionResultBuilder_ == null) {
return stepExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
} else {
return stepExecutionResultBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public Builder setStepExecutionResult(gauge.messages.Spec.ProtoStepExecutionResult value) {
if (stepExecutionResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stepExecutionResult_ = value;
onChanged();
} else {
stepExecutionResultBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public Builder setStepExecutionResult(
gauge.messages.Spec.ProtoStepExecutionResult.Builder builderForValue) {
if (stepExecutionResultBuilder_ == null) {
stepExecutionResult_ = builderForValue.build();
onChanged();
} else {
stepExecutionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public Builder mergeStepExecutionResult(gauge.messages.Spec.ProtoStepExecutionResult value) {
if (stepExecutionResultBuilder_ == null) {
if (stepExecutionResult_ != null) {
stepExecutionResult_ =
gauge.messages.Spec.ProtoStepExecutionResult.newBuilder(stepExecutionResult_).mergeFrom(value).buildPartial();
} else {
stepExecutionResult_ = value;
}
onChanged();
} else {
stepExecutionResultBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public Builder clearStepExecutionResult() {
if (stepExecutionResultBuilder_ == null) {
stepExecutionResult_ = null;
onChanged();
} else {
stepExecutionResult_ = null;
stepExecutionResultBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResult.Builder getStepExecutionResultBuilder() {
onChanged();
return getStepExecutionResultFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder() {
if (stepExecutionResultBuilder_ != null) {
return stepExecutionResultBuilder_.getMessageOrBuilder();
} else {
return stepExecutionResult_ == null ?
gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
}
}
/**
* <pre>
*/ Holds the result from the execution.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStepExecutionResult, gauge.messages.Spec.ProtoStepExecutionResult.Builder, gauge.messages.Spec.ProtoStepExecutionResultOrBuilder>
getStepExecutionResultFieldBuilder() {
if (stepExecutionResultBuilder_ == null) {
stepExecutionResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStepExecutionResult, gauge.messages.Spec.ProtoStepExecutionResult.Builder, gauge.messages.Spec.ProtoStepExecutionResultOrBuilder>(
getStepExecutionResult(),
getParentForChildren(),
isClean());
stepExecutionResult_ = null;
}
return stepExecutionResultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoStep)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoStep)
private static final gauge.messages.Spec.ProtoStep DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoStep();
}
public static gauge.messages.Spec.ProtoStep getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoStep>
PARSER = new com.google.protobuf.AbstractParser<ProtoStep>() {
public ProtoStep parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoStep(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoStep> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoStep> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoStep getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoConceptOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoConcept)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
boolean hasConceptStep();
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
gauge.messages.Spec.ProtoStep getConceptStep();
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
gauge.messages.Spec.ProtoStepOrBuilder getConceptStepOrBuilder();
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
java.util.List<gauge.messages.Spec.ProtoItem>
getStepsList();
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
gauge.messages.Spec.ProtoItem getSteps(int index);
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
int getStepsCount();
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getStepsOrBuilderList();
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
gauge.messages.Spec.ProtoItemOrBuilder getStepsOrBuilder(
int index);
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
boolean hasConceptExecutionResult();
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
gauge.messages.Spec.ProtoStepExecutionResult getConceptExecutionResult();
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder();
}
/**
* <pre>
*/ Concept is a type of step, that can have multiple Steps.
* / But from a caller's perspective, it is still used as any other Step
* / A proto object representing a Concept
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoConcept}
*/
public static final class ProtoConcept extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoConcept)
ProtoConceptOrBuilder {
// Use ProtoConcept.newBuilder() to construct.
private ProtoConcept(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoConcept() {
steps_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoConcept(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
gauge.messages.Spec.ProtoStep.Builder subBuilder = null;
if (conceptStep_ != null) {
subBuilder = conceptStep_.toBuilder();
}
conceptStep_ = input.readMessage(gauge.messages.Spec.ProtoStep.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conceptStep_);
conceptStep_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
steps_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>();
mutable_bitField0_ |= 0x00000002;
}
steps_.add(
input.readMessage(gauge.messages.Spec.ProtoItem.parser(), extensionRegistry));
break;
}
case 26: {
gauge.messages.Spec.ProtoStepExecutionResult.Builder subBuilder = null;
if (conceptExecutionResult_ != null) {
subBuilder = conceptExecutionResult_.toBuilder();
}
conceptExecutionResult_ = input.readMessage(gauge.messages.Spec.ProtoStepExecutionResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conceptExecutionResult_);
conceptExecutionResult_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
steps_ = java.util.Collections.unmodifiableList(steps_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoConcept.class, gauge.messages.Spec.ProtoConcept.Builder.class);
}
private int bitField0_;
public static final int CONCEPTSTEP_FIELD_NUMBER = 1;
private gauge.messages.Spec.ProtoStep conceptStep_;
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public boolean hasConceptStep() {
return conceptStep_ != null;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public gauge.messages.Spec.ProtoStep getConceptStep() {
return conceptStep_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : conceptStep_;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public gauge.messages.Spec.ProtoStepOrBuilder getConceptStepOrBuilder() {
return getConceptStep();
}
public static final int STEPS_FIELD_NUMBER = 2;
private java.util.List<gauge.messages.Spec.ProtoItem> steps_;
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getStepsList() {
return steps_;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getStepsOrBuilderList() {
return steps_;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public int getStepsCount() {
return steps_.size();
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItem getSteps(int index) {
return steps_.get(index);
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getStepsOrBuilder(
int index) {
return steps_.get(index);
}
public static final int CONCEPTEXECUTIONRESULT_FIELD_NUMBER = 3;
private gauge.messages.Spec.ProtoStepExecutionResult conceptExecutionResult_;
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public boolean hasConceptExecutionResult() {
return conceptExecutionResult_ != null;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResult getConceptExecutionResult() {
return conceptExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder() {
return getConceptExecutionResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (conceptStep_ != null) {
output.writeMessage(1, getConceptStep());
}
for (int i = 0; i < steps_.size(); i++) {
output.writeMessage(2, steps_.get(i));
}
if (conceptExecutionResult_ != null) {
output.writeMessage(3, getConceptExecutionResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (conceptStep_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConceptStep());
}
for (int i = 0; i < steps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, steps_.get(i));
}
if (conceptExecutionResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConceptExecutionResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoConcept)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoConcept other = (gauge.messages.Spec.ProtoConcept) obj;
boolean result = true;
result = result && (hasConceptStep() == other.hasConceptStep());
if (hasConceptStep()) {
result = result && getConceptStep()
.equals(other.getConceptStep());
}
result = result && getStepsList()
.equals(other.getStepsList());
result = result && (hasConceptExecutionResult() == other.hasConceptExecutionResult());
if (hasConceptExecutionResult()) {
result = result && getConceptExecutionResult()
.equals(other.getConceptExecutionResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasConceptStep()) {
hash = (37 * hash) + CONCEPTSTEP_FIELD_NUMBER;
hash = (53 * hash) + getConceptStep().hashCode();
}
if (getStepsCount() > 0) {
hash = (37 * hash) + STEPS_FIELD_NUMBER;
hash = (53 * hash) + getStepsList().hashCode();
}
if (hasConceptExecutionResult()) {
hash = (37 * hash) + CONCEPTEXECUTIONRESULT_FIELD_NUMBER;
hash = (53 * hash) + getConceptExecutionResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoConcept parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoConcept parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoConcept prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ Concept is a type of step, that can have multiple Steps.
* / But from a caller's perspective, it is still used as any other Step
* / A proto object representing a Concept
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoConcept}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoConcept)
gauge.messages.Spec.ProtoConceptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoConcept.class, gauge.messages.Spec.ProtoConcept.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoConcept.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStepsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (conceptStepBuilder_ == null) {
conceptStep_ = null;
} else {
conceptStep_ = null;
conceptStepBuilder_ = null;
}
if (stepsBuilder_ == null) {
steps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
stepsBuilder_.clear();
}
if (conceptExecutionResultBuilder_ == null) {
conceptExecutionResult_ = null;
} else {
conceptExecutionResult_ = null;
conceptExecutionResultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_descriptor;
}
public gauge.messages.Spec.ProtoConcept getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoConcept.getDefaultInstance();
}
public gauge.messages.Spec.ProtoConcept build() {
gauge.messages.Spec.ProtoConcept result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoConcept buildPartial() {
gauge.messages.Spec.ProtoConcept result = new gauge.messages.Spec.ProtoConcept(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (conceptStepBuilder_ == null) {
result.conceptStep_ = conceptStep_;
} else {
result.conceptStep_ = conceptStepBuilder_.build();
}
if (stepsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
steps_ = java.util.Collections.unmodifiableList(steps_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.steps_ = steps_;
} else {
result.steps_ = stepsBuilder_.build();
}
if (conceptExecutionResultBuilder_ == null) {
result.conceptExecutionResult_ = conceptExecutionResult_;
} else {
result.conceptExecutionResult_ = conceptExecutionResultBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoConcept) {
return mergeFrom((gauge.messages.Spec.ProtoConcept)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoConcept other) {
if (other == gauge.messages.Spec.ProtoConcept.getDefaultInstance()) return this;
if (other.hasConceptStep()) {
mergeConceptStep(other.getConceptStep());
}
if (stepsBuilder_ == null) {
if (!other.steps_.isEmpty()) {
if (steps_.isEmpty()) {
steps_ = other.steps_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStepsIsMutable();
steps_.addAll(other.steps_);
}
onChanged();
}
} else {
if (!other.steps_.isEmpty()) {
if (stepsBuilder_.isEmpty()) {
stepsBuilder_.dispose();
stepsBuilder_ = null;
steps_ = other.steps_;
bitField0_ = (bitField0_ & ~0x00000002);
stepsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStepsFieldBuilder() : null;
} else {
stepsBuilder_.addAllMessages(other.steps_);
}
}
}
if (other.hasConceptExecutionResult()) {
mergeConceptExecutionResult(other.getConceptExecutionResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoConcept parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoConcept) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private gauge.messages.Spec.ProtoStep conceptStep_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStep, gauge.messages.Spec.ProtoStep.Builder, gauge.messages.Spec.ProtoStepOrBuilder> conceptStepBuilder_;
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public boolean hasConceptStep() {
return conceptStepBuilder_ != null || conceptStep_ != null;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public gauge.messages.Spec.ProtoStep getConceptStep() {
if (conceptStepBuilder_ == null) {
return conceptStep_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : conceptStep_;
} else {
return conceptStepBuilder_.getMessage();
}
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public Builder setConceptStep(gauge.messages.Spec.ProtoStep value) {
if (conceptStepBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conceptStep_ = value;
onChanged();
} else {
conceptStepBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public Builder setConceptStep(
gauge.messages.Spec.ProtoStep.Builder builderForValue) {
if (conceptStepBuilder_ == null) {
conceptStep_ = builderForValue.build();
onChanged();
} else {
conceptStepBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public Builder mergeConceptStep(gauge.messages.Spec.ProtoStep value) {
if (conceptStepBuilder_ == null) {
if (conceptStep_ != null) {
conceptStep_ =
gauge.messages.Spec.ProtoStep.newBuilder(conceptStep_).mergeFrom(value).buildPartial();
} else {
conceptStep_ = value;
}
onChanged();
} else {
conceptStepBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public Builder clearConceptStep() {
if (conceptStepBuilder_ == null) {
conceptStep_ = null;
onChanged();
} else {
conceptStep_ = null;
conceptStepBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public gauge.messages.Spec.ProtoStep.Builder getConceptStepBuilder() {
onChanged();
return getConceptStepFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
public gauge.messages.Spec.ProtoStepOrBuilder getConceptStepOrBuilder() {
if (conceptStepBuilder_ != null) {
return conceptStepBuilder_.getMessageOrBuilder();
} else {
return conceptStep_ == null ?
gauge.messages.Spec.ProtoStep.getDefaultInstance() : conceptStep_;
}
}
/**
* <pre>
*/ Represents the Step value of a Concept.
* </pre>
*
* <code>optional .gauge.messages.ProtoStep conceptStep = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStep, gauge.messages.Spec.ProtoStep.Builder, gauge.messages.Spec.ProtoStepOrBuilder>
getConceptStepFieldBuilder() {
if (conceptStepBuilder_ == null) {
conceptStepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStep, gauge.messages.Spec.ProtoStep.Builder, gauge.messages.Spec.ProtoStepOrBuilder>(
getConceptStep(),
getParentForChildren(),
isClean());
conceptStep_ = null;
}
return conceptStepBuilder_;
}
private java.util.List<gauge.messages.Spec.ProtoItem> steps_ =
java.util.Collections.emptyList();
private void ensureStepsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
steps_ = new java.util.ArrayList<gauge.messages.Spec.ProtoItem>(steps_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> stepsBuilder_;
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem> getStepsList() {
if (stepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(steps_);
} else {
return stepsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public int getStepsCount() {
if (stepsBuilder_ == null) {
return steps_.size();
} else {
return stepsBuilder_.getCount();
}
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItem getSteps(int index) {
if (stepsBuilder_ == null) {
return steps_.get(index);
} else {
return stepsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder setSteps(
int index, gauge.messages.Spec.ProtoItem value) {
if (stepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStepsIsMutable();
steps_.set(index, value);
onChanged();
} else {
stepsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder setSteps(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.set(index, builderForValue.build());
onChanged();
} else {
stepsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder addSteps(gauge.messages.Spec.ProtoItem value) {
if (stepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStepsIsMutable();
steps_.add(value);
onChanged();
} else {
stepsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder addSteps(
int index, gauge.messages.Spec.ProtoItem value) {
if (stepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStepsIsMutable();
steps_.add(index, value);
onChanged();
} else {
stepsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder addSteps(
gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.add(builderForValue.build());
onChanged();
} else {
stepsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder addSteps(
int index, gauge.messages.Spec.ProtoItem.Builder builderForValue) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.add(index, builderForValue.build());
onChanged();
} else {
stepsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder addAllSteps(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoItem> values) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, steps_);
onChanged();
} else {
stepsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder clearSteps() {
if (stepsBuilder_ == null) {
steps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
stepsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public Builder removeSteps(int index) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.remove(index);
onChanged();
} else {
stepsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder getStepsBuilder(
int index) {
return getStepsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItemOrBuilder getStepsOrBuilder(
int index) {
if (stepsBuilder_ == null) {
return steps_.get(index); } else {
return stepsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoItemOrBuilder>
getStepsOrBuilderList() {
if (stepsBuilder_ != null) {
return stepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(steps_);
}
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addStepsBuilder() {
return getStepsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public gauge.messages.Spec.ProtoItem.Builder addStepsBuilder(
int index) {
return getStepsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
* <pre>
*/ Collection of Steps in the given concepts.
* </pre>
*
* <code>repeated .gauge.messages.ProtoItem steps = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoItem.Builder>
getStepsBuilderList() {
return getStepsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>
getStepsFieldBuilder() {
if (stepsBuilder_ == null) {
stepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder>(
steps_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
steps_ = null;
}
return stepsBuilder_;
}
private gauge.messages.Spec.ProtoStepExecutionResult conceptExecutionResult_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStepExecutionResult, gauge.messages.Spec.ProtoStepExecutionResult.Builder, gauge.messages.Spec.ProtoStepExecutionResultOrBuilder> conceptExecutionResultBuilder_;
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public boolean hasConceptExecutionResult() {
return conceptExecutionResultBuilder_ != null || conceptExecutionResult_ != null;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResult getConceptExecutionResult() {
if (conceptExecutionResultBuilder_ == null) {
return conceptExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
} else {
return conceptExecutionResultBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public Builder setConceptExecutionResult(gauge.messages.Spec.ProtoStepExecutionResult value) {
if (conceptExecutionResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conceptExecutionResult_ = value;
onChanged();
} else {
conceptExecutionResultBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public Builder setConceptExecutionResult(
gauge.messages.Spec.ProtoStepExecutionResult.Builder builderForValue) {
if (conceptExecutionResultBuilder_ == null) {
conceptExecutionResult_ = builderForValue.build();
onChanged();
} else {
conceptExecutionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public Builder mergeConceptExecutionResult(gauge.messages.Spec.ProtoStepExecutionResult value) {
if (conceptExecutionResultBuilder_ == null) {
if (conceptExecutionResult_ != null) {
conceptExecutionResult_ =
gauge.messages.Spec.ProtoStepExecutionResult.newBuilder(conceptExecutionResult_).mergeFrom(value).buildPartial();
} else {
conceptExecutionResult_ = value;
}
onChanged();
} else {
conceptExecutionResultBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public Builder clearConceptExecutionResult() {
if (conceptExecutionResultBuilder_ == null) {
conceptExecutionResult_ = null;
onChanged();
} else {
conceptExecutionResult_ = null;
conceptExecutionResultBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResult.Builder getConceptExecutionResultBuilder() {
onChanged();
return getConceptExecutionResultFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder() {
if (conceptExecutionResultBuilder_ != null) {
return conceptExecutionResultBuilder_.getMessageOrBuilder();
} else {
return conceptExecutionResult_ == null ?
gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
}
}
/**
* <pre>
*/ Holds the execution result.
* </pre>
*
* <code>optional .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStepExecutionResult, gauge.messages.Spec.ProtoStepExecutionResult.Builder, gauge.messages.Spec.ProtoStepExecutionResultOrBuilder>
getConceptExecutionResultFieldBuilder() {
if (conceptExecutionResultBuilder_ == null) {
conceptExecutionResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoStepExecutionResult, gauge.messages.Spec.ProtoStepExecutionResult.Builder, gauge.messages.Spec.ProtoStepExecutionResultOrBuilder>(
getConceptExecutionResult(),
getParentForChildren(),
isClean());
conceptExecutionResult_ = null;
}
return conceptExecutionResultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoConcept)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoConcept)
private static final gauge.messages.Spec.ProtoConcept DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoConcept();
}
public static gauge.messages.Spec.ProtoConcept getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoConcept>
PARSER = new com.google.protobuf.AbstractParser<ProtoConcept>() {
public ProtoConcept parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoConcept(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoConcept> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoConcept> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoConcept getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoTagsOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoTags)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
java.util.List<java.lang.String>
getTagsList();
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
int getTagsCount();
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
java.lang.String getTags(int index);
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
}
/**
* <pre>
*/ A proto object representing Tags
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTags}
*/
public static final class ProtoTags extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoTags)
ProtoTagsOrBuilder {
// Use ProtoTags.newBuilder() to construct.
private ProtoTags(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoTags(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
tags_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tags_ = tags_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTags.class, gauge.messages.Spec.ProtoTags.Builder.class);
}
public static final int TAGS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList tags_;
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoTags)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoTags other = (gauge.messages.Spec.ProtoTags) obj;
boolean result = true;
result = result && getTagsList()
.equals(other.getTagsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoTags parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTags parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTags parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTags parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTags parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoTags prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Tags
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTags}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoTags)
gauge.messages.Spec.ProtoTagsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTags.class, gauge.messages.Spec.ProtoTags.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoTags.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_descriptor;
}
public gauge.messages.Spec.ProtoTags getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTags.getDefaultInstance();
}
public gauge.messages.Spec.ProtoTags build() {
gauge.messages.Spec.ProtoTags result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoTags buildPartial() {
gauge.messages.Spec.ProtoTags result = new gauge.messages.Spec.ProtoTags(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tags_ = tags_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoTags) {
return mergeFrom((gauge.messages.Spec.ProtoTags)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoTags other) {
if (other == gauge.messages.Spec.ProtoTags.getDefaultInstance()) return this;
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoTags parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoTags) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000001;
}
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public Builder addAllTags(
java.lang.Iterable<java.lang.String> values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of Tags
* </pre>
*
* <code>repeated string tags = 1;</code>
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoTags)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoTags)
private static final gauge.messages.Spec.ProtoTags DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoTags();
}
public static gauge.messages.Spec.ProtoTags getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoTags>
PARSER = new com.google.protobuf.AbstractParser<ProtoTags>() {
public ProtoTags parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoTags(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoTags> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoTags> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoTags getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FragmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.Fragment)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
int getFragmentTypeValue();
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
gauge.messages.Spec.Fragment.FragmentType getFragmentType();
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
java.lang.String getText();
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
com.google.protobuf.ByteString
getTextBytes();
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
boolean hasParameter();
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
gauge.messages.Spec.Parameter getParameter();
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
gauge.messages.Spec.ParameterOrBuilder getParameterOrBuilder();
}
/**
* <pre>
*/ A proto object representing Fragment.
* / Fragments, put together make up A Step
* </pre>
*
* Protobuf type {@code gauge.messages.Fragment}
*/
public static final class Fragment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.Fragment)
FragmentOrBuilder {
// Use Fragment.newBuilder() to construct.
private Fragment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Fragment() {
fragmentType_ = 0;
text_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Fragment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
fragmentType_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
text_ = s;
break;
}
case 26: {
gauge.messages.Spec.Parameter.Builder subBuilder = null;
if (parameter_ != null) {
subBuilder = parameter_.toBuilder();
}
parameter_ = input.readMessage(gauge.messages.Spec.Parameter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parameter_);
parameter_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.Fragment.class, gauge.messages.Spec.Fragment.Builder.class);
}
/**
* <pre>
*/ Enum representing the types of Fragment
* </pre>
*
* Protobuf enum {@code gauge.messages.Fragment.FragmentType}
*/
public enum FragmentType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
*/ Fragment is a Text part
* </pre>
*
* <code>Text = 0;</code>
*/
Text(0),
/**
* <pre>
*/ Fragment is a Parameter part
* </pre>
*
* <code>Parameter = 1;</code>
*/
Parameter(1),
UNRECOGNIZED(-1),
;
/**
* <pre>
*/ Fragment is a Text part
* </pre>
*
* <code>Text = 0;</code>
*/
public static final int Text_VALUE = 0;
/**
* <pre>
*/ Fragment is a Parameter part
* </pre>
*
* <code>Parameter = 1;</code>
*/
public static final int Parameter_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FragmentType valueOf(int value) {
return forNumber(value);
}
public static FragmentType forNumber(int value) {
switch (value) {
case 0: return Text;
case 1: return Parameter;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<FragmentType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FragmentType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<FragmentType>() {
public FragmentType findValueByNumber(int number) {
return FragmentType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return gauge.messages.Spec.Fragment.getDescriptor().getEnumTypes().get(0);
}
private static final FragmentType[] VALUES = values();
public static FragmentType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private FragmentType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:gauge.messages.Fragment.FragmentType)
}
public static final int FRAGMENTTYPE_FIELD_NUMBER = 1;
private int fragmentType_;
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public int getFragmentTypeValue() {
return fragmentType_;
}
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public gauge.messages.Spec.Fragment.FragmentType getFragmentType() {
gauge.messages.Spec.Fragment.FragmentType result = gauge.messages.Spec.Fragment.FragmentType.valueOf(fragmentType_);
return result == null ? gauge.messages.Spec.Fragment.FragmentType.UNRECOGNIZED : result;
}
public static final int TEXT_FIELD_NUMBER = 2;
private volatile java.lang.Object text_;
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
}
}
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETER_FIELD_NUMBER = 3;
private gauge.messages.Spec.Parameter parameter_;
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public boolean hasParameter() {
return parameter_ != null;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public gauge.messages.Spec.Parameter getParameter() {
return parameter_ == null ? gauge.messages.Spec.Parameter.getDefaultInstance() : parameter_;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public gauge.messages.Spec.ParameterOrBuilder getParameterOrBuilder() {
return getParameter();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (fragmentType_ != gauge.messages.Spec.Fragment.FragmentType.Text.getNumber()) {
output.writeEnum(1, fragmentType_);
}
if (!getTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_);
}
if (parameter_ != null) {
output.writeMessage(3, getParameter());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fragmentType_ != gauge.messages.Spec.Fragment.FragmentType.Text.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, fragmentType_);
}
if (!getTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_);
}
if (parameter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getParameter());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.Fragment)) {
return super.equals(obj);
}
gauge.messages.Spec.Fragment other = (gauge.messages.Spec.Fragment) obj;
boolean result = true;
result = result && fragmentType_ == other.fragmentType_;
result = result && getText()
.equals(other.getText());
result = result && (hasParameter() == other.hasParameter());
if (hasParameter()) {
result = result && getParameter()
.equals(other.getParameter());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + FRAGMENTTYPE_FIELD_NUMBER;
hash = (53 * hash) + fragmentType_;
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
if (hasParameter()) {
hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
hash = (53 * hash) + getParameter().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.Fragment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Fragment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.Fragment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Fragment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.Fragment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Fragment parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Fragment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Fragment parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Fragment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Fragment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.Fragment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Fragment.
* / Fragments, put together make up A Step
* </pre>
*
* Protobuf type {@code gauge.messages.Fragment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.Fragment)
gauge.messages.Spec.FragmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.Fragment.class, gauge.messages.Spec.Fragment.Builder.class);
}
// Construct using gauge.messages.Spec.Fragment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
fragmentType_ = 0;
text_ = "";
if (parameterBuilder_ == null) {
parameter_ = null;
} else {
parameter_ = null;
parameterBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_descriptor;
}
public gauge.messages.Spec.Fragment getDefaultInstanceForType() {
return gauge.messages.Spec.Fragment.getDefaultInstance();
}
public gauge.messages.Spec.Fragment build() {
gauge.messages.Spec.Fragment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.Fragment buildPartial() {
gauge.messages.Spec.Fragment result = new gauge.messages.Spec.Fragment(this);
result.fragmentType_ = fragmentType_;
result.text_ = text_;
if (parameterBuilder_ == null) {
result.parameter_ = parameter_;
} else {
result.parameter_ = parameterBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.Fragment) {
return mergeFrom((gauge.messages.Spec.Fragment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.Fragment other) {
if (other == gauge.messages.Spec.Fragment.getDefaultInstance()) return this;
if (other.fragmentType_ != 0) {
setFragmentTypeValue(other.getFragmentTypeValue());
}
if (!other.getText().isEmpty()) {
text_ = other.text_;
onChanged();
}
if (other.hasParameter()) {
mergeParameter(other.getParameter());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.Fragment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.Fragment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fragmentType_ = 0;
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public int getFragmentTypeValue() {
return fragmentType_;
}
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public Builder setFragmentTypeValue(int value) {
fragmentType_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public gauge.messages.Spec.Fragment.FragmentType getFragmentType() {
gauge.messages.Spec.Fragment.FragmentType result = gauge.messages.Spec.Fragment.FragmentType.valueOf(fragmentType_);
return result == null ? gauge.messages.Spec.Fragment.FragmentType.UNRECOGNIZED : result;
}
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public Builder setFragmentType(gauge.messages.Spec.Fragment.FragmentType value) {
if (value == null) {
throw new NullPointerException();
}
fragmentType_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*/ Type of Fragment, valid values are Text, Parameter
* </pre>
*
* <code>optional .gauge.messages.Fragment.FragmentType fragmentType = 1;</code>
*/
public Builder clearFragmentType() {
fragmentType_ = 0;
onChanged();
return this;
}
private java.lang.Object text_ = "";
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* <pre>
*/ Text part of the Fragment, valid only if FragmentType=Text
* </pre>
*
* <code>optional string text = 2;</code>
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
text_ = value;
onChanged();
return this;
}
private gauge.messages.Spec.Parameter parameter_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.Parameter, gauge.messages.Spec.Parameter.Builder, gauge.messages.Spec.ParameterOrBuilder> parameterBuilder_;
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public boolean hasParameter() {
return parameterBuilder_ != null || parameter_ != null;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public gauge.messages.Spec.Parameter getParameter() {
if (parameterBuilder_ == null) {
return parameter_ == null ? gauge.messages.Spec.Parameter.getDefaultInstance() : parameter_;
} else {
return parameterBuilder_.getMessage();
}
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public Builder setParameter(gauge.messages.Spec.Parameter value) {
if (parameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameter_ = value;
onChanged();
} else {
parameterBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public Builder setParameter(
gauge.messages.Spec.Parameter.Builder builderForValue) {
if (parameterBuilder_ == null) {
parameter_ = builderForValue.build();
onChanged();
} else {
parameterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public Builder mergeParameter(gauge.messages.Spec.Parameter value) {
if (parameterBuilder_ == null) {
if (parameter_ != null) {
parameter_ =
gauge.messages.Spec.Parameter.newBuilder(parameter_).mergeFrom(value).buildPartial();
} else {
parameter_ = value;
}
onChanged();
} else {
parameterBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public Builder clearParameter() {
if (parameterBuilder_ == null) {
parameter_ = null;
onChanged();
} else {
parameter_ = null;
parameterBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public gauge.messages.Spec.Parameter.Builder getParameterBuilder() {
onChanged();
return getParameterFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
public gauge.messages.Spec.ParameterOrBuilder getParameterOrBuilder() {
if (parameterBuilder_ != null) {
return parameterBuilder_.getMessageOrBuilder();
} else {
return parameter_ == null ?
gauge.messages.Spec.Parameter.getDefaultInstance() : parameter_;
}
}
/**
* <pre>
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
* </pre>
*
* <code>optional .gauge.messages.Parameter parameter = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.Parameter, gauge.messages.Spec.Parameter.Builder, gauge.messages.Spec.ParameterOrBuilder>
getParameterFieldBuilder() {
if (parameterBuilder_ == null) {
parameterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.Parameter, gauge.messages.Spec.Parameter.Builder, gauge.messages.Spec.ParameterOrBuilder>(
getParameter(),
getParentForChildren(),
isClean());
parameter_ = null;
}
return parameterBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.Fragment)
}
// @@protoc_insertion_point(class_scope:gauge.messages.Fragment)
private static final gauge.messages.Spec.Fragment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.Fragment();
}
public static gauge.messages.Spec.Fragment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Fragment>
PARSER = new com.google.protobuf.AbstractParser<Fragment>() {
public Fragment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fragment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Fragment> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Fragment> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.Fragment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParameterOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.Parameter)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
int getParameterTypeValue();
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
gauge.messages.Spec.Parameter.ParameterType getParameterType();
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
java.lang.String getValue();
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
java.lang.String getName();
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
boolean hasTable();
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
gauge.messages.Spec.ProtoTable getTable();
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder();
}
/**
* <pre>
*/ A proto object representing Fragment.
* </pre>
*
* Protobuf type {@code gauge.messages.Parameter}
*/
public static final class Parameter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.Parameter)
ParameterOrBuilder {
// Use Parameter.newBuilder() to construct.
private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Parameter() {
parameterType_ = 0;
value_ = "";
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Parameter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
parameterType_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
gauge.messages.Spec.ProtoTable.Builder subBuilder = null;
if (table_ != null) {
subBuilder = table_.toBuilder();
}
table_ = input.readMessage(gauge.messages.Spec.ProtoTable.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(table_);
table_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.Parameter.class, gauge.messages.Spec.Parameter.Builder.class);
}
/**
* <pre>
*/ Enum representing types of Parameter.
* </pre>
*
* Protobuf enum {@code gauge.messages.Parameter.ParameterType}
*/
public enum ParameterType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
* Static parameter. The value of the parameter is defined at the Step.
* </pre>
*
* <code>Static = 0;</code>
*/
Static(0),
/**
* <pre>
* Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call.
* </pre>
*
* <code>Dynamic = 1;</code>
*/
Dynamic(1),
/**
* <pre>
* Special paramter, taking a string value. Special paramters are read from a file.
* </pre>
*
* <code>Special_String = 2;</code>
*/
Special_String(2),
/**
* <pre>
* Special paramter, taking a Table value. This parameter is read from a csv file.
* </pre>
*
* <code>Special_Table = 3;</code>
*/
Special_Table(3),
/**
* <pre>
* A table parameter, used for data driven execution.
* </pre>
*
* <code>Table = 4;</code>
*/
Table(4),
UNRECOGNIZED(-1),
;
/**
* <pre>
* Static parameter. The value of the parameter is defined at the Step.
* </pre>
*
* <code>Static = 0;</code>
*/
public static final int Static_VALUE = 0;
/**
* <pre>
* Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call.
* </pre>
*
* <code>Dynamic = 1;</code>
*/
public static final int Dynamic_VALUE = 1;
/**
* <pre>
* Special paramter, taking a string value. Special paramters are read from a file.
* </pre>
*
* <code>Special_String = 2;</code>
*/
public static final int Special_String_VALUE = 2;
/**
* <pre>
* Special paramter, taking a Table value. This parameter is read from a csv file.
* </pre>
*
* <code>Special_Table = 3;</code>
*/
public static final int Special_Table_VALUE = 3;
/**
* <pre>
* A table parameter, used for data driven execution.
* </pre>
*
* <code>Table = 4;</code>
*/
public static final int Table_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ParameterType valueOf(int value) {
return forNumber(value);
}
public static ParameterType forNumber(int value) {
switch (value) {
case 0: return Static;
case 1: return Dynamic;
case 2: return Special_String;
case 3: return Special_Table;
case 4: return Table;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ParameterType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ParameterType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ParameterType>() {
public ParameterType findValueByNumber(int number) {
return ParameterType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return gauge.messages.Spec.Parameter.getDescriptor().getEnumTypes().get(0);
}
private static final ParameterType[] VALUES = values();
public static ParameterType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ParameterType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:gauge.messages.Parameter.ParameterType)
}
public static final int PARAMETERTYPE_FIELD_NUMBER = 1;
private int parameterType_;
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public int getParameterTypeValue() {
return parameterType_;
}
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public gauge.messages.Spec.Parameter.ParameterType getParameterType() {
gauge.messages.Spec.Parameter.ParameterType result = gauge.messages.Spec.Parameter.ParameterType.valueOf(parameterType_);
return result == null ? gauge.messages.Spec.Parameter.ParameterType.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLE_FIELD_NUMBER = 4;
private gauge.messages.Spec.ProtoTable table_;
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public boolean hasTable() {
return table_ != null;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public gauge.messages.Spec.ProtoTable getTable() {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
return getTable();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (parameterType_ != gauge.messages.Spec.Parameter.ParameterType.Static.getNumber()) {
output.writeEnum(1, parameterType_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (table_ != null) {
output.writeMessage(4, getTable());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (parameterType_ != gauge.messages.Spec.Parameter.ParameterType.Static.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, parameterType_);
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (table_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTable());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.Parameter)) {
return super.equals(obj);
}
gauge.messages.Spec.Parameter other = (gauge.messages.Spec.Parameter) obj;
boolean result = true;
result = result && parameterType_ == other.parameterType_;
result = result && getValue()
.equals(other.getValue());
result = result && getName()
.equals(other.getName());
result = result && (hasTable() == other.hasTable());
if (hasTable()) {
result = result && getTable()
.equals(other.getTable());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + PARAMETERTYPE_FIELD_NUMBER;
hash = (53 * hash) + parameterType_;
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasTable()) {
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.Parameter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Parameter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.Parameter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Parameter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.Parameter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Parameter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Parameter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Parameter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Parameter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.Parameter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.Parameter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Fragment.
* </pre>
*
* Protobuf type {@code gauge.messages.Parameter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.Parameter)
gauge.messages.Spec.ParameterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.Parameter.class, gauge.messages.Spec.Parameter.Builder.class);
}
// Construct using gauge.messages.Spec.Parameter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
parameterType_ = 0;
value_ = "";
name_ = "";
if (tableBuilder_ == null) {
table_ = null;
} else {
table_ = null;
tableBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_descriptor;
}
public gauge.messages.Spec.Parameter getDefaultInstanceForType() {
return gauge.messages.Spec.Parameter.getDefaultInstance();
}
public gauge.messages.Spec.Parameter build() {
gauge.messages.Spec.Parameter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.Parameter buildPartial() {
gauge.messages.Spec.Parameter result = new gauge.messages.Spec.Parameter(this);
result.parameterType_ = parameterType_;
result.value_ = value_;
result.name_ = name_;
if (tableBuilder_ == null) {
result.table_ = table_;
} else {
result.table_ = tableBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.Parameter) {
return mergeFrom((gauge.messages.Spec.Parameter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.Parameter other) {
if (other == gauge.messages.Spec.Parameter.getDefaultInstance()) return this;
if (other.parameterType_ != 0) {
setParameterTypeValue(other.getParameterTypeValue());
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasTable()) {
mergeTable(other.getTable());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.Parameter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.Parameter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int parameterType_ = 0;
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public int getParameterTypeValue() {
return parameterType_;
}
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public Builder setParameterTypeValue(int value) {
parameterType_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public gauge.messages.Spec.Parameter.ParameterType getParameterType() {
gauge.messages.Spec.Parameter.ParameterType result = gauge.messages.Spec.Parameter.ParameterType.valueOf(parameterType_);
return result == null ? gauge.messages.Spec.Parameter.ParameterType.UNRECOGNIZED : result;
}
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public Builder setParameterType(gauge.messages.Spec.Parameter.ParameterType value) {
if (value == null) {
throw new NullPointerException();
}
parameterType_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
* </pre>
*
* <code>optional .gauge.messages.Parameter.ParameterType parameterType = 1;</code>
*/
public Builder clearParameterType() {
parameterType_ = 0;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* <pre>
*/ Holds the value of the parameter
* </pre>
*
* <code>optional string value = 2;</code>
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <pre>
*/ Holds the name of the parameter, used as Key to lookup the value.
* </pre>
*
* <code>optional string name = 3;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private gauge.messages.Spec.ProtoTable table_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder> tableBuilder_;
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public boolean hasTable() {
return tableBuilder_ != null || table_ != null;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public gauge.messages.Spec.ProtoTable getTable() {
if (tableBuilder_ == null) {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
} else {
return tableBuilder_.getMessage();
}
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public Builder setTable(gauge.messages.Spec.ProtoTable value) {
if (tableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
onChanged();
} else {
tableBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public Builder setTable(
gauge.messages.Spec.ProtoTable.Builder builderForValue) {
if (tableBuilder_ == null) {
table_ = builderForValue.build();
onChanged();
} else {
tableBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public Builder mergeTable(gauge.messages.Spec.ProtoTable value) {
if (tableBuilder_ == null) {
if (table_ != null) {
table_ =
gauge.messages.Spec.ProtoTable.newBuilder(table_).mergeFrom(value).buildPartial();
} else {
table_ = value;
}
onChanged();
} else {
tableBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
table_ = null;
onChanged();
} else {
table_ = null;
tableBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public gauge.messages.Spec.ProtoTable.Builder getTableBuilder() {
onChanged();
return getTableFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
return tableBuilder_.getMessageOrBuilder();
} else {
return table_ == null ?
gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
}
/**
* <pre>
*/ Holds the table value, if parameterType=Table or Special_Table
* </pre>
*
* <code>optional .gauge.messages.ProtoTable table = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>
getTableFieldBuilder() {
if (tableBuilder_ == null) {
tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>(
getTable(),
getParentForChildren(),
isClean());
table_ = null;
}
return tableBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.Parameter)
}
// @@protoc_insertion_point(class_scope:gauge.messages.Parameter)
private static final gauge.messages.Spec.Parameter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.Parameter();
}
public static gauge.messages.Spec.Parameter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Parameter>
PARSER = new com.google.protobuf.AbstractParser<Parameter>() {
public Parameter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Parameter(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Parameter> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Parameter> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.Parameter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoCommentOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoComment)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
java.lang.String getText();
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
com.google.protobuf.ByteString
getTextBytes();
}
/**
* <pre>
*/ A proto object representing Comment.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoComment}
*/
public static final class ProtoComment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoComment)
ProtoCommentOrBuilder {
// Use ProtoComment.newBuilder() to construct.
private ProtoComment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoComment() {
text_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoComment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
text_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoComment.class, gauge.messages.Spec.ProtoComment.Builder.class);
}
public static final int TEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object text_;
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
}
}
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoComment)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoComment other = (gauge.messages.Spec.ProtoComment) obj;
boolean result = true;
result = result && getText()
.equals(other.getText());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoComment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoComment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoComment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoComment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoComment parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoComment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Comment.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoComment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoComment)
gauge.messages.Spec.ProtoCommentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoComment.class, gauge.messages.Spec.ProtoComment.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoComment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
text_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_descriptor;
}
public gauge.messages.Spec.ProtoComment getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoComment.getDefaultInstance();
}
public gauge.messages.Spec.ProtoComment build() {
gauge.messages.Spec.ProtoComment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoComment buildPartial() {
gauge.messages.Spec.ProtoComment result = new gauge.messages.Spec.ProtoComment(this);
result.text_ = text_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoComment) {
return mergeFrom((gauge.messages.Spec.ProtoComment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoComment other) {
if (other == gauge.messages.Spec.ProtoComment.getDefaultInstance()) return this;
if (!other.getText().isEmpty()) {
text_ = other.text_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoComment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoComment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object text_ = "";
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* <pre>
*/ Text representing the Comment.
* </pre>
*
* <code>optional string text = 1;</code>
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
text_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoComment)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoComment)
private static final gauge.messages.Spec.ProtoComment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoComment();
}
public static gauge.messages.Spec.ProtoComment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoComment>
PARSER = new com.google.protobuf.AbstractParser<ProtoComment>() {
public ProtoComment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoComment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoComment> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoComment> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoComment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoTableOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoTable)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
boolean hasHeaders();
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
gauge.messages.Spec.ProtoTableRow getHeaders();
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
gauge.messages.Spec.ProtoTableRowOrBuilder getHeadersOrBuilder();
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
java.util.List<gauge.messages.Spec.ProtoTableRow>
getRowsList();
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
gauge.messages.Spec.ProtoTableRow getRows(int index);
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
int getRowsCount();
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoTableRowOrBuilder>
getRowsOrBuilderList();
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
gauge.messages.Spec.ProtoTableRowOrBuilder getRowsOrBuilder(
int index);
}
/**
* <pre>
*/ A proto object representing Table.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTable}
*/
public static final class ProtoTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoTable)
ProtoTableOrBuilder {
// Use ProtoTable.newBuilder() to construct.
private ProtoTable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoTable() {
rows_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoTable(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
gauge.messages.Spec.ProtoTableRow.Builder subBuilder = null;
if (headers_ != null) {
subBuilder = headers_.toBuilder();
}
headers_ = input.readMessage(gauge.messages.Spec.ProtoTableRow.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(headers_);
headers_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList<gauge.messages.Spec.ProtoTableRow>();
mutable_bitField0_ |= 0x00000002;
}
rows_.add(
input.readMessage(gauge.messages.Spec.ProtoTableRow.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTable.class, gauge.messages.Spec.ProtoTable.Builder.class);
}
private int bitField0_;
public static final int HEADERS_FIELD_NUMBER = 1;
private gauge.messages.Spec.ProtoTableRow headers_;
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public boolean hasHeaders() {
return headers_ != null;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public gauge.messages.Spec.ProtoTableRow getHeaders() {
return headers_ == null ? gauge.messages.Spec.ProtoTableRow.getDefaultInstance() : headers_;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getHeadersOrBuilder() {
return getHeaders();
}
public static final int ROWS_FIELD_NUMBER = 2;
private java.util.List<gauge.messages.Spec.ProtoTableRow> rows_;
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoTableRow> getRowsList() {
return rows_;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoTableRowOrBuilder>
getRowsOrBuilderList() {
return rows_;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public int getRowsCount() {
return rows_.size();
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRow getRows(int index) {
return rows_.get(index);
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (headers_ != null) {
output.writeMessage(1, getHeaders());
}
for (int i = 0; i < rows_.size(); i++) {
output.writeMessage(2, rows_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (headers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeaders());
}
for (int i = 0; i < rows_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, rows_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoTable)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoTable other = (gauge.messages.Spec.ProtoTable) obj;
boolean result = true;
result = result && (hasHeaders() == other.hasHeaders());
if (hasHeaders()) {
result = result && getHeaders()
.equals(other.getHeaders());
}
result = result && getRowsList()
.equals(other.getRowsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasHeaders()) {
hash = (37 * hash) + HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getHeaders().hashCode();
}
if (getRowsCount() > 0) {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRowsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoTable prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Table.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoTable)
gauge.messages.Spec.ProtoTableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTable.class, gauge.messages.Spec.ProtoTable.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoTable.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRowsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (headersBuilder_ == null) {
headers_ = null;
} else {
headers_ = null;
headersBuilder_ = null;
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
rowsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_descriptor;
}
public gauge.messages.Spec.ProtoTable getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTable.getDefaultInstance();
}
public gauge.messages.Spec.ProtoTable build() {
gauge.messages.Spec.ProtoTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoTable buildPartial() {
gauge.messages.Spec.ProtoTable result = new gauge.messages.Spec.ProtoTable(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (headersBuilder_ == null) {
result.headers_ = headers_;
} else {
result.headers_ = headersBuilder_.build();
}
if (rowsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoTable) {
return mergeFrom((gauge.messages.Spec.ProtoTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoTable other) {
if (other == gauge.messages.Spec.ProtoTable.getDefaultInstance()) return this;
if (other.hasHeaders()) {
mergeHeaders(other.getHeaders());
}
if (rowsBuilder_ == null) {
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
}
onChanged();
}
} else {
if (!other.rows_.isEmpty()) {
if (rowsBuilder_.isEmpty()) {
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
rowsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowsFieldBuilder() : null;
} else {
rowsBuilder_.addAllMessages(other.rows_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoTable parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoTable) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private gauge.messages.Spec.ProtoTableRow headers_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder> headersBuilder_;
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public boolean hasHeaders() {
return headersBuilder_ != null || headers_ != null;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public gauge.messages.Spec.ProtoTableRow getHeaders() {
if (headersBuilder_ == null) {
return headers_ == null ? gauge.messages.Spec.ProtoTableRow.getDefaultInstance() : headers_;
} else {
return headersBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public Builder setHeaders(gauge.messages.Spec.ProtoTableRow value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
headers_ = value;
onChanged();
} else {
headersBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public Builder setHeaders(
gauge.messages.Spec.ProtoTableRow.Builder builderForValue) {
if (headersBuilder_ == null) {
headers_ = builderForValue.build();
onChanged();
} else {
headersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public Builder mergeHeaders(gauge.messages.Spec.ProtoTableRow value) {
if (headersBuilder_ == null) {
if (headers_ != null) {
headers_ =
gauge.messages.Spec.ProtoTableRow.newBuilder(headers_).mergeFrom(value).buildPartial();
} else {
headers_ = value;
}
onChanged();
} else {
headersBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public Builder clearHeaders() {
if (headersBuilder_ == null) {
headers_ = null;
onChanged();
} else {
headers_ = null;
headersBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public gauge.messages.Spec.ProtoTableRow.Builder getHeadersBuilder() {
onChanged();
return getHeadersFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getHeadersOrBuilder() {
if (headersBuilder_ != null) {
return headersBuilder_.getMessageOrBuilder();
} else {
return headers_ == null ?
gauge.messages.Spec.ProtoTableRow.getDefaultInstance() : headers_;
}
}
/**
* <pre>
*/ Contains the Headers for the table
* </pre>
*
* <code>optional .gauge.messages.ProtoTableRow headers = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder>
getHeadersFieldBuilder() {
if (headersBuilder_ == null) {
headersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder>(
getHeaders(),
getParentForChildren(),
isClean());
headers_ = null;
}
return headersBuilder_;
}
private java.util.List<gauge.messages.Spec.ProtoTableRow> rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList<gauge.messages.Spec.ProtoTableRow>(rows_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder> rowsBuilder_;
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoTableRow> getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRow getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder setRows(
int index, gauge.messages.Spec.ProtoTableRow value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.set(index, value);
onChanged();
} else {
rowsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder setRows(
int index, gauge.messages.Spec.ProtoTableRow.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.set(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder addRows(gauge.messages.Spec.ProtoTableRow value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(value);
onChanged();
} else {
rowsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder addRows(
int index, gauge.messages.Spec.ProtoTableRow value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(index, value);
onChanged();
} else {
rowsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder addRows(
gauge.messages.Spec.ProtoTableRow.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder addRows(
int index, gauge.messages.Spec.ProtoTableRow.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder addAllRows(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoTableRow> values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRow.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoTableRowOrBuilder>
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRow.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoTableRow.getDefaultInstance());
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public gauge.messages.Spec.ProtoTableRow.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoTableRow.getDefaultInstance());
}
/**
* <pre>
*/ Contains the Rows for the table
* </pre>
*
* <code>repeated .gauge.messages.ProtoTableRow rows = 2;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoTableRow.Builder>
getRowsBuilderList() {
return getRowsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder>
getRowsFieldBuilder() {
if (rowsBuilder_ == null) {
rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder>(
rows_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
rows_ = null;
}
return rowsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoTable)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoTable)
private static final gauge.messages.Spec.ProtoTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoTable();
}
public static gauge.messages.Spec.ProtoTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoTable>
PARSER = new com.google.protobuf.AbstractParser<ProtoTable>() {
public ProtoTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoTable(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoTable> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoTable> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoTableRowOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoTableRow)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
java.util.List<java.lang.String>
getCellsList();
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
int getCellsCount();
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
java.lang.String getCells(int index);
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
com.google.protobuf.ByteString
getCellsBytes(int index);
}
/**
* <pre>
*/ A proto object representing Table.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTableRow}
*/
public static final class ProtoTableRow extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoTableRow)
ProtoTableRowOrBuilder {
// Use ProtoTableRow.newBuilder() to construct.
private ProtoTableRow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoTableRow() {
cells_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoTableRow(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
cells_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
cells_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
cells_ = cells_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTableRow.class, gauge.messages.Spec.ProtoTableRow.Builder.class);
}
public static final int CELLS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList cells_;
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public com.google.protobuf.ProtocolStringList
getCellsList() {
return cells_;
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public int getCellsCount() {
return cells_.size();
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public java.lang.String getCells(int index) {
return cells_.get(index);
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public com.google.protobuf.ByteString
getCellsBytes(int index) {
return cells_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < cells_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cells_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < cells_.size(); i++) {
dataSize += computeStringSizeNoTag(cells_.getRaw(i));
}
size += dataSize;
size += 1 * getCellsList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoTableRow)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoTableRow other = (gauge.messages.Spec.ProtoTableRow) obj;
boolean result = true;
result = result && getCellsList()
.equals(other.getCellsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getCellsCount() > 0) {
hash = (37 * hash) + CELLS_FIELD_NUMBER;
hash = (53 * hash) + getCellsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTableRow parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoTableRow prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Table.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoTableRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoTableRow)
gauge.messages.Spec.ProtoTableRowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoTableRow.class, gauge.messages.Spec.ProtoTableRow.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoTableRow.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cells_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_descriptor;
}
public gauge.messages.Spec.ProtoTableRow getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTableRow.getDefaultInstance();
}
public gauge.messages.Spec.ProtoTableRow build() {
gauge.messages.Spec.ProtoTableRow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoTableRow buildPartial() {
gauge.messages.Spec.ProtoTableRow result = new gauge.messages.Spec.ProtoTableRow(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
cells_ = cells_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.cells_ = cells_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoTableRow) {
return mergeFrom((gauge.messages.Spec.ProtoTableRow)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoTableRow other) {
if (other == gauge.messages.Spec.ProtoTableRow.getDefaultInstance()) return this;
if (!other.cells_.isEmpty()) {
if (cells_.isEmpty()) {
cells_ = other.cells_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCellsIsMutable();
cells_.addAll(other.cells_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoTableRow parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoTableRow) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList cells_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCellsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
cells_ = new com.google.protobuf.LazyStringArrayList(cells_);
bitField0_ |= 0x00000001;
}
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public com.google.protobuf.ProtocolStringList
getCellsList() {
return cells_.getUnmodifiableView();
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public int getCellsCount() {
return cells_.size();
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public java.lang.String getCells(int index) {
return cells_.get(index);
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public com.google.protobuf.ByteString
getCellsBytes(int index) {
return cells_.getByteString(index);
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public Builder setCells(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCellsIsMutable();
cells_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public Builder addCells(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCellsIsMutable();
cells_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public Builder addAllCells(
java.lang.Iterable<java.lang.String> values) {
ensureCellsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cells_);
onChanged();
return this;
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public Builder clearCells() {
cells_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
*/ Represents the cells of a given table
* </pre>
*
* <code>repeated string cells = 1;</code>
*/
public Builder addCellsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCellsIsMutable();
cells_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoTableRow)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoTableRow)
private static final gauge.messages.Spec.ProtoTableRow DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoTableRow();
}
public static gauge.messages.Spec.ProtoTableRow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoTableRow>
PARSER = new com.google.protobuf.AbstractParser<ProtoTableRow>() {
public ProtoTableRow parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoTableRow(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoTableRow> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoTableRow> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoTableRow getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoStepExecutionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoStepExecutionResult)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
boolean hasExecutionResult();
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
gauge.messages.Spec.ProtoExecutionResult getExecutionResult();
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
gauge.messages.Spec.ProtoExecutionResultOrBuilder getExecutionResultOrBuilder();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
boolean hasPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
boolean hasPostHookFailure();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailure();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder();
/**
* <code>optional bool skipped = 4;</code>
*/
boolean getSkipped();
/**
* <code>optional string skippedReason = 5;</code>
*/
java.lang.String getSkippedReason();
/**
* <code>optional string skippedReason = 5;</code>
*/
com.google.protobuf.ByteString
getSkippedReasonBytes();
}
/**
* <pre>
*/ A proto object representing Step Execution result
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoStepExecutionResult}
*/
public static final class ProtoStepExecutionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoStepExecutionResult)
ProtoStepExecutionResultOrBuilder {
// Use ProtoStepExecutionResult.newBuilder() to construct.
private ProtoStepExecutionResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoStepExecutionResult() {
skipped_ = false;
skippedReason_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoStepExecutionResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
gauge.messages.Spec.ProtoExecutionResult.Builder subBuilder = null;
if (executionResult_ != null) {
subBuilder = executionResult_.toBuilder();
}
executionResult_ = input.readMessage(gauge.messages.Spec.ProtoExecutionResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executionResult_);
executionResult_ = subBuilder.buildPartial();
}
break;
}
case 18: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (preHookFailure_ != null) {
subBuilder = preHookFailure_.toBuilder();
}
preHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(preHookFailure_);
preHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 26: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (postHookFailure_ != null) {
subBuilder = postHookFailure_.toBuilder();
}
postHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(postHookFailure_);
postHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 32: {
skipped_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
skippedReason_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoStepExecutionResult.class, gauge.messages.Spec.ProtoStepExecutionResult.Builder.class);
}
public static final int EXECUTIONRESULT_FIELD_NUMBER = 1;
private gauge.messages.Spec.ProtoExecutionResult executionResult_;
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public boolean hasExecutionResult() {
return executionResult_ != null;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public gauge.messages.Spec.ProtoExecutionResult getExecutionResult() {
return executionResult_ == null ? gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance() : executionResult_;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public gauge.messages.Spec.ProtoExecutionResultOrBuilder getExecutionResultOrBuilder() {
return getExecutionResult();
}
public static final int PREHOOKFAILURE_FIELD_NUMBER = 2;
private gauge.messages.Spec.ProtoHookFailure preHookFailure_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
return getPreHookFailure();
}
public static final int POSTHOOKFAILURE_FIELD_NUMBER = 3;
private gauge.messages.Spec.ProtoHookFailure postHookFailure_;
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return getPostHookFailure();
}
public static final int SKIPPED_FIELD_NUMBER = 4;
private boolean skipped_;
/**
* <code>optional bool skipped = 4;</code>
*/
public boolean getSkipped() {
return skipped_;
}
public static final int SKIPPEDREASON_FIELD_NUMBER = 5;
private volatile java.lang.Object skippedReason_;
/**
* <code>optional string skippedReason = 5;</code>
*/
public java.lang.String getSkippedReason() {
java.lang.Object ref = skippedReason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skippedReason_ = s;
return s;
}
}
/**
* <code>optional string skippedReason = 5;</code>
*/
public com.google.protobuf.ByteString
getSkippedReasonBytes() {
java.lang.Object ref = skippedReason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
skippedReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (executionResult_ != null) {
output.writeMessage(1, getExecutionResult());
}
if (preHookFailure_ != null) {
output.writeMessage(2, getPreHookFailure());
}
if (postHookFailure_ != null) {
output.writeMessage(3, getPostHookFailure());
}
if (skipped_ != false) {
output.writeBool(4, skipped_);
}
if (!getSkippedReasonBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, skippedReason_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (executionResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExecutionResult());
}
if (preHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPreHookFailure());
}
if (postHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPostHookFailure());
}
if (skipped_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, skipped_);
}
if (!getSkippedReasonBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, skippedReason_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoStepExecutionResult)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoStepExecutionResult other = (gauge.messages.Spec.ProtoStepExecutionResult) obj;
boolean result = true;
result = result && (hasExecutionResult() == other.hasExecutionResult());
if (hasExecutionResult()) {
result = result && getExecutionResult()
.equals(other.getExecutionResult());
}
result = result && (hasPreHookFailure() == other.hasPreHookFailure());
if (hasPreHookFailure()) {
result = result && getPreHookFailure()
.equals(other.getPreHookFailure());
}
result = result && (hasPostHookFailure() == other.hasPostHookFailure());
if (hasPostHookFailure()) {
result = result && getPostHookFailure()
.equals(other.getPostHookFailure());
}
result = result && (getSkipped()
== other.getSkipped());
result = result && getSkippedReason()
.equals(other.getSkippedReason());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasExecutionResult()) {
hash = (37 * hash) + EXECUTIONRESULT_FIELD_NUMBER;
hash = (53 * hash) + getExecutionResult().hashCode();
}
if (hasPreHookFailure()) {
hash = (37 * hash) + PREHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookFailure().hashCode();
}
if (hasPostHookFailure()) {
hash = (37 * hash) + POSTHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookFailure().hashCode();
}
hash = (37 * hash) + SKIPPED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSkipped());
hash = (37 * hash) + SKIPPEDREASON_FIELD_NUMBER;
hash = (53 * hash) + getSkippedReason().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoStepExecutionResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing Step Execution result
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoStepExecutionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoStepExecutionResult)
gauge.messages.Spec.ProtoStepExecutionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoStepExecutionResult.class, gauge.messages.Spec.ProtoStepExecutionResult.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoStepExecutionResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (executionResultBuilder_ == null) {
executionResult_ = null;
} else {
executionResult_ = null;
executionResultBuilder_ = null;
}
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
skipped_ = false;
skippedReason_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_descriptor;
}
public gauge.messages.Spec.ProtoStepExecutionResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance();
}
public gauge.messages.Spec.ProtoStepExecutionResult build() {
gauge.messages.Spec.ProtoStepExecutionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoStepExecutionResult buildPartial() {
gauge.messages.Spec.ProtoStepExecutionResult result = new gauge.messages.Spec.ProtoStepExecutionResult(this);
if (executionResultBuilder_ == null) {
result.executionResult_ = executionResult_;
} else {
result.executionResult_ = executionResultBuilder_.build();
}
if (preHookFailureBuilder_ == null) {
result.preHookFailure_ = preHookFailure_;
} else {
result.preHookFailure_ = preHookFailureBuilder_.build();
}
if (postHookFailureBuilder_ == null) {
result.postHookFailure_ = postHookFailure_;
} else {
result.postHookFailure_ = postHookFailureBuilder_.build();
}
result.skipped_ = skipped_;
result.skippedReason_ = skippedReason_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoStepExecutionResult) {
return mergeFrom((gauge.messages.Spec.ProtoStepExecutionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoStepExecutionResult other) {
if (other == gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance()) return this;
if (other.hasExecutionResult()) {
mergeExecutionResult(other.getExecutionResult());
}
if (other.hasPreHookFailure()) {
mergePreHookFailure(other.getPreHookFailure());
}
if (other.hasPostHookFailure()) {
mergePostHookFailure(other.getPostHookFailure());
}
if (other.getSkipped() != false) {
setSkipped(other.getSkipped());
}
if (!other.getSkippedReason().isEmpty()) {
skippedReason_ = other.skippedReason_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoStepExecutionResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoStepExecutionResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private gauge.messages.Spec.ProtoExecutionResult executionResult_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoExecutionResult, gauge.messages.Spec.ProtoExecutionResult.Builder, gauge.messages.Spec.ProtoExecutionResultOrBuilder> executionResultBuilder_;
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public boolean hasExecutionResult() {
return executionResultBuilder_ != null || executionResult_ != null;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public gauge.messages.Spec.ProtoExecutionResult getExecutionResult() {
if (executionResultBuilder_ == null) {
return executionResult_ == null ? gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance() : executionResult_;
} else {
return executionResultBuilder_.getMessage();
}
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public Builder setExecutionResult(gauge.messages.Spec.ProtoExecutionResult value) {
if (executionResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executionResult_ = value;
onChanged();
} else {
executionResultBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public Builder setExecutionResult(
gauge.messages.Spec.ProtoExecutionResult.Builder builderForValue) {
if (executionResultBuilder_ == null) {
executionResult_ = builderForValue.build();
onChanged();
} else {
executionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public Builder mergeExecutionResult(gauge.messages.Spec.ProtoExecutionResult value) {
if (executionResultBuilder_ == null) {
if (executionResult_ != null) {
executionResult_ =
gauge.messages.Spec.ProtoExecutionResult.newBuilder(executionResult_).mergeFrom(value).buildPartial();
} else {
executionResult_ = value;
}
onChanged();
} else {
executionResultBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public Builder clearExecutionResult() {
if (executionResultBuilder_ == null) {
executionResult_ = null;
onChanged();
} else {
executionResult_ = null;
executionResultBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public gauge.messages.Spec.ProtoExecutionResult.Builder getExecutionResultBuilder() {
onChanged();
return getExecutionResultFieldBuilder().getBuilder();
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
public gauge.messages.Spec.ProtoExecutionResultOrBuilder getExecutionResultOrBuilder() {
if (executionResultBuilder_ != null) {
return executionResultBuilder_.getMessageOrBuilder();
} else {
return executionResult_ == null ?
gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance() : executionResult_;
}
}
/**
* <pre>
*/ The actual result of the execution
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult executionResult = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoExecutionResult, gauge.messages.Spec.ProtoExecutionResult.Builder, gauge.messages.Spec.ProtoExecutionResultOrBuilder>
getExecutionResultFieldBuilder() {
if (executionResultBuilder_ == null) {
executionResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoExecutionResult, gauge.messages.Spec.ProtoExecutionResult.Builder, gauge.messages.Spec.ProtoExecutionResultOrBuilder>(
getExecutionResult(),
getParentForChildren(),
isClean());
executionResult_ = null;
}
return executionResultBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure preHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> preHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailureBuilder_ != null || preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
if (preHookFailureBuilder_ == null) {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
} else {
return preHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder setPreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
preHookFailure_ = value;
onChanged();
} else {
preHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder setPreHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = builderForValue.build();
onChanged();
} else {
preHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder mergePreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (preHookFailure_ != null) {
preHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(preHookFailure_).mergeFrom(value).buildPartial();
} else {
preHookFailure_ = value;
}
onChanged();
} else {
preHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder clearPreHookFailure() {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
onChanged();
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailureBuilder() {
onChanged();
return getPreHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
if (preHookFailureBuilder_ != null) {
return preHookFailureBuilder_.getMessageOrBuilder();
} else {
return preHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPreHookFailureFieldBuilder() {
if (preHookFailureBuilder_ == null) {
preHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPreHookFailure(),
getParentForChildren(),
isClean());
preHookFailure_ = null;
}
return preHookFailureBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure postHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> postHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailureBuilder_ != null || postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
if (postHookFailureBuilder_ == null) {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
} else {
return postHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder setPostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postHookFailure_ = value;
onChanged();
} else {
postHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder setPostHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = builderForValue.build();
onChanged();
} else {
postHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder mergePostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (postHookFailure_ != null) {
postHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(postHookFailure_).mergeFrom(value).buildPartial();
} else {
postHookFailure_ = value;
}
onChanged();
} else {
postHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder clearPostHookFailure() {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
onChanged();
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailureBuilder() {
onChanged();
return getPostHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
if (postHookFailureBuilder_ != null) {
return postHookFailureBuilder_.getMessageOrBuilder();
} else {
return postHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPostHookFailureFieldBuilder() {
if (postHookFailureBuilder_ == null) {
postHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPostHookFailure(),
getParentForChildren(),
isClean());
postHookFailure_ = null;
}
return postHookFailureBuilder_;
}
private boolean skipped_ ;
/**
* <code>optional bool skipped = 4;</code>
*/
public boolean getSkipped() {
return skipped_;
}
/**
* <code>optional bool skipped = 4;</code>
*/
public Builder setSkipped(boolean value) {
skipped_ = value;
onChanged();
return this;
}
/**
* <code>optional bool skipped = 4;</code>
*/
public Builder clearSkipped() {
skipped_ = false;
onChanged();
return this;
}
private java.lang.Object skippedReason_ = "";
/**
* <code>optional string skippedReason = 5;</code>
*/
public java.lang.String getSkippedReason() {
java.lang.Object ref = skippedReason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skippedReason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string skippedReason = 5;</code>
*/
public com.google.protobuf.ByteString
getSkippedReasonBytes() {
java.lang.Object ref = skippedReason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
skippedReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string skippedReason = 5;</code>
*/
public Builder setSkippedReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skippedReason_ = value;
onChanged();
return this;
}
/**
* <code>optional string skippedReason = 5;</code>
*/
public Builder clearSkippedReason() {
skippedReason_ = getDefaultInstance().getSkippedReason();
onChanged();
return this;
}
/**
* <code>optional string skippedReason = 5;</code>
*/
public Builder setSkippedReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skippedReason_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoStepExecutionResult)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoStepExecutionResult)
private static final gauge.messages.Spec.ProtoStepExecutionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoStepExecutionResult();
}
public static gauge.messages.Spec.ProtoStepExecutionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoStepExecutionResult>
PARSER = new com.google.protobuf.AbstractParser<ProtoStepExecutionResult>() {
public ProtoStepExecutionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoStepExecutionResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoStepExecutionResult> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoStepExecutionResult> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoStepExecutionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoExecutionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoExecutionResult)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 1;</code>
*/
boolean getFailed();
/**
* <pre>
*/ Flag to indicate if the error is recoverable from.
* </pre>
*
* <code>optional bool recoverableError = 2;</code>
*/
boolean getRecoverableError();
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
java.lang.String getErrorMessage();
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
java.lang.String getStackTrace();
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
com.google.protobuf.ByteString
getStackTraceBytes();
/**
* <pre>
*/ Byte array containing screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 5;</code>
*/
com.google.protobuf.ByteString getScreenShot();
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
long getExecutionTime();
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
java.util.List<java.lang.String>
getMessageList();
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
int getMessageCount();
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
java.lang.String getMessage(int index);
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
com.google.protobuf.ByteString
getMessageBytes(int index);
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
int getErrorTypeValue();
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType();
}
/**
* <pre>
*/ A proto object representing the result of an execution
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoExecutionResult}
*/
public static final class ProtoExecutionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoExecutionResult)
ProtoExecutionResultOrBuilder {
// Use ProtoExecutionResult.newBuilder() to construct.
private ProtoExecutionResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoExecutionResult() {
failed_ = false;
recoverableError_ = false;
errorMessage_ = "";
stackTrace_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
executionTime_ = 0L;
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
errorType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoExecutionResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
failed_ = input.readBool();
break;
}
case 16: {
recoverableError_ = input.readBool();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
stackTrace_ = s;
break;
}
case 42: {
screenShot_ = input.readBytes();
break;
}
case 48: {
executionTime_ = input.readInt64();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
message_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
message_.add(s);
break;
}
case 64: {
int rawValue = input.readEnum();
errorType_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
message_ = message_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoExecutionResult.class, gauge.messages.Spec.ProtoExecutionResult.Builder.class);
}
/**
* Protobuf enum {@code gauge.messages.ProtoExecutionResult.ErrorType}
*/
public enum ErrorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ASSERTION = 0;</code>
*/
ASSERTION(0),
/**
* <code>VERIFICATION = 1;</code>
*/
VERIFICATION(1),
UNRECOGNIZED(-1),
;
/**
* <code>ASSERTION = 0;</code>
*/
public static final int ASSERTION_VALUE = 0;
/**
* <code>VERIFICATION = 1;</code>
*/
public static final int VERIFICATION_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorType valueOf(int value) {
return forNumber(value);
}
public static ErrorType forNumber(int value) {
switch (value) {
case 0: return ASSERTION;
case 1: return VERIFICATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ErrorType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ErrorType>() {
public ErrorType findValueByNumber(int number) {
return ErrorType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return gauge.messages.Spec.ProtoExecutionResult.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorType[] VALUES = values();
public static ErrorType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:gauge.messages.ProtoExecutionResult.ErrorType)
}
private int bitField0_;
public static final int FAILED_FIELD_NUMBER = 1;
private boolean failed_;
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 1;</code>
*/
public boolean getFailed() {
return failed_;
}
public static final int RECOVERABLEERROR_FIELD_NUMBER = 2;
private boolean recoverableError_;
/**
* <pre>
*/ Flag to indicate if the error is recoverable from.
* </pre>
*
* <code>optional bool recoverableError = 2;</code>
*/
public boolean getRecoverableError() {
return recoverableError_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object errorMessage_;
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STACKTRACE_FIELD_NUMBER = 4;
private volatile java.lang.Object stackTrace_;
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stackTrace_ = s;
return s;
}
}
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCREENSHOT_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString screenShot_;
/**
* <pre>
*/ Byte array containing screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 5;</code>
*/
public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 6;
private long executionTime_;
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
public static final int MESSAGE_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList message_;
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public com.google.protobuf.ProtocolStringList
getMessageList() {
return message_;
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public int getMessageCount() {
return message_.size();
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public java.lang.String getMessage(int index) {
return message_.get(index);
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public com.google.protobuf.ByteString
getMessageBytes(int index) {
return message_.getByteString(index);
}
public static final int ERRORTYPE_FIELD_NUMBER = 8;
private int errorType_;
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public int getErrorTypeValue() {
return errorType_;
}
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType() {
gauge.messages.Spec.ProtoExecutionResult.ErrorType result = gauge.messages.Spec.ProtoExecutionResult.ErrorType.valueOf(errorType_);
return result == null ? gauge.messages.Spec.ProtoExecutionResult.ErrorType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (failed_ != false) {
output.writeBool(1, failed_);
}
if (recoverableError_ != false) {
output.writeBool(2, recoverableError_);
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_);
}
if (!getStackTraceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stackTrace_);
}
if (!screenShot_.isEmpty()) {
output.writeBytes(5, screenShot_);
}
if (executionTime_ != 0L) {
output.writeInt64(6, executionTime_);
}
for (int i = 0; i < message_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, message_.getRaw(i));
}
if (errorType_ != gauge.messages.Spec.ProtoExecutionResult.ErrorType.ASSERTION.getNumber()) {
output.writeEnum(8, errorType_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (failed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, failed_);
}
if (recoverableError_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, recoverableError_);
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_);
}
if (!getStackTraceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, stackTrace_);
}
if (!screenShot_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, screenShot_);
}
if (executionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, executionTime_);
}
{
int dataSize = 0;
for (int i = 0; i < message_.size(); i++) {
dataSize += computeStringSizeNoTag(message_.getRaw(i));
}
size += dataSize;
size += 1 * getMessageList().size();
}
if (errorType_ != gauge.messages.Spec.ProtoExecutionResult.ErrorType.ASSERTION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, errorType_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoExecutionResult)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoExecutionResult other = (gauge.messages.Spec.ProtoExecutionResult) obj;
boolean result = true;
result = result && (getFailed()
== other.getFailed());
result = result && (getRecoverableError()
== other.getRecoverableError());
result = result && getErrorMessage()
.equals(other.getErrorMessage());
result = result && getStackTrace()
.equals(other.getStackTrace());
result = result && getScreenShot()
.equals(other.getScreenShot());
result = result && (getExecutionTime()
== other.getExecutionTime());
result = result && getMessageList()
.equals(other.getMessageList());
result = result && errorType_ == other.errorType_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailed());
hash = (37 * hash) + RECOVERABLEERROR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRecoverableError());
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (37 * hash) + STACKTRACE_FIELD_NUMBER;
hash = (53 * hash) + getStackTrace().hashCode();
hash = (37 * hash) + SCREENSHOT_FIELD_NUMBER;
hash = (53 * hash) + getScreenShot().hashCode();
hash = (37 * hash) + EXECUTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutionTime());
if (getMessageCount() > 0) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessageList().hashCode();
}
hash = (37 * hash) + ERRORTYPE_FIELD_NUMBER;
hash = (53 * hash) + errorType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoExecutionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoExecutionResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoExecutionResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing the result of an execution
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoExecutionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoExecutionResult)
gauge.messages.Spec.ProtoExecutionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoExecutionResult.class, gauge.messages.Spec.ProtoExecutionResult.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoExecutionResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
failed_ = false;
recoverableError_ = false;
errorMessage_ = "";
stackTrace_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
executionTime_ = 0L;
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
errorType_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_descriptor;
}
public gauge.messages.Spec.ProtoExecutionResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance();
}
public gauge.messages.Spec.ProtoExecutionResult build() {
gauge.messages.Spec.ProtoExecutionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoExecutionResult buildPartial() {
gauge.messages.Spec.ProtoExecutionResult result = new gauge.messages.Spec.ProtoExecutionResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.failed_ = failed_;
result.recoverableError_ = recoverableError_;
result.errorMessage_ = errorMessage_;
result.stackTrace_ = stackTrace_;
result.screenShot_ = screenShot_;
result.executionTime_ = executionTime_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
message_ = message_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.message_ = message_;
result.errorType_ = errorType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoExecutionResult) {
return mergeFrom((gauge.messages.Spec.ProtoExecutionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoExecutionResult other) {
if (other == gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance()) return this;
if (other.getFailed() != false) {
setFailed(other.getFailed());
}
if (other.getRecoverableError() != false) {
setRecoverableError(other.getRecoverableError());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (!other.getStackTrace().isEmpty()) {
stackTrace_ = other.stackTrace_;
onChanged();
}
if (other.getScreenShot() != com.google.protobuf.ByteString.EMPTY) {
setScreenShot(other.getScreenShot());
}
if (other.getExecutionTime() != 0L) {
setExecutionTime(other.getExecutionTime());
}
if (!other.message_.isEmpty()) {
if (message_.isEmpty()) {
message_ = other.message_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureMessageIsMutable();
message_.addAll(other.message_);
}
onChanged();
}
if (other.errorType_ != 0) {
setErrorTypeValue(other.getErrorTypeValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoExecutionResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoExecutionResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean failed_ ;
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 1;</code>
*/
public boolean getFailed() {
return failed_;
}
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 1;</code>
*/
public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 1;</code>
*/
public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private boolean recoverableError_ ;
/**
* <pre>
*/ Flag to indicate if the error is recoverable from.
* </pre>
*
* <code>optional bool recoverableError = 2;</code>
*/
public boolean getRecoverableError() {
return recoverableError_;
}
/**
* <pre>
*/ Flag to indicate if the error is recoverable from.
* </pre>
*
* <code>optional bool recoverableError = 2;</code>
*/
public Builder setRecoverableError(boolean value) {
recoverableError_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag to indicate if the error is recoverable from.
* </pre>
*
* <code>optional bool recoverableError = 2;</code>
*/
public Builder clearRecoverableError() {
recoverableError_ = false;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* <pre>
*/ The actual error message.
* </pre>
*
* <code>optional string errorMessage = 3;</code>
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private java.lang.Object stackTrace_ = "";
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stackTrace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public Builder setStackTrace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stackTrace_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public Builder clearStackTrace() {
stackTrace_ = getDefaultInstance().getStackTrace();
onChanged();
return this;
}
/**
* <pre>
*/ Stacktrace of the error
* </pre>
*
* <code>optional string stackTrace = 4;</code>
*/
public Builder setStackTraceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stackTrace_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString screenShot_ = com.google.protobuf.ByteString.EMPTY;
/**
* <pre>
*/ Byte array containing screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 5;</code>
*/
public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
/**
* <pre>
*/ Byte array containing screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 5;</code>
*/
public Builder setScreenShot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
screenShot_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Byte array containing screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 5;</code>
*/
public Builder clearScreenShot() {
screenShot_ = getDefaultInstance().getScreenShot();
onChanged();
return this;
}
private long executionTime_ ;
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the time taken for executing this scenario.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public Builder clearExecutionTime() {
executionTime_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMessageIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
message_ = new com.google.protobuf.LazyStringArrayList(message_);
bitField0_ |= 0x00000040;
}
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public com.google.protobuf.ProtocolStringList
getMessageList() {
return message_.getUnmodifiableView();
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public int getMessageCount() {
return message_.size();
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public java.lang.String getMessage(int index) {
return message_.get(index);
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public com.google.protobuf.ByteString
getMessageBytes(int index) {
return message_.getByteString(index);
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public Builder setMessage(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageIsMutable();
message_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public Builder addMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageIsMutable();
message_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public Builder addAllMessage(
java.lang.Iterable<java.lang.String> values) {
ensureMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, message_);
onChanged();
return this;
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public Builder clearMessage() {
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
*/ Additional information at exec time to be available on reports
* </pre>
*
* <code>repeated string message = 7;</code>
*/
public Builder addMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureMessageIsMutable();
message_.add(value);
onChanged();
return this;
}
private int errorType_ = 0;
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public int getErrorTypeValue() {
return errorType_;
}
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public Builder setErrorTypeValue(int value) {
errorType_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType() {
gauge.messages.Spec.ProtoExecutionResult.ErrorType result = gauge.messages.Spec.ProtoExecutionResult.ErrorType.valueOf(errorType_);
return result == null ? gauge.messages.Spec.ProtoExecutionResult.ErrorType.UNRECOGNIZED : result;
}
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public Builder setErrorType(gauge.messages.Spec.ProtoExecutionResult.ErrorType value) {
if (value == null) {
throw new NullPointerException();
}
errorType_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
* </pre>
*
* <code>optional .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;</code>
*/
public Builder clearErrorType() {
errorType_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoExecutionResult)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoExecutionResult)
private static final gauge.messages.Spec.ProtoExecutionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoExecutionResult();
}
public static gauge.messages.Spec.ProtoExecutionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoExecutionResult>
PARSER = new com.google.protobuf.AbstractParser<ProtoExecutionResult>() {
public ProtoExecutionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoExecutionResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoExecutionResult> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoExecutionResult> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoExecutionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoHookFailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoHookFailure)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
java.lang.String getStackTrace();
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
com.google.protobuf.ByteString
getStackTraceBytes();
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
java.lang.String getErrorMessage();
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* <pre>
*/ Byte array holding the screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 3;</code>
*/
com.google.protobuf.ByteString getScreenShot();
}
/**
* <pre>
*/ A proto object representing a pre-hook failure.
* / Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoHookFailure}
*/
public static final class ProtoHookFailure extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoHookFailure)
ProtoHookFailureOrBuilder {
// Use ProtoHookFailure.newBuilder() to construct.
private ProtoHookFailure(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoHookFailure() {
stackTrace_ = "";
errorMessage_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoHookFailure(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
stackTrace_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 26: {
screenShot_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoHookFailure.class, gauge.messages.Spec.ProtoHookFailure.Builder.class);
}
public static final int STACKTRACE_FIELD_NUMBER = 1;
private volatile java.lang.Object stackTrace_;
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stackTrace_ = s;
return s;
}
}
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object errorMessage_;
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCREENSHOT_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString screenShot_;
/**
* <pre>
*/ Byte array holding the screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 3;</code>
*/
public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getStackTraceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTrace_);
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
}
if (!screenShot_.isEmpty()) {
output.writeBytes(3, screenShot_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStackTraceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stackTrace_);
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
}
if (!screenShot_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, screenShot_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoHookFailure)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoHookFailure other = (gauge.messages.Spec.ProtoHookFailure) obj;
boolean result = true;
result = result && getStackTrace()
.equals(other.getStackTrace());
result = result && getErrorMessage()
.equals(other.getErrorMessage());
result = result && getScreenShot()
.equals(other.getScreenShot());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + STACKTRACE_FIELD_NUMBER;
hash = (53 * hash) + getStackTrace().hashCode();
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (37 * hash) + SCREENSHOT_FIELD_NUMBER;
hash = (53 * hash) + getScreenShot().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoHookFailure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoHookFailure parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoHookFailure parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoHookFailure prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a pre-hook failure.
* / Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoHookFailure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoHookFailure)
gauge.messages.Spec.ProtoHookFailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoHookFailure.class, gauge.messages.Spec.ProtoHookFailure.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoHookFailure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
stackTrace_ = "";
errorMessage_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_descriptor;
}
public gauge.messages.Spec.ProtoHookFailure getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoHookFailure.getDefaultInstance();
}
public gauge.messages.Spec.ProtoHookFailure build() {
gauge.messages.Spec.ProtoHookFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoHookFailure buildPartial() {
gauge.messages.Spec.ProtoHookFailure result = new gauge.messages.Spec.ProtoHookFailure(this);
result.stackTrace_ = stackTrace_;
result.errorMessage_ = errorMessage_;
result.screenShot_ = screenShot_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoHookFailure) {
return mergeFrom((gauge.messages.Spec.ProtoHookFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoHookFailure other) {
if (other == gauge.messages.Spec.ProtoHookFailure.getDefaultInstance()) return this;
if (!other.getStackTrace().isEmpty()) {
stackTrace_ = other.stackTrace_;
onChanged();
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.getScreenShot() != com.google.protobuf.ByteString.EMPTY) {
setScreenShot(other.getScreenShot());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoHookFailure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoHookFailure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object stackTrace_ = "";
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stackTrace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public Builder setStackTrace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stackTrace_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public Builder clearStackTrace() {
stackTrace_ = getDefaultInstance().getStackTrace();
onChanged();
return this;
}
/**
* <pre>
*/ Stacktrace from the failure
* </pre>
*
* <code>optional string stackTrace = 1;</code>
*/
public Builder setStackTraceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stackTrace_ = value;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* <pre>
*/ Error message from the failure
* </pre>
*
* <code>optional string errorMessage = 2;</code>
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString screenShot_ = com.google.protobuf.ByteString.EMPTY;
/**
* <pre>
*/ Byte array holding the screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 3;</code>
*/
public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
/**
* <pre>
*/ Byte array holding the screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 3;</code>
*/
public Builder setScreenShot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
screenShot_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Byte array holding the screenshot taken at the time of failure.
* </pre>
*
* <code>optional bytes screenShot = 3;</code>
*/
public Builder clearScreenShot() {
screenShot_ = getDefaultInstance().getScreenShot();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoHookFailure)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoHookFailure)
private static final gauge.messages.Spec.ProtoHookFailure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoHookFailure();
}
public static gauge.messages.Spec.ProtoHookFailure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoHookFailure>
PARSER = new com.google.protobuf.AbstractParser<ProtoHookFailure>() {
public ProtoHookFailure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoHookFailure(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoHookFailure> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoHookFailure> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoHookFailure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoSuiteResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoSuiteResult)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
java.util.List<gauge.messages.Spec.ProtoSpecResult>
getSpecResultsList();
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
gauge.messages.Spec.ProtoSpecResult getSpecResults(int index);
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
int getSpecResultsCount();
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
java.util.List<? extends gauge.messages.Spec.ProtoSpecResultOrBuilder>
getSpecResultsOrBuilderList();
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
gauge.messages.Spec.ProtoSpecResultOrBuilder getSpecResultsOrBuilder(
int index);
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
boolean hasPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailure();
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
boolean hasPostHookFailure();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailure();
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder();
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
boolean getFailed();
/**
* <pre>
*/ Holds the count of number of Specifications that failed.
* </pre>
*
* <code>optional int32 specsFailedCount = 5;</code>
*/
int getSpecsFailedCount();
/**
* <pre>
*/ Holds the time taken for executing the whole suite.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
long getExecutionTime();
/**
* <pre>
*/ Holds a metric indicating the success rate of the execution.
* </pre>
*
* <code>optional float successRate = 7;</code>
*/
float getSuccessRate();
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
java.lang.String getEnvironment();
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
com.google.protobuf.ByteString
getEnvironmentBytes();
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
java.lang.String getTags();
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
com.google.protobuf.ByteString
getTagsBytes();
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
java.lang.String getProjectName();
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
com.google.protobuf.ByteString
getProjectNameBytes();
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
java.lang.String getTimestamp();
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
com.google.protobuf.ByteString
getTimestampBytes();
/**
* <code>optional int32 specsSkippedCount = 12;</code>
*/
int getSpecsSkippedCount();
}
/**
* <pre>
*/ A proto object representing the result of entire Suite execution.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoSuiteResult}
*/
public static final class ProtoSuiteResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoSuiteResult)
ProtoSuiteResultOrBuilder {
// Use ProtoSuiteResult.newBuilder() to construct.
private ProtoSuiteResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoSuiteResult() {
specResults_ = java.util.Collections.emptyList();
failed_ = false;
specsFailedCount_ = 0;
executionTime_ = 0L;
successRate_ = 0F;
environment_ = "";
tags_ = "";
projectName_ = "";
timestamp_ = "";
specsSkippedCount_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoSuiteResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
specResults_ = new java.util.ArrayList<gauge.messages.Spec.ProtoSpecResult>();
mutable_bitField0_ |= 0x00000001;
}
specResults_.add(
input.readMessage(gauge.messages.Spec.ProtoSpecResult.parser(), extensionRegistry));
break;
}
case 18: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (preHookFailure_ != null) {
subBuilder = preHookFailure_.toBuilder();
}
preHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(preHookFailure_);
preHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 26: {
gauge.messages.Spec.ProtoHookFailure.Builder subBuilder = null;
if (postHookFailure_ != null) {
subBuilder = postHookFailure_.toBuilder();
}
postHookFailure_ = input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(postHookFailure_);
postHookFailure_ = subBuilder.buildPartial();
}
break;
}
case 32: {
failed_ = input.readBool();
break;
}
case 40: {
specsFailedCount_ = input.readInt32();
break;
}
case 48: {
executionTime_ = input.readInt64();
break;
}
case 61: {
successRate_ = input.readFloat();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
environment_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
tags_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
projectName_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
timestamp_ = s;
break;
}
case 96: {
specsSkippedCount_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
specResults_ = java.util.Collections.unmodifiableList(specResults_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSuiteResult.class, gauge.messages.Spec.ProtoSuiteResult.Builder.class);
}
private int bitField0_;
public static final int SPECRESULTS_FIELD_NUMBER = 1;
private java.util.List<gauge.messages.Spec.ProtoSpecResult> specResults_;
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoSpecResult> getSpecResultsList() {
return specResults_;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoSpecResultOrBuilder>
getSpecResultsOrBuilderList() {
return specResults_;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public int getSpecResultsCount() {
return specResults_.size();
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResult getSpecResults(int index) {
return specResults_.get(index);
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResultOrBuilder getSpecResultsOrBuilder(
int index) {
return specResults_.get(index);
}
public static final int PREHOOKFAILURE_FIELD_NUMBER = 2;
private gauge.messages.Spec.ProtoHookFailure preHookFailure_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
return getPreHookFailure();
}
public static final int POSTHOOKFAILURE_FIELD_NUMBER = 3;
private gauge.messages.Spec.ProtoHookFailure postHookFailure_;
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return getPostHookFailure();
}
public static final int FAILED_FIELD_NUMBER = 4;
private boolean failed_;
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public boolean getFailed() {
return failed_;
}
public static final int SPECSFAILEDCOUNT_FIELD_NUMBER = 5;
private int specsFailedCount_;
/**
* <pre>
*/ Holds the count of number of Specifications that failed.
* </pre>
*
* <code>optional int32 specsFailedCount = 5;</code>
*/
public int getSpecsFailedCount() {
return specsFailedCount_;
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 6;
private long executionTime_;
/**
* <pre>
*/ Holds the time taken for executing the whole suite.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
public static final int SUCCESSRATE_FIELD_NUMBER = 7;
private float successRate_;
/**
* <pre>
*/ Holds a metric indicating the success rate of the execution.
* </pre>
*
* <code>optional float successRate = 7;</code>
*/
public float getSuccessRate() {
return successRate_;
}
public static final int ENVIRONMENT_FIELD_NUMBER = 8;
private volatile java.lang.Object environment_;
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public java.lang.String getEnvironment() {
java.lang.Object ref = environment_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
environment_ = s;
return s;
}
}
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public com.google.protobuf.ByteString
getEnvironmentBytes() {
java.lang.Object ref = environment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
environment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TAGS_FIELD_NUMBER = 9;
private volatile java.lang.Object tags_;
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public java.lang.String getTags() {
java.lang.Object ref = tags_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tags_ = s;
return s;
}
}
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes() {
java.lang.Object ref = tags_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tags_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECTNAME_FIELD_NUMBER = 10;
private volatile java.lang.Object projectName_;
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public java.lang.String getProjectName() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectName_ = s;
return s;
}
}
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public com.google.protobuf.ByteString
getProjectNameBytes() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 11;
private volatile java.lang.Object timestamp_;
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public java.lang.String getTimestamp() {
java.lang.Object ref = timestamp_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timestamp_ = s;
return s;
}
}
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public com.google.protobuf.ByteString
getTimestampBytes() {
java.lang.Object ref = timestamp_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timestamp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPECSSKIPPEDCOUNT_FIELD_NUMBER = 12;
private int specsSkippedCount_;
/**
* <code>optional int32 specsSkippedCount = 12;</code>
*/
public int getSpecsSkippedCount() {
return specsSkippedCount_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < specResults_.size(); i++) {
output.writeMessage(1, specResults_.get(i));
}
if (preHookFailure_ != null) {
output.writeMessage(2, getPreHookFailure());
}
if (postHookFailure_ != null) {
output.writeMessage(3, getPostHookFailure());
}
if (failed_ != false) {
output.writeBool(4, failed_);
}
if (specsFailedCount_ != 0) {
output.writeInt32(5, specsFailedCount_);
}
if (executionTime_ != 0L) {
output.writeInt64(6, executionTime_);
}
if (successRate_ != 0F) {
output.writeFloat(7, successRate_);
}
if (!getEnvironmentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, environment_);
}
if (!getTagsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, tags_);
}
if (!getProjectNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, projectName_);
}
if (!getTimestampBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, timestamp_);
}
if (specsSkippedCount_ != 0) {
output.writeInt32(12, specsSkippedCount_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < specResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, specResults_.get(i));
}
if (preHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPreHookFailure());
}
if (postHookFailure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPostHookFailure());
}
if (failed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, failed_);
}
if (specsFailedCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, specsFailedCount_);
}
if (executionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, executionTime_);
}
if (successRate_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, successRate_);
}
if (!getEnvironmentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, environment_);
}
if (!getTagsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, tags_);
}
if (!getProjectNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, projectName_);
}
if (!getTimestampBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, timestamp_);
}
if (specsSkippedCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, specsSkippedCount_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoSuiteResult)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoSuiteResult other = (gauge.messages.Spec.ProtoSuiteResult) obj;
boolean result = true;
result = result && getSpecResultsList()
.equals(other.getSpecResultsList());
result = result && (hasPreHookFailure() == other.hasPreHookFailure());
if (hasPreHookFailure()) {
result = result && getPreHookFailure()
.equals(other.getPreHookFailure());
}
result = result && (hasPostHookFailure() == other.hasPostHookFailure());
if (hasPostHookFailure()) {
result = result && getPostHookFailure()
.equals(other.getPostHookFailure());
}
result = result && (getFailed()
== other.getFailed());
result = result && (getSpecsFailedCount()
== other.getSpecsFailedCount());
result = result && (getExecutionTime()
== other.getExecutionTime());
result = result && (
java.lang.Float.floatToIntBits(getSuccessRate())
== java.lang.Float.floatToIntBits(
other.getSuccessRate()));
result = result && getEnvironment()
.equals(other.getEnvironment());
result = result && getTags()
.equals(other.getTags());
result = result && getProjectName()
.equals(other.getProjectName());
result = result && getTimestamp()
.equals(other.getTimestamp());
result = result && (getSpecsSkippedCount()
== other.getSpecsSkippedCount());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getSpecResultsCount() > 0) {
hash = (37 * hash) + SPECRESULTS_FIELD_NUMBER;
hash = (53 * hash) + getSpecResultsList().hashCode();
}
if (hasPreHookFailure()) {
hash = (37 * hash) + PREHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookFailure().hashCode();
}
if (hasPostHookFailure()) {
hash = (37 * hash) + POSTHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookFailure().hashCode();
}
hash = (37 * hash) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailed());
hash = (37 * hash) + SPECSFAILEDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getSpecsFailedCount();
hash = (37 * hash) + EXECUTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutionTime());
hash = (37 * hash) + SUCCESSRATE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getSuccessRate());
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + getEnvironment().hashCode();
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTags().hashCode();
hash = (37 * hash) + PROJECTNAME_FIELD_NUMBER;
hash = (53 * hash) + getProjectName().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
hash = (37 * hash) + SPECSSKIPPEDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getSpecsSkippedCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSuiteResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoSuiteResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing the result of entire Suite execution.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoSuiteResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoSuiteResult)
gauge.messages.Spec.ProtoSuiteResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSuiteResult.class, gauge.messages.Spec.ProtoSuiteResult.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoSuiteResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpecResultsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (specResultsBuilder_ == null) {
specResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
specResultsBuilder_.clear();
}
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
failed_ = false;
specsFailedCount_ = 0;
executionTime_ = 0L;
successRate_ = 0F;
environment_ = "";
tags_ = "";
projectName_ = "";
timestamp_ = "";
specsSkippedCount_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_descriptor;
}
public gauge.messages.Spec.ProtoSuiteResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoSuiteResult.getDefaultInstance();
}
public gauge.messages.Spec.ProtoSuiteResult build() {
gauge.messages.Spec.ProtoSuiteResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoSuiteResult buildPartial() {
gauge.messages.Spec.ProtoSuiteResult result = new gauge.messages.Spec.ProtoSuiteResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (specResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
specResults_ = java.util.Collections.unmodifiableList(specResults_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.specResults_ = specResults_;
} else {
result.specResults_ = specResultsBuilder_.build();
}
if (preHookFailureBuilder_ == null) {
result.preHookFailure_ = preHookFailure_;
} else {
result.preHookFailure_ = preHookFailureBuilder_.build();
}
if (postHookFailureBuilder_ == null) {
result.postHookFailure_ = postHookFailure_;
} else {
result.postHookFailure_ = postHookFailureBuilder_.build();
}
result.failed_ = failed_;
result.specsFailedCount_ = specsFailedCount_;
result.executionTime_ = executionTime_;
result.successRate_ = successRate_;
result.environment_ = environment_;
result.tags_ = tags_;
result.projectName_ = projectName_;
result.timestamp_ = timestamp_;
result.specsSkippedCount_ = specsSkippedCount_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoSuiteResult) {
return mergeFrom((gauge.messages.Spec.ProtoSuiteResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoSuiteResult other) {
if (other == gauge.messages.Spec.ProtoSuiteResult.getDefaultInstance()) return this;
if (specResultsBuilder_ == null) {
if (!other.specResults_.isEmpty()) {
if (specResults_.isEmpty()) {
specResults_ = other.specResults_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSpecResultsIsMutable();
specResults_.addAll(other.specResults_);
}
onChanged();
}
} else {
if (!other.specResults_.isEmpty()) {
if (specResultsBuilder_.isEmpty()) {
specResultsBuilder_.dispose();
specResultsBuilder_ = null;
specResults_ = other.specResults_;
bitField0_ = (bitField0_ & ~0x00000001);
specResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpecResultsFieldBuilder() : null;
} else {
specResultsBuilder_.addAllMessages(other.specResults_);
}
}
}
if (other.hasPreHookFailure()) {
mergePreHookFailure(other.getPreHookFailure());
}
if (other.hasPostHookFailure()) {
mergePostHookFailure(other.getPostHookFailure());
}
if (other.getFailed() != false) {
setFailed(other.getFailed());
}
if (other.getSpecsFailedCount() != 0) {
setSpecsFailedCount(other.getSpecsFailedCount());
}
if (other.getExecutionTime() != 0L) {
setExecutionTime(other.getExecutionTime());
}
if (other.getSuccessRate() != 0F) {
setSuccessRate(other.getSuccessRate());
}
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
onChanged();
}
if (!other.getTags().isEmpty()) {
tags_ = other.tags_;
onChanged();
}
if (!other.getProjectName().isEmpty()) {
projectName_ = other.projectName_;
onChanged();
}
if (!other.getTimestamp().isEmpty()) {
timestamp_ = other.timestamp_;
onChanged();
}
if (other.getSpecsSkippedCount() != 0) {
setSpecsSkippedCount(other.getSpecsSkippedCount());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoSuiteResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoSuiteResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<gauge.messages.Spec.ProtoSpecResult> specResults_ =
java.util.Collections.emptyList();
private void ensureSpecResultsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
specResults_ = new java.util.ArrayList<gauge.messages.Spec.ProtoSpecResult>(specResults_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoSpecResult, gauge.messages.Spec.ProtoSpecResult.Builder, gauge.messages.Spec.ProtoSpecResultOrBuilder> specResultsBuilder_;
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoSpecResult> getSpecResultsList() {
if (specResultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(specResults_);
} else {
return specResultsBuilder_.getMessageList();
}
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public int getSpecResultsCount() {
if (specResultsBuilder_ == null) {
return specResults_.size();
} else {
return specResultsBuilder_.getCount();
}
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResult getSpecResults(int index) {
if (specResultsBuilder_ == null) {
return specResults_.get(index);
} else {
return specResultsBuilder_.getMessage(index);
}
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder setSpecResults(
int index, gauge.messages.Spec.ProtoSpecResult value) {
if (specResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpecResultsIsMutable();
specResults_.set(index, value);
onChanged();
} else {
specResultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder setSpecResults(
int index, gauge.messages.Spec.ProtoSpecResult.Builder builderForValue) {
if (specResultsBuilder_ == null) {
ensureSpecResultsIsMutable();
specResults_.set(index, builderForValue.build());
onChanged();
} else {
specResultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder addSpecResults(gauge.messages.Spec.ProtoSpecResult value) {
if (specResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpecResultsIsMutable();
specResults_.add(value);
onChanged();
} else {
specResultsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder addSpecResults(
int index, gauge.messages.Spec.ProtoSpecResult value) {
if (specResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpecResultsIsMutable();
specResults_.add(index, value);
onChanged();
} else {
specResultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder addSpecResults(
gauge.messages.Spec.ProtoSpecResult.Builder builderForValue) {
if (specResultsBuilder_ == null) {
ensureSpecResultsIsMutable();
specResults_.add(builderForValue.build());
onChanged();
} else {
specResultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder addSpecResults(
int index, gauge.messages.Spec.ProtoSpecResult.Builder builderForValue) {
if (specResultsBuilder_ == null) {
ensureSpecResultsIsMutable();
specResults_.add(index, builderForValue.build());
onChanged();
} else {
specResultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder addAllSpecResults(
java.lang.Iterable<? extends gauge.messages.Spec.ProtoSpecResult> values) {
if (specResultsBuilder_ == null) {
ensureSpecResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, specResults_);
onChanged();
} else {
specResultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder clearSpecResults() {
if (specResultsBuilder_ == null) {
specResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
specResultsBuilder_.clear();
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public Builder removeSpecResults(int index) {
if (specResultsBuilder_ == null) {
ensureSpecResultsIsMutable();
specResults_.remove(index);
onChanged();
} else {
specResultsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResult.Builder getSpecResultsBuilder(
int index) {
return getSpecResultsFieldBuilder().getBuilder(index);
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResultOrBuilder getSpecResultsOrBuilder(
int index) {
if (specResultsBuilder_ == null) {
return specResults_.get(index); } else {
return specResultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public java.util.List<? extends gauge.messages.Spec.ProtoSpecResultOrBuilder>
getSpecResultsOrBuilderList() {
if (specResultsBuilder_ != null) {
return specResultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(specResults_);
}
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResult.Builder addSpecResultsBuilder() {
return getSpecResultsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoSpecResult.getDefaultInstance());
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecResult.Builder addSpecResultsBuilder(
int index) {
return getSpecResultsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoSpecResult.getDefaultInstance());
}
/**
* <pre>
*/ Contains the result from the execution
* </pre>
*
* <code>repeated .gauge.messages.ProtoSpecResult specResults = 1;</code>
*/
public java.util.List<gauge.messages.Spec.ProtoSpecResult.Builder>
getSpecResultsBuilderList() {
return getSpecResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoSpecResult, gauge.messages.Spec.ProtoSpecResult.Builder, gauge.messages.Spec.ProtoSpecResultOrBuilder>
getSpecResultsFieldBuilder() {
if (specResultsBuilder_ == null) {
specResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoSpecResult, gauge.messages.Spec.ProtoSpecResult.Builder, gauge.messages.Spec.ProtoSpecResultOrBuilder>(
specResults_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
specResults_ = null;
}
return specResultsBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure preHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> preHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public boolean hasPreHookFailure() {
return preHookFailureBuilder_ != null || preHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
if (preHookFailureBuilder_ == null) {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
} else {
return preHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder setPreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
preHookFailure_ = value;
onChanged();
} else {
preHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder setPreHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = builderForValue.build();
onChanged();
} else {
preHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder mergePreHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailureBuilder_ == null) {
if (preHookFailure_ != null) {
preHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(preHookFailure_).mergeFrom(value).buildPartial();
} else {
preHookFailure_ = value;
}
onChanged();
} else {
preHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public Builder clearPreHookFailure() {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
onChanged();
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailureBuilder() {
onChanged();
return getPreHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
if (preHookFailureBuilder_ != null) {
return preHookFailureBuilder_.getMessageOrBuilder();
} else {
return preHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure preHookFailure = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPreHookFailureFieldBuilder() {
if (preHookFailureBuilder_ == null) {
preHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPreHookFailure(),
getParentForChildren(),
isClean());
preHookFailure_ = null;
}
return preHookFailureBuilder_;
}
private gauge.messages.Spec.ProtoHookFailure postHookFailure_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> postHookFailureBuilder_;
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public boolean hasPostHookFailure() {
return postHookFailureBuilder_ != null || postHookFailure_ != null;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
if (postHookFailureBuilder_ == null) {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
} else {
return postHookFailureBuilder_.getMessage();
}
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder setPostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postHookFailure_ = value;
onChanged();
} else {
postHookFailureBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder setPostHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = builderForValue.build();
onChanged();
} else {
postHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder mergePostHookFailure(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailureBuilder_ == null) {
if (postHookFailure_ != null) {
postHookFailure_ =
gauge.messages.Spec.ProtoHookFailure.newBuilder(postHookFailure_).mergeFrom(value).buildPartial();
} else {
postHookFailure_ = value;
}
onChanged();
} else {
postHookFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public Builder clearPostHookFailure() {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
onChanged();
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailureBuilder() {
onChanged();
return getPostHookFailureFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
if (postHookFailureBuilder_ != null) {
return postHookFailureBuilder_.getMessageOrBuilder();
} else {
return postHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
}
/**
* <pre>
*/ Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
* </pre>
*
* <code>optional .gauge.messages.ProtoHookFailure postHookFailure = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPostHookFailureFieldBuilder() {
if (postHookFailureBuilder_ == null) {
postHookFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
getPostHookFailure(),
getParentForChildren(),
isClean());
postHookFailure_ = null;
}
return postHookFailureBuilder_;
}
private boolean failed_ ;
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public boolean getFailed() {
return failed_;
}
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private int specsFailedCount_ ;
/**
* <pre>
*/ Holds the count of number of Specifications that failed.
* </pre>
*
* <code>optional int32 specsFailedCount = 5;</code>
*/
public int getSpecsFailedCount() {
return specsFailedCount_;
}
/**
* <pre>
*/ Holds the count of number of Specifications that failed.
* </pre>
*
* <code>optional int32 specsFailedCount = 5;</code>
*/
public Builder setSpecsFailedCount(int value) {
specsFailedCount_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the count of number of Specifications that failed.
* </pre>
*
* <code>optional int32 specsFailedCount = 5;</code>
*/
public Builder clearSpecsFailedCount() {
specsFailedCount_ = 0;
onChanged();
return this;
}
private long executionTime_ ;
/**
* <pre>
*/ Holds the time taken for executing the whole suite.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
/**
* <pre>
*/ Holds the time taken for executing the whole suite.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the time taken for executing the whole suite.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public Builder clearExecutionTime() {
executionTime_ = 0L;
onChanged();
return this;
}
private float successRate_ ;
/**
* <pre>
*/ Holds a metric indicating the success rate of the execution.
* </pre>
*
* <code>optional float successRate = 7;</code>
*/
public float getSuccessRate() {
return successRate_;
}
/**
* <pre>
*/ Holds a metric indicating the success rate of the execution.
* </pre>
*
* <code>optional float successRate = 7;</code>
*/
public Builder setSuccessRate(float value) {
successRate_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds a metric indicating the success rate of the execution.
* </pre>
*
* <code>optional float successRate = 7;</code>
*/
public Builder clearSuccessRate() {
successRate_ = 0F;
onChanged();
return this;
}
private java.lang.Object environment_ = "";
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public java.lang.String getEnvironment() {
java.lang.Object ref = environment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
environment_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public com.google.protobuf.ByteString
getEnvironmentBytes() {
java.lang.Object ref = environment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
environment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public Builder setEnvironment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public Builder clearEnvironment() {
environment_ = getDefaultInstance().getEnvironment();
onChanged();
return this;
}
/**
* <pre>
*/ The environment against which execution was done
* </pre>
*
* <code>optional string environment = 8;</code>
*/
public Builder setEnvironmentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
environment_ = value;
onChanged();
return this;
}
private java.lang.Object tags_ = "";
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public java.lang.String getTags() {
java.lang.Object ref = tags_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tags_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes() {
java.lang.Object ref = tags_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tags_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public Builder setTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tags_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public Builder clearTags() {
tags_ = getDefaultInstance().getTags();
onChanged();
return this;
}
/**
* <pre>
*/ Tag expression used for filtering specification
* </pre>
*
* <code>optional string tags = 9;</code>
*/
public Builder setTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tags_ = value;
onChanged();
return this;
}
private java.lang.Object projectName_ = "";
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public java.lang.String getProjectName() {
java.lang.Object ref = projectName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public com.google.protobuf.ByteString
getProjectNameBytes() {
java.lang.Object ref = projectName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public Builder setProjectName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
projectName_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public Builder clearProjectName() {
projectName_ = getDefaultInstance().getProjectName();
onChanged();
return this;
}
/**
* <pre>
*/ Project name
* </pre>
*
* <code>optional string projectName = 10;</code>
*/
public Builder setProjectNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
projectName_ = value;
onChanged();
return this;
}
private java.lang.Object timestamp_ = "";
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public java.lang.String getTimestamp() {
java.lang.Object ref = timestamp_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timestamp_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public com.google.protobuf.ByteString
getTimestampBytes() {
java.lang.Object ref = timestamp_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timestamp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public Builder setTimestamp(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public Builder clearTimestamp() {
timestamp_ = getDefaultInstance().getTimestamp();
onChanged();
return this;
}
/**
* <pre>
*/ Timestamp of when execution started
* </pre>
*
* <code>optional string timestamp = 11;</code>
*/
public Builder setTimestampBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timestamp_ = value;
onChanged();
return this;
}
private int specsSkippedCount_ ;
/**
* <code>optional int32 specsSkippedCount = 12;</code>
*/
public int getSpecsSkippedCount() {
return specsSkippedCount_;
}
/**
* <code>optional int32 specsSkippedCount = 12;</code>
*/
public Builder setSpecsSkippedCount(int value) {
specsSkippedCount_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 specsSkippedCount = 12;</code>
*/
public Builder clearSpecsSkippedCount() {
specsSkippedCount_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoSuiteResult)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoSuiteResult)
private static final gauge.messages.Spec.ProtoSuiteResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoSuiteResult();
}
public static gauge.messages.Spec.ProtoSuiteResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoSuiteResult>
PARSER = new com.google.protobuf.AbstractParser<ProtoSuiteResult>() {
public ProtoSuiteResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoSuiteResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoSuiteResult> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoSuiteResult> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoSuiteResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoSpecResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoSpecResult)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
boolean hasProtoSpec();
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
gauge.messages.Spec.ProtoSpec getProtoSpec();
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
gauge.messages.Spec.ProtoSpecOrBuilder getProtoSpecOrBuilder();
/**
* <pre>
*/ Holds the number of Scenarios executed
* </pre>
*
* <code>optional int32 scenarioCount = 2;</code>
*/
int getScenarioCount();
/**
* <pre>
*/ Holds the number of Scenarios failed
* </pre>
*
* <code>optional int32 scenarioFailedCount = 3;</code>
*/
int getScenarioFailedCount();
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
boolean getFailed();
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
java.util.List<java.lang.Integer> getFailedDataTableRowsList();
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
int getFailedDataTableRowsCount();
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
int getFailedDataTableRows(int index);
/**
* <pre>
*/ Holds the time taken for executing the spec.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
long getExecutionTime();
/**
* <code>optional bool skipped = 7;</code>
*/
boolean getSkipped();
/**
* <code>optional int32 scenarioSkippedCount = 9;</code>
*/
int getScenarioSkippedCount();
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
java.util.List<java.lang.Integer> getSkippedDataTableRowsList();
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
int getSkippedDataTableRowsCount();
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
int getSkippedDataTableRows(int index);
}
/**
* <pre>
*/ A proto object representing the result of Spec execution.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoSpecResult}
*/
public static final class ProtoSpecResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoSpecResult)
ProtoSpecResultOrBuilder {
// Use ProtoSpecResult.newBuilder() to construct.
private ProtoSpecResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoSpecResult() {
scenarioCount_ = 0;
scenarioFailedCount_ = 0;
failed_ = false;
failedDataTableRows_ = java.util.Collections.emptyList();
executionTime_ = 0L;
skipped_ = false;
scenarioSkippedCount_ = 0;
skippedDataTableRows_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoSpecResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
gauge.messages.Spec.ProtoSpec.Builder subBuilder = null;
if (protoSpec_ != null) {
subBuilder = protoSpec_.toBuilder();
}
protoSpec_ = input.readMessage(gauge.messages.Spec.ProtoSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(protoSpec_);
protoSpec_ = subBuilder.buildPartial();
}
break;
}
case 16: {
scenarioCount_ = input.readInt32();
break;
}
case 24: {
scenarioFailedCount_ = input.readInt32();
break;
}
case 32: {
failed_ = input.readBool();
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
failedDataTableRows_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000010;
}
failedDataTableRows_.add(input.readInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
failedDataTableRows_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
failedDataTableRows_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 48: {
executionTime_ = input.readInt64();
break;
}
case 56: {
skipped_ = input.readBool();
break;
}
case 72: {
scenarioSkippedCount_ = input.readInt32();
break;
}
case 80: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
skippedDataTableRows_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000100;
}
skippedDataTableRows_.add(input.readInt32());
break;
}
case 82: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
skippedDataTableRows_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
skippedDataTableRows_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
failedDataTableRows_ = java.util.Collections.unmodifiableList(failedDataTableRows_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
skippedDataTableRows_ = java.util.Collections.unmodifiableList(skippedDataTableRows_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpecResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpecResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSpecResult.class, gauge.messages.Spec.ProtoSpecResult.Builder.class);
}
private int bitField0_;
public static final int PROTOSPEC_FIELD_NUMBER = 1;
private gauge.messages.Spec.ProtoSpec protoSpec_;
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public boolean hasProtoSpec() {
return protoSpec_ != null;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public gauge.messages.Spec.ProtoSpec getProtoSpec() {
return protoSpec_ == null ? gauge.messages.Spec.ProtoSpec.getDefaultInstance() : protoSpec_;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecOrBuilder getProtoSpecOrBuilder() {
return getProtoSpec();
}
public static final int SCENARIOCOUNT_FIELD_NUMBER = 2;
private int scenarioCount_;
/**
* <pre>
*/ Holds the number of Scenarios executed
* </pre>
*
* <code>optional int32 scenarioCount = 2;</code>
*/
public int getScenarioCount() {
return scenarioCount_;
}
public static final int SCENARIOFAILEDCOUNT_FIELD_NUMBER = 3;
private int scenarioFailedCount_;
/**
* <pre>
*/ Holds the number of Scenarios failed
* </pre>
*
* <code>optional int32 scenarioFailedCount = 3;</code>
*/
public int getScenarioFailedCount() {
return scenarioFailedCount_;
}
public static final int FAILED_FIELD_NUMBER = 4;
private boolean failed_;
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public boolean getFailed() {
return failed_;
}
public static final int FAILEDDATATABLEROWS_FIELD_NUMBER = 5;
private java.util.List<java.lang.Integer> failedDataTableRows_;
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public java.util.List<java.lang.Integer>
getFailedDataTableRowsList() {
return failedDataTableRows_;
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public int getFailedDataTableRowsCount() {
return failedDataTableRows_.size();
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public int getFailedDataTableRows(int index) {
return failedDataTableRows_.get(index);
}
private int failedDataTableRowsMemoizedSerializedSize = -1;
public static final int EXECUTIONTIME_FIELD_NUMBER = 6;
private long executionTime_;
/**
* <pre>
*/ Holds the time taken for executing the spec.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
public static final int SKIPPED_FIELD_NUMBER = 7;
private boolean skipped_;
/**
* <code>optional bool skipped = 7;</code>
*/
public boolean getSkipped() {
return skipped_;
}
public static final int SCENARIOSKIPPEDCOUNT_FIELD_NUMBER = 9;
private int scenarioSkippedCount_;
/**
* <code>optional int32 scenarioSkippedCount = 9;</code>
*/
public int getScenarioSkippedCount() {
return scenarioSkippedCount_;
}
public static final int SKIPPEDDATATABLEROWS_FIELD_NUMBER = 10;
private java.util.List<java.lang.Integer> skippedDataTableRows_;
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public java.util.List<java.lang.Integer>
getSkippedDataTableRowsList() {
return skippedDataTableRows_;
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public int getSkippedDataTableRowsCount() {
return skippedDataTableRows_.size();
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public int getSkippedDataTableRows(int index) {
return skippedDataTableRows_.get(index);
}
private int skippedDataTableRowsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (protoSpec_ != null) {
output.writeMessage(1, getProtoSpec());
}
if (scenarioCount_ != 0) {
output.writeInt32(2, scenarioCount_);
}
if (scenarioFailedCount_ != 0) {
output.writeInt32(3, scenarioFailedCount_);
}
if (failed_ != false) {
output.writeBool(4, failed_);
}
if (getFailedDataTableRowsList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(failedDataTableRowsMemoizedSerializedSize);
}
for (int i = 0; i < failedDataTableRows_.size(); i++) {
output.writeInt32NoTag(failedDataTableRows_.get(i));
}
if (executionTime_ != 0L) {
output.writeInt64(6, executionTime_);
}
if (skipped_ != false) {
output.writeBool(7, skipped_);
}
if (scenarioSkippedCount_ != 0) {
output.writeInt32(9, scenarioSkippedCount_);
}
if (getSkippedDataTableRowsList().size() > 0) {
output.writeUInt32NoTag(82);
output.writeUInt32NoTag(skippedDataTableRowsMemoizedSerializedSize);
}
for (int i = 0; i < skippedDataTableRows_.size(); i++) {
output.writeInt32NoTag(skippedDataTableRows_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (protoSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getProtoSpec());
}
if (scenarioCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, scenarioCount_);
}
if (scenarioFailedCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, scenarioFailedCount_);
}
if (failed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, failed_);
}
{
int dataSize = 0;
for (int i = 0; i < failedDataTableRows_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(failedDataTableRows_.get(i));
}
size += dataSize;
if (!getFailedDataTableRowsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
failedDataTableRowsMemoizedSerializedSize = dataSize;
}
if (executionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, executionTime_);
}
if (skipped_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, skipped_);
}
if (scenarioSkippedCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, scenarioSkippedCount_);
}
{
int dataSize = 0;
for (int i = 0; i < skippedDataTableRows_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(skippedDataTableRows_.get(i));
}
size += dataSize;
if (!getSkippedDataTableRowsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
skippedDataTableRowsMemoizedSerializedSize = dataSize;
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoSpecResult)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoSpecResult other = (gauge.messages.Spec.ProtoSpecResult) obj;
boolean result = true;
result = result && (hasProtoSpec() == other.hasProtoSpec());
if (hasProtoSpec()) {
result = result && getProtoSpec()
.equals(other.getProtoSpec());
}
result = result && (getScenarioCount()
== other.getScenarioCount());
result = result && (getScenarioFailedCount()
== other.getScenarioFailedCount());
result = result && (getFailed()
== other.getFailed());
result = result && getFailedDataTableRowsList()
.equals(other.getFailedDataTableRowsList());
result = result && (getExecutionTime()
== other.getExecutionTime());
result = result && (getSkipped()
== other.getSkipped());
result = result && (getScenarioSkippedCount()
== other.getScenarioSkippedCount());
result = result && getSkippedDataTableRowsList()
.equals(other.getSkippedDataTableRowsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasProtoSpec()) {
hash = (37 * hash) + PROTOSPEC_FIELD_NUMBER;
hash = (53 * hash) + getProtoSpec().hashCode();
}
hash = (37 * hash) + SCENARIOCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getScenarioCount();
hash = (37 * hash) + SCENARIOFAILEDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getScenarioFailedCount();
hash = (37 * hash) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailed());
if (getFailedDataTableRowsCount() > 0) {
hash = (37 * hash) + FAILEDDATATABLEROWS_FIELD_NUMBER;
hash = (53 * hash) + getFailedDataTableRowsList().hashCode();
}
hash = (37 * hash) + EXECUTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutionTime());
hash = (37 * hash) + SKIPPED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSkipped());
hash = (37 * hash) + SCENARIOSKIPPEDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getScenarioSkippedCount();
if (getSkippedDataTableRowsCount() > 0) {
hash = (37 * hash) + SKIPPEDDATATABLEROWS_FIELD_NUMBER;
hash = (53 * hash) + getSkippedDataTableRowsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpecResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSpecResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSpecResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoSpecResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing the result of Spec execution.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoSpecResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoSpecResult)
gauge.messages.Spec.ProtoSpecResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpecResult_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpecResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSpecResult.class, gauge.messages.Spec.ProtoSpecResult.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoSpecResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (protoSpecBuilder_ == null) {
protoSpec_ = null;
} else {
protoSpec_ = null;
protoSpecBuilder_ = null;
}
scenarioCount_ = 0;
scenarioFailedCount_ = 0;
failed_ = false;
failedDataTableRows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
executionTime_ = 0L;
skipped_ = false;
scenarioSkippedCount_ = 0;
skippedDataTableRows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpecResult_descriptor;
}
public gauge.messages.Spec.ProtoSpecResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoSpecResult.getDefaultInstance();
}
public gauge.messages.Spec.ProtoSpecResult build() {
gauge.messages.Spec.ProtoSpecResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoSpecResult buildPartial() {
gauge.messages.Spec.ProtoSpecResult result = new gauge.messages.Spec.ProtoSpecResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (protoSpecBuilder_ == null) {
result.protoSpec_ = protoSpec_;
} else {
result.protoSpec_ = protoSpecBuilder_.build();
}
result.scenarioCount_ = scenarioCount_;
result.scenarioFailedCount_ = scenarioFailedCount_;
result.failed_ = failed_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
failedDataTableRows_ = java.util.Collections.unmodifiableList(failedDataTableRows_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.failedDataTableRows_ = failedDataTableRows_;
result.executionTime_ = executionTime_;
result.skipped_ = skipped_;
result.scenarioSkippedCount_ = scenarioSkippedCount_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
skippedDataTableRows_ = java.util.Collections.unmodifiableList(skippedDataTableRows_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.skippedDataTableRows_ = skippedDataTableRows_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoSpecResult) {
return mergeFrom((gauge.messages.Spec.ProtoSpecResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoSpecResult other) {
if (other == gauge.messages.Spec.ProtoSpecResult.getDefaultInstance()) return this;
if (other.hasProtoSpec()) {
mergeProtoSpec(other.getProtoSpec());
}
if (other.getScenarioCount() != 0) {
setScenarioCount(other.getScenarioCount());
}
if (other.getScenarioFailedCount() != 0) {
setScenarioFailedCount(other.getScenarioFailedCount());
}
if (other.getFailed() != false) {
setFailed(other.getFailed());
}
if (!other.failedDataTableRows_.isEmpty()) {
if (failedDataTableRows_.isEmpty()) {
failedDataTableRows_ = other.failedDataTableRows_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureFailedDataTableRowsIsMutable();
failedDataTableRows_.addAll(other.failedDataTableRows_);
}
onChanged();
}
if (other.getExecutionTime() != 0L) {
setExecutionTime(other.getExecutionTime());
}
if (other.getSkipped() != false) {
setSkipped(other.getSkipped());
}
if (other.getScenarioSkippedCount() != 0) {
setScenarioSkippedCount(other.getScenarioSkippedCount());
}
if (!other.skippedDataTableRows_.isEmpty()) {
if (skippedDataTableRows_.isEmpty()) {
skippedDataTableRows_ = other.skippedDataTableRows_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureSkippedDataTableRowsIsMutable();
skippedDataTableRows_.addAll(other.skippedDataTableRows_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoSpecResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoSpecResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private gauge.messages.Spec.ProtoSpec protoSpec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoSpec, gauge.messages.Spec.ProtoSpec.Builder, gauge.messages.Spec.ProtoSpecOrBuilder> protoSpecBuilder_;
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public boolean hasProtoSpec() {
return protoSpecBuilder_ != null || protoSpec_ != null;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public gauge.messages.Spec.ProtoSpec getProtoSpec() {
if (protoSpecBuilder_ == null) {
return protoSpec_ == null ? gauge.messages.Spec.ProtoSpec.getDefaultInstance() : protoSpec_;
} else {
return protoSpecBuilder_.getMessage();
}
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public Builder setProtoSpec(gauge.messages.Spec.ProtoSpec value) {
if (protoSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
protoSpec_ = value;
onChanged();
} else {
protoSpecBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public Builder setProtoSpec(
gauge.messages.Spec.ProtoSpec.Builder builderForValue) {
if (protoSpecBuilder_ == null) {
protoSpec_ = builderForValue.build();
onChanged();
} else {
protoSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public Builder mergeProtoSpec(gauge.messages.Spec.ProtoSpec value) {
if (protoSpecBuilder_ == null) {
if (protoSpec_ != null) {
protoSpec_ =
gauge.messages.Spec.ProtoSpec.newBuilder(protoSpec_).mergeFrom(value).buildPartial();
} else {
protoSpec_ = value;
}
onChanged();
} else {
protoSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public Builder clearProtoSpec() {
if (protoSpecBuilder_ == null) {
protoSpec_ = null;
onChanged();
} else {
protoSpec_ = null;
protoSpecBuilder_ = null;
}
return this;
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public gauge.messages.Spec.ProtoSpec.Builder getProtoSpecBuilder() {
onChanged();
return getProtoSpecFieldBuilder().getBuilder();
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
public gauge.messages.Spec.ProtoSpecOrBuilder getProtoSpecOrBuilder() {
if (protoSpecBuilder_ != null) {
return protoSpecBuilder_.getMessageOrBuilder();
} else {
return protoSpec_ == null ?
gauge.messages.Spec.ProtoSpec.getDefaultInstance() : protoSpec_;
}
}
/**
* <pre>
*/ Represents the corresponding Specification
* </pre>
*
* <code>optional .gauge.messages.ProtoSpec protoSpec = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoSpec, gauge.messages.Spec.ProtoSpec.Builder, gauge.messages.Spec.ProtoSpecOrBuilder>
getProtoSpecFieldBuilder() {
if (protoSpecBuilder_ == null) {
protoSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoSpec, gauge.messages.Spec.ProtoSpec.Builder, gauge.messages.Spec.ProtoSpecOrBuilder>(
getProtoSpec(),
getParentForChildren(),
isClean());
protoSpec_ = null;
}
return protoSpecBuilder_;
}
private int scenarioCount_ ;
/**
* <pre>
*/ Holds the number of Scenarios executed
* </pre>
*
* <code>optional int32 scenarioCount = 2;</code>
*/
public int getScenarioCount() {
return scenarioCount_;
}
/**
* <pre>
*/ Holds the number of Scenarios executed
* </pre>
*
* <code>optional int32 scenarioCount = 2;</code>
*/
public Builder setScenarioCount(int value) {
scenarioCount_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the number of Scenarios executed
* </pre>
*
* <code>optional int32 scenarioCount = 2;</code>
*/
public Builder clearScenarioCount() {
scenarioCount_ = 0;
onChanged();
return this;
}
private int scenarioFailedCount_ ;
/**
* <pre>
*/ Holds the number of Scenarios failed
* </pre>
*
* <code>optional int32 scenarioFailedCount = 3;</code>
*/
public int getScenarioFailedCount() {
return scenarioFailedCount_;
}
/**
* <pre>
*/ Holds the number of Scenarios failed
* </pre>
*
* <code>optional int32 scenarioFailedCount = 3;</code>
*/
public Builder setScenarioFailedCount(int value) {
scenarioFailedCount_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the number of Scenarios failed
* </pre>
*
* <code>optional int32 scenarioFailedCount = 3;</code>
*/
public Builder clearScenarioFailedCount() {
scenarioFailedCount_ = 0;
onChanged();
return this;
}
private boolean failed_ ;
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public boolean getFailed() {
return failed_;
}
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Flag to indicate failure
* </pre>
*
* <code>optional bool failed = 4;</code>
*/
public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private java.util.List<java.lang.Integer> failedDataTableRows_ = java.util.Collections.emptyList();
private void ensureFailedDataTableRowsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
failedDataTableRows_ = new java.util.ArrayList<java.lang.Integer>(failedDataTableRows_);
bitField0_ |= 0x00000010;
}
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public java.util.List<java.lang.Integer>
getFailedDataTableRowsList() {
return java.util.Collections.unmodifiableList(failedDataTableRows_);
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public int getFailedDataTableRowsCount() {
return failedDataTableRows_.size();
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public int getFailedDataTableRows(int index) {
return failedDataTableRows_.get(index);
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public Builder setFailedDataTableRows(
int index, int value) {
ensureFailedDataTableRowsIsMutable();
failedDataTableRows_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public Builder addFailedDataTableRows(int value) {
ensureFailedDataTableRowsIsMutable();
failedDataTableRows_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public Builder addAllFailedDataTableRows(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureFailedDataTableRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, failedDataTableRows_);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the row numbers, which caused the execution to fail.
* </pre>
*
* <code>repeated int32 failedDataTableRows = 5;</code>
*/
public Builder clearFailedDataTableRows() {
failedDataTableRows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private long executionTime_ ;
/**
* <pre>
*/ Holds the time taken for executing the spec.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public long getExecutionTime() {
return executionTime_;
}
/**
* <pre>
*/ Holds the time taken for executing the spec.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ Holds the time taken for executing the spec.
* </pre>
*
* <code>optional int64 executionTime = 6;</code>
*/
public Builder clearExecutionTime() {
executionTime_ = 0L;
onChanged();
return this;
}
private boolean skipped_ ;
/**
* <code>optional bool skipped = 7;</code>
*/
public boolean getSkipped() {
return skipped_;
}
/**
* <code>optional bool skipped = 7;</code>
*/
public Builder setSkipped(boolean value) {
skipped_ = value;
onChanged();
return this;
}
/**
* <code>optional bool skipped = 7;</code>
*/
public Builder clearSkipped() {
skipped_ = false;
onChanged();
return this;
}
private int scenarioSkippedCount_ ;
/**
* <code>optional int32 scenarioSkippedCount = 9;</code>
*/
public int getScenarioSkippedCount() {
return scenarioSkippedCount_;
}
/**
* <code>optional int32 scenarioSkippedCount = 9;</code>
*/
public Builder setScenarioSkippedCount(int value) {
scenarioSkippedCount_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 scenarioSkippedCount = 9;</code>
*/
public Builder clearScenarioSkippedCount() {
scenarioSkippedCount_ = 0;
onChanged();
return this;
}
private java.util.List<java.lang.Integer> skippedDataTableRows_ = java.util.Collections.emptyList();
private void ensureSkippedDataTableRowsIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
skippedDataTableRows_ = new java.util.ArrayList<java.lang.Integer>(skippedDataTableRows_);
bitField0_ |= 0x00000100;
}
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public java.util.List<java.lang.Integer>
getSkippedDataTableRowsList() {
return java.util.Collections.unmodifiableList(skippedDataTableRows_);
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public int getSkippedDataTableRowsCount() {
return skippedDataTableRows_.size();
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public int getSkippedDataTableRows(int index) {
return skippedDataTableRows_.get(index);
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public Builder setSkippedDataTableRows(
int index, int value) {
ensureSkippedDataTableRowsIsMutable();
skippedDataTableRows_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public Builder addSkippedDataTableRows(int value) {
ensureSkippedDataTableRowsIsMutable();
skippedDataTableRows_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public Builder addAllSkippedDataTableRows(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureSkippedDataTableRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, skippedDataTableRows_);
onChanged();
return this;
}
/**
* <pre>
*/ Holds the row numbers, for which the execution skipped.
* </pre>
*
* <code>repeated int32 skippedDataTableRows = 10;</code>
*/
public Builder clearSkippedDataTableRows() {
skippedDataTableRows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoSpecResult)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoSpecResult)
private static final gauge.messages.Spec.ProtoSpecResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoSpecResult();
}
public static gauge.messages.Spec.ProtoSpecResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoSpecResult>
PARSER = new com.google.protobuf.AbstractParser<ProtoSpecResult>() {
public ProtoSpecResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoSpecResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoSpecResult> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoSpecResult> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoSpecResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoStepValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:gauge.messages.ProtoStepValue)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
java.lang.String getStepValue();
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
com.google.protobuf.ByteString
getStepValueBytes();
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
java.lang.String getParameterizedStepValue();
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
com.google.protobuf.ByteString
getParameterizedStepValueBytes();
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
java.util.List<java.lang.String>
getParametersList();
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
int getParametersCount();
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
java.lang.String getParameters(int index);
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
com.google.protobuf.ByteString
getParametersBytes(int index);
}
/**
* <pre>
*/ A proto object representing a Step value.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoStepValue}
*/
public static final class ProtoStepValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoStepValue)
ProtoStepValueOrBuilder {
// Use ProtoStepValue.newBuilder() to construct.
private ProtoStepValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ProtoStepValue() {
stepValue_ = "";
parameterizedStepValue_ = "";
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoStepValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
stepValue_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
parameterizedStepValue_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
parameters_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
parameters_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
parameters_ = parameters_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoStepValue.class, gauge.messages.Spec.ProtoStepValue.Builder.class);
}
private int bitField0_;
public static final int STEPVALUE_FIELD_NUMBER = 1;
private volatile java.lang.Object stepValue_;
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public java.lang.String getStepValue() {
java.lang.Object ref = stepValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stepValue_ = s;
return s;
}
}
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public com.google.protobuf.ByteString
getStepValueBytes() {
java.lang.Object ref = stepValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stepValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETERIZEDSTEPVALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object parameterizedStepValue_;
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public java.lang.String getParameterizedStepValue() {
java.lang.Object ref = parameterizedStepValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parameterizedStepValue_ = s;
return s;
}
}
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public com.google.protobuf.ByteString
getParameterizedStepValueBytes() {
java.lang.Object ref = parameterizedStepValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameterizedStepValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETERS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList parameters_;
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public com.google.protobuf.ProtocolStringList
getParametersList() {
return parameters_;
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public int getParametersCount() {
return parameters_.size();
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public java.lang.String getParameters(int index) {
return parameters_.get(index);
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public com.google.protobuf.ByteString
getParametersBytes(int index) {
return parameters_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getStepValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepValue_);
}
if (!getParameterizedStepValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterizedStepValue_);
}
for (int i = 0; i < parameters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parameters_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStepValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepValue_);
}
if (!getParameterizedStepValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterizedStepValue_);
}
{
int dataSize = 0;
for (int i = 0; i < parameters_.size(); i++) {
dataSize += computeStringSizeNoTag(parameters_.getRaw(i));
}
size += dataSize;
size += 1 * getParametersList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gauge.messages.Spec.ProtoStepValue)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoStepValue other = (gauge.messages.Spec.ProtoStepValue) obj;
boolean result = true;
result = result && getStepValue()
.equals(other.getStepValue());
result = result && getParameterizedStepValue()
.equals(other.getParameterizedStepValue());
result = result && getParametersList()
.equals(other.getParametersList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + STEPVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStepValue().hashCode();
hash = (37 * hash) + PARAMETERIZEDSTEPVALUE_FIELD_NUMBER;
hash = (53 * hash) + getParameterizedStepValue().hashCode();
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStepValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoStepValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(gauge.messages.Spec.ProtoStepValue prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
*/ A proto object representing a Step value.
* </pre>
*
* Protobuf type {@code gauge.messages.ProtoStepValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoStepValue)
gauge.messages.Spec.ProtoStepValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoStepValue.class, gauge.messages.Spec.ProtoStepValue.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoStepValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
stepValue_ = "";
parameterizedStepValue_ = "";
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepValue_descriptor;
}
public gauge.messages.Spec.ProtoStepValue getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoStepValue.getDefaultInstance();
}
public gauge.messages.Spec.ProtoStepValue build() {
gauge.messages.Spec.ProtoStepValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public gauge.messages.Spec.ProtoStepValue buildPartial() {
gauge.messages.Spec.ProtoStepValue result = new gauge.messages.Spec.ProtoStepValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.stepValue_ = stepValue_;
result.parameterizedStepValue_ = parameterizedStepValue_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
parameters_ = parameters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.parameters_ = parameters_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoStepValue) {
return mergeFrom((gauge.messages.Spec.ProtoStepValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoStepValue other) {
if (other == gauge.messages.Spec.ProtoStepValue.getDefaultInstance()) return this;
if (!other.getStepValue().isEmpty()) {
stepValue_ = other.stepValue_;
onChanged();
}
if (!other.getParameterizedStepValue().isEmpty()) {
parameterizedStepValue_ = other.parameterizedStepValue_;
onChanged();
}
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
gauge.messages.Spec.ProtoStepValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (gauge.messages.Spec.ProtoStepValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object stepValue_ = "";
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public java.lang.String getStepValue() {
java.lang.Object ref = stepValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stepValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public com.google.protobuf.ByteString
getStepValueBytes() {
java.lang.Object ref = stepValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stepValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public Builder setStepValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stepValue_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public Builder clearStepValue() {
stepValue_ = getDefaultInstance().getStepValue();
onChanged();
return this;
}
/**
* <pre>
*/ The actual string value describing he Step
* </pre>
*
* <code>optional string stepValue = 1;</code>
*/
public Builder setStepValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stepValue_ = value;
onChanged();
return this;
}
private java.lang.Object parameterizedStepValue_ = "";
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public java.lang.String getParameterizedStepValue() {
java.lang.Object ref = parameterizedStepValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parameterizedStepValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public com.google.protobuf.ByteString
getParameterizedStepValueBytes() {
java.lang.Object ref = parameterizedStepValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameterizedStepValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public Builder setParameterizedStepValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parameterizedStepValue_ = value;
onChanged();
return this;
}
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public Builder clearParameterizedStepValue() {
parameterizedStepValue_ = getDefaultInstance().getParameterizedStepValue();
onChanged();
return this;
}
/**
* <pre>
*/ The parameterized string value describing he Step. The parameters are replaced with placeholders.
* </pre>
*
* <code>optional string parameterizedStepValue = 2;</code>
*/
public Builder setParameterizedStepValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parameterizedStepValue_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
parameters_ = new com.google.protobuf.LazyStringArrayList(parameters_);
bitField0_ |= 0x00000004;
}
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public com.google.protobuf.ProtocolStringList
getParametersList() {
return parameters_.getUnmodifiableView();
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public int getParametersCount() {
return parameters_.size();
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public java.lang.String getParameters(int index) {
return parameters_.get(index);
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public com.google.protobuf.ByteString
getParametersBytes(int index) {
return parameters_.getByteString(index);
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public Builder setParameters(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public Builder addParameters(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public Builder addAllParameters(
java.lang.Iterable<java.lang.String> values) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public Builder clearParameters() {
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <pre>
*/ A collection of strings representing the parameters.
* </pre>
*
* <code>repeated string parameters = 3;</code>
*/
public Builder addParametersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoStepValue)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoStepValue)
private static final gauge.messages.Spec.ProtoStepValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoStepValue();
}
public static gauge.messages.Spec.ProtoStepValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ProtoStepValue>
PARSER = new com.google.protobuf.AbstractParser<ProtoStepValue>() {
public ProtoStepValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoStepValue(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ProtoStepValue> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ProtoStepValue> getParserForType() {
return PARSER;
}
public gauge.messages.Spec.ProtoStepValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoSpec_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoItem_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoItem_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoScenario_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoScenario_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_Span_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_Span_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoTableDrivenScenario_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoStep_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoStep_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoConcept_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoConcept_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoTags_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoTags_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_Fragment_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_Fragment_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_Parameter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_Parameter_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoComment_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoComment_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoTable_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoTable_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoTableRow_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoTableRow_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoStepExecutionResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoStepExecutionResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoExecutionResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoExecutionResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoHookFailure_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoHookFailure_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoSuiteResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoSuiteResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoSpecResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoSpecResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gauge_messages_ProtoStepValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_gauge_messages_ProtoStepValue_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\nspec.proto\022\016gauge.messages\"\366\001\n\tProtoSp" +
"ec\022\023\n\013specHeading\030\001 \001(\t\022(\n\005items\030\002 \003(\0132\031" +
".gauge.messages.ProtoItem\022\025\n\risTableDriv" +
"en\030\003 \001(\010\0228\n\016preHookFailure\030\004 \001(\0132 .gauge" +
".messages.ProtoHookFailure\0229\n\017postHookFa" +
"ilure\030\005 \001(\0132 .gauge.messages.ProtoHookFa" +
"ilure\022\020\n\010fileName\030\006 \001(\t\022\014\n\004tags\030\007 \003(\t\"\200\004" +
"\n\tProtoItem\0224\n\010itemType\030\001 \001(\0162\".gauge.me" +
"ssages.ProtoItem.ItemType\022\'\n\004step\030\002 \001(\0132" +
"\031.gauge.messages.ProtoStep\022-\n\007concept\030\003 ",
"\001(\0132\034.gauge.messages.ProtoConcept\022/\n\010sce" +
"nario\030\004 \001(\0132\035.gauge.messages.ProtoScenar" +
"io\022E\n\023tableDrivenScenario\030\005 \001(\0132(.gauge." +
"messages.ProtoTableDrivenScenario\022-\n\007com" +
"ment\030\006 \001(\0132\034.gauge.messages.ProtoComment" +
"\022)\n\005table\030\007 \001(\0132\032.gauge.messages.ProtoTa" +
"ble\022\'\n\004tags\030\010 \001(\0132\031.gauge.messages.Proto" +
"Tags\"j\n\010ItemType\022\010\n\004Step\020\000\022\013\n\007Comment\020\001\022" +
"\013\n\007Concept\020\002\022\014\n\010Scenario\020\003\022\027\n\023TableDrive" +
"nScenario\020\004\022\t\n\005Table\020\005\022\010\n\004Tags\020\006\"\372\003\n\rPro",
"toScenario\022\027\n\017scenarioHeading\030\001 \001(\t\022\022\n\006f" +
"ailed\030\002 \001(\010B\002\030\001\022+\n\010contexts\030\003 \003(\0132\031.gaug" +
"e.messages.ProtoItem\0220\n\rscenarioItems\030\004 " +
"\003(\0132\031.gauge.messages.ProtoItem\0228\n\016preHoo" +
"kFailure\030\005 \001(\0132 .gauge.messages.ProtoHoo" +
"kFailure\0229\n\017postHookFailure\030\006 \001(\0132 .gaug" +
"e.messages.ProtoHookFailure\022\014\n\004tags\030\007 \003(" +
"\t\022\025\n\rexecutionTime\030\010 \001(\003\022\023\n\007skipped\030\t \001(" +
"\010B\002\030\001\022\022\n\nskipErrors\030\n \003(\t\022\n\n\002ID\030\013 \001(\t\0220\n" +
"\rtearDownSteps\030\014 \003(\0132\031.gauge.messages.Pr",
"otoItem\022\"\n\004span\030\r \001(\0132\024.gauge.messages.S" +
"pan\0228\n\017executionStatus\030\016 \001(\0162\037.gauge.mes" +
"sages.ExecutionStatus\"\"\n\004Span\022\r\n\005start\030\001" +
" \001(\003\022\013\n\003end\030\002 \001(\003\"b\n\030ProtoTableDrivenSce" +
"nario\022/\n\010scenario\030\001 \001(\0132\035.gauge.messages" +
".ProtoScenario\022\025\n\rtableRowIndex\030\002 \001(\005\"\247\001" +
"\n\tProtoStep\022\022\n\nactualText\030\001 \001(\t\022\022\n\nparse" +
"dText\030\002 \001(\t\022+\n\tfragments\030\003 \003(\0132\030.gauge.m" +
"essages.Fragment\022E\n\023stepExecutionResult\030" +
"\004 \001(\0132(.gauge.messages.ProtoStepExecutio",
"nResult\"\262\001\n\014ProtoConcept\022.\n\013conceptStep\030" +
"\001 \001(\0132\031.gauge.messages.ProtoStep\022(\n\005step" +
"s\030\002 \003(\0132\031.gauge.messages.ProtoItem\022H\n\026co" +
"nceptExecutionResult\030\003 \001(\0132(.gauge.messa" +
"ges.ProtoStepExecutionResult\"\031\n\tProtoTag" +
"s\022\014\n\004tags\030\001 \003(\t\"\254\001\n\010Fragment\022;\n\014fragment" +
"Type\030\001 \001(\0162%.gauge.messages.Fragment.Fra" +
"gmentType\022\014\n\004text\030\002 \001(\t\022,\n\tparameter\030\003 \001" +
"(\0132\031.gauge.messages.Parameter\"\'\n\014Fragmen" +
"tType\022\010\n\004Text\020\000\022\r\n\tParameter\020\001\"\357\001\n\tParam",
"eter\022>\n\rparameterType\030\001 \001(\0162\'.gauge.mess" +
"ages.Parameter.ParameterType\022\r\n\005value\030\002 " +
"\001(\t\022\014\n\004name\030\003 \001(\t\022)\n\005table\030\004 \001(\0132\032.gauge" +
".messages.ProtoTable\"Z\n\rParameterType\022\n\n" +
"\006Static\020\000\022\013\n\007Dynamic\020\001\022\022\n\016Special_String" +
"\020\002\022\021\n\rSpecial_Table\020\003\022\t\n\005Table\020\004\"\034\n\014Prot" +
"oComment\022\014\n\004text\030\001 \001(\t\"i\n\nProtoTable\022.\n\007" +
"headers\030\001 \001(\0132\035.gauge.messages.ProtoTabl" +
"eRow\022+\n\004rows\030\002 \003(\0132\035.gauge.messages.Prot" +
"oTableRow\"\036\n\rProtoTableRow\022\r\n\005cells\030\001 \003(",
"\t\"\366\001\n\030ProtoStepExecutionResult\022=\n\017execut" +
"ionResult\030\001 \001(\0132$.gauge.messages.ProtoEx" +
"ecutionResult\0228\n\016preHookFailure\030\002 \001(\0132 ." +
"gauge.messages.ProtoHookFailure\0229\n\017postH" +
"ookFailure\030\003 \001(\0132 .gauge.messages.ProtoH" +
"ookFailure\022\017\n\007skipped\030\004 \001(\010\022\025\n\rskippedRe" +
"ason\030\005 \001(\t\"\227\002\n\024ProtoExecutionResult\022\016\n\006f" +
"ailed\030\001 \001(\010\022\030\n\020recoverableError\030\002 \001(\010\022\024\n" +
"\014errorMessage\030\003 \001(\t\022\022\n\nstackTrace\030\004 \001(\t\022" +
"\022\n\nscreenShot\030\005 \001(\014\022\025\n\rexecutionTime\030\006 \001",
"(\003\022\017\n\007message\030\007 \003(\t\022A\n\terrorType\030\010 \001(\0162." +
".gauge.messages.ProtoExecutionResult.Err" +
"orType\",\n\tErrorType\022\r\n\tASSERTION\020\000\022\020\n\014VE" +
"RIFICATION\020\001\"P\n\020ProtoHookFailure\022\022\n\nstac" +
"kTrace\030\001 \001(\t\022\024\n\014errorMessage\030\002 \001(\t\022\022\n\nsc" +
"reenShot\030\003 \001(\014\"\371\002\n\020ProtoSuiteResult\0224\n\013s" +
"pecResults\030\001 \003(\0132\037.gauge.messages.ProtoS" +
"pecResult\0228\n\016preHookFailure\030\002 \001(\0132 .gaug" +
"e.messages.ProtoHookFailure\0229\n\017postHookF" +
"ailure\030\003 \001(\0132 .gauge.messages.ProtoHookF",
"ailure\022\016\n\006failed\030\004 \001(\010\022\030\n\020specsFailedCou" +
"nt\030\005 \001(\005\022\025\n\rexecutionTime\030\006 \001(\003\022\023\n\013succe" +
"ssRate\030\007 \001(\002\022\023\n\013environment\030\010 \001(\t\022\014\n\004tag" +
"s\030\t \001(\t\022\023\n\013projectName\030\n \001(\t\022\021\n\ttimestam" +
"p\030\013 \001(\t\022\031\n\021specsSkippedCount\030\014 \001(\005\"\204\002\n\017P" +
"rotoSpecResult\022,\n\tprotoSpec\030\001 \001(\0132\031.gaug" +
"e.messages.ProtoSpec\022\025\n\rscenarioCount\030\002 " +
"\001(\005\022\033\n\023scenarioFailedCount\030\003 \001(\005\022\016\n\006fail" +
"ed\030\004 \001(\010\022\033\n\023failedDataTableRows\030\005 \003(\005\022\025\n" +
"\rexecutionTime\030\006 \001(\003\022\017\n\007skipped\030\007 \001(\010\022\034\n",
"\024scenarioSkippedCount\030\t \001(\005\022\034\n\024skippedDa" +
"taTableRows\030\n \003(\005\"W\n\016ProtoStepValue\022\021\n\ts" +
"tepValue\030\001 \001(\t\022\036\n\026parameterizedStepValue" +
"\030\002 \001(\t\022\022\n\nparameters\030\003 \003(\t*G\n\017ExecutionS" +
"tatus\022\017\n\013NOTEXECUTED\020\000\022\n\n\006PASSED\020\001\022\n\n\006FA" +
"ILED\020\002\022\013\n\007SKIPPED\020\003B\021\252\002\016Gauge.Messagesb\006" +
"proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_gauge_messages_ProtoSpec_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_gauge_messages_ProtoSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoSpec_descriptor,
new java.lang.String[] { "SpecHeading", "Items", "IsTableDriven", "PreHookFailure", "PostHookFailure", "FileName", "Tags", });
internal_static_gauge_messages_ProtoItem_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_gauge_messages_ProtoItem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoItem_descriptor,
new java.lang.String[] { "ItemType", "Step", "Concept", "Scenario", "TableDrivenScenario", "Comment", "Table", "Tags", });
internal_static_gauge_messages_ProtoScenario_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_gauge_messages_ProtoScenario_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoScenario_descriptor,
new java.lang.String[] { "ScenarioHeading", "Failed", "Contexts", "ScenarioItems", "PreHookFailure", "PostHookFailure", "Tags", "ExecutionTime", "Skipped", "SkipErrors", "ID", "TearDownSteps", "Span", "ExecutionStatus", });
internal_static_gauge_messages_Span_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_gauge_messages_Span_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_Span_descriptor,
new java.lang.String[] { "Start", "End", });
internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_gauge_messages_ProtoTableDrivenScenario_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor,
new java.lang.String[] { "Scenario", "TableRowIndex", });
internal_static_gauge_messages_ProtoStep_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_gauge_messages_ProtoStep_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoStep_descriptor,
new java.lang.String[] { "ActualText", "ParsedText", "Fragments", "StepExecutionResult", });
internal_static_gauge_messages_ProtoConcept_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_gauge_messages_ProtoConcept_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoConcept_descriptor,
new java.lang.String[] { "ConceptStep", "Steps", "ConceptExecutionResult", });
internal_static_gauge_messages_ProtoTags_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_gauge_messages_ProtoTags_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoTags_descriptor,
new java.lang.String[] { "Tags", });
internal_static_gauge_messages_Fragment_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_gauge_messages_Fragment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_Fragment_descriptor,
new java.lang.String[] { "FragmentType", "Text", "Parameter", });
internal_static_gauge_messages_Parameter_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_gauge_messages_Parameter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_Parameter_descriptor,
new java.lang.String[] { "ParameterType", "Value", "Name", "Table", });
internal_static_gauge_messages_ProtoComment_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_gauge_messages_ProtoComment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoComment_descriptor,
new java.lang.String[] { "Text", });
internal_static_gauge_messages_ProtoTable_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_gauge_messages_ProtoTable_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoTable_descriptor,
new java.lang.String[] { "Headers", "Rows", });
internal_static_gauge_messages_ProtoTableRow_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_gauge_messages_ProtoTableRow_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoTableRow_descriptor,
new java.lang.String[] { "Cells", });
internal_static_gauge_messages_ProtoStepExecutionResult_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_gauge_messages_ProtoStepExecutionResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoStepExecutionResult_descriptor,
new java.lang.String[] { "ExecutionResult", "PreHookFailure", "PostHookFailure", "Skipped", "SkippedReason", });
internal_static_gauge_messages_ProtoExecutionResult_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_gauge_messages_ProtoExecutionResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoExecutionResult_descriptor,
new java.lang.String[] { "Failed", "RecoverableError", "ErrorMessage", "StackTrace", "ScreenShot", "ExecutionTime", "Message", "ErrorType", });
internal_static_gauge_messages_ProtoHookFailure_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_gauge_messages_ProtoHookFailure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoHookFailure_descriptor,
new java.lang.String[] { "StackTrace", "ErrorMessage", "ScreenShot", });
internal_static_gauge_messages_ProtoSuiteResult_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_gauge_messages_ProtoSuiteResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoSuiteResult_descriptor,
new java.lang.String[] { "SpecResults", "PreHookFailure", "PostHookFailure", "Failed", "SpecsFailedCount", "ExecutionTime", "SuccessRate", "Environment", "Tags", "ProjectName", "Timestamp", "SpecsSkippedCount", });
internal_static_gauge_messages_ProtoSpecResult_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_gauge_messages_ProtoSpecResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoSpecResult_descriptor,
new java.lang.String[] { "ProtoSpec", "ScenarioCount", "ScenarioFailedCount", "Failed", "FailedDataTableRows", "ExecutionTime", "Skipped", "ScenarioSkippedCount", "SkippedDataTableRows", });
internal_static_gauge_messages_ProtoStepValue_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_gauge_messages_ProtoStepValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_gauge_messages_ProtoStepValue_descriptor,
new java.lang.String[] { "StepValue", "ParameterizedStepValue", "Parameters", });
}
// @@protoc_insertion_point(outer_class_scope)
}